items:item_components:prevent_use_when_used_on_target
Table of Contents
minecraft:prevent_use_when_used_on_target
The minecraft:prevent_use_when_used_on_target
item component prevents this item from being used normally when used on a block or entity, regardless of its result.
Fields
Name | Description | Type | Default Value |
---|---|---|---|
block | Whether to prevent regular use after using on a block. | An optional boolean | false |
entity | Whether to prevent regular use after using on an entity. | An optional boolean | false |
Example
{ "block": true }
items/item_components/prevent_use_when_used_on_target.txt · Last modified: 2024/04/19 15:27 by errorcraft