ctx.items.damage and player_death event moved to bworld
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user