command /enchanter: permission: enchanter.use permission message: &cSomething broke... trigger: set {_gui} to a new chest inventory with 1 row with name " &e&k&lAA&r &7&lENCHANTER &e&k&lAA&r" set {_item} to nether star named "&eRandom Custom Enchantment" set line 1 of lore of {_item} to "&7Costs &eDiamond Block&7!" set slot 4 of {_gui} to {_item} open {_gui} to player on inventory click: if name of event-inventory is " &e&k&lAA&r &7&lENCHANTER &e&k&lAA&r": if index of event-slot = 4: cancel event if player has diamond block: set {custom.enchant} to random integer between 1 and 5 if {custom.enchant} is 1: remove diamond block from player set {_book} to enchanted book named "&7Blindness" set line 1 of lore of {_book} to "&7Chance to apply &eblindess effect &7on the enemy!" set line 2 of lore of {_book} to "&eSword Enchantment" give player {_book} if {custom.enchant} is 2: remove diamond block from player set {_book} to enchanted book named "&7Speed" set line 1 of lore of {_book} to "&7Applies &espeed effect &7to the user!" set line 2 of lore of {_book} to "&eBoots Enchantment" give player {_book}