User Tools

Site Tools


items:item_components:prevent_use_when_used_on_target

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
items:item_components:prevent_use_when_used_on_target [2024/04/19 13:27] – removed - external edit (Unknown date) 127.0.0.1items:item_components:prevent_use_when_used_on_target [2024/04/19 13:27] (current) – ↷ Page moved from item_components:prevent_use_when_used_on_target to items:item_components:prevent_use_when_used_on_target errorcraft
Line 1: Line 1:
 +====== 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 =====
 +<code javascript>
 +{
 +  "block": true
 +}
 +</code>