Facebook
From Red Wigeon, 3 Weeks ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 59
  1. OnlyOneEnchant:
  2.   type: world
  3.   events:
  4.    
  5.     # Prevents enchanted items from being used in slot 1 of anvil, preventing double enchantments.
  6.     on player prepares anvil craft item:
  7.     - if <context.inventory.slot[1].enchantment_types.any>:
  8.       - determine passively air
  9.       - wait 3t
  10.       - inventory update
  11.  
  12.     # Prevents items from being renamesd.
  13.     - if <context.inventory.slot[1].display.if_null[<context.inventory.slot[1].material.name>]> != <context.inventory.slot[3].display.if_null[<context.inventory.slot[3].material.name>]>:
  14.       - determine passively air
  15.       - wait 3t
  16.       - inventory update