Date: 2019/04/30 17:13:59 UTC-07:00
Type: Denizen Script
clickplace:
type: world
debug: true
events:
on player clicks in inventory:
- if <context.slot.is[==].to[40].and[<context.cursor_item.unbreakable>]>:
- define headitem <player.inventory.slot[40]>
- equip <player> head:<context.cursor_item>
#- take <context.cursor_item>
- adjust <player> item_on_cursor:<def[headitem]>
#- inventory update