Curios and artifacts !
This commit is contained in:
@@ -96,6 +96,9 @@ and items list them with their parameters:
|
||||
At a block, the block's own [interaction](../blocks/components.md#interacting) comes first. An item with `on_use` is
|
||||
used instead of being placed.
|
||||
|
||||
`ctx.items.components(id)` gives the components an item's JSON lists and their parameters, so a mod can read its
|
||||
components' parameters for an item without a stack, like Curios does for `curios:attribute_modifiers`.
|
||||
|
||||
`on_use` doesn't say which block was clicked. For that, pair it with a block component's `on_interact`, the way the
|
||||
watering can uses `bworld:water_source`, or subscribe to the `block_interact` [event](../concepts/events.md).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user