Skip to content

Item Has Enchantment

Tests Item Has Enchantment using the configured inputs. Its Boolean result selects whether the If body runs; it does not assign a numeric result.

If → Choose Operation → Item. Requires Dev access to configure, then a successful compile to activate.

Input Type Role Requirement Default / constraint
Item Item Value Required Required
Enchantment Key String Value Required Required

Returns a Boolean test for If.

Block: If
Operation: Item Has Enchantment
Item: Stone
Enchantment Key: minecraft:sharpness

Use this as an editor configuration: declare any Variables/collections first and choose real locations/eligible targets for your plot. It is not pasteable source code.

Runtime validation: Unknown enchantment.

Reference identifier: item.has_enchant.