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
}