on rightclick on entity:
if name of entity is "&e&lRICHARD":
create a gui with virtual chest inventory with 6 rows named "&e&lCRAFTING":
make gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 36, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53 and 54 with light gray stained glass pane named "&7"
make gui slot 10 with rotten flesh named "&3&lENCHANTED &3Rotten Flesh" with lore "&7", "&7Price:", "&364 Rotten Flesh", "&7", "&7Used to craft tools." and "&f&lCOMMON ITEM"
loop all items in the inventory of player:
if loop-item is named "&364 Rotten Flesh":
remove 64 of loop-item
give player {item::2}
#gui
1 messages · Page 1 of 1 (latest)