ctx.items.damage and player_death event moved to bworld

This commit is contained in:
2026-11-14 00:09:55 -03:00
parent 9bf6b98953
commit 6c6be61dd0
7 changed files with 34 additions and 14 deletions
+3
View File
@@ -51,3 +51,6 @@ dropping.
The damage a tool has taken is kept in its stack's `data.damage`, and a worn tool shows a bar under it in its slot,
going from green to red as it wears down. Upgrading a tool at the smithing table keeps its data, damage included.
A server script wears a tool down with `ctx.items.damage(item, amount)`, which adds to the stack's `data.damage` and
returns true when that used it up. It does nothing to items that aren't tools. The base game's death drops use it.