Skip to main content

Get 25% OFF on your first order with BisectHosting using code "DAQEM"!

Restriction Types

The types array in your JSON file determines what the player is prevented from doing when the conditions are met.

Available Types

Restriction TypeDescription
cant_craftPrevents the item from being crafted in a crafting table or player inventory.
cant_smeltPrevents the item from being smelted in a furnace, blast furnace, or smoker.
cant_brewPrevents the potion from being brewed in a brewing stand.
cant_enchantPrevents the item from being enchanted in an enchanting table.
cant_repairPrevents the item from being repaired or combined in an Anvil or Grindstone.
cant_use_itemPrevents the "right-click" usage of an item (e.g., eating food, throwing potions, using a bow).
cant_break_blockPrevents the player from breaking the target block, regardless of the tool held.
cant_item_break_blockPrevents the player from breaking a block specifically with the item defined in the conditions.
cant_place_blockPrevents the block/item from being placed in the world.
cant_hurt_entityPrevents the player from dealing damage to an entity using the restricted item.
cant_interact_entityPrevents right-clicking on an entity (e.g., shearing a sheep, trading with a villager).
cant_interact_blockPrevents right-clicking a block (e.g., opening a chest, pressing a button).

Error Messages

When a player attempts a restricted action, a translatable error message appears in the chat (red text).

  • Example: You can't craft this item yet.
  • Keys: itemrestrictions.inventory.<restriction_type>

These can be customized via a resource pack modifying the language files.