Paste #54103: clickplace

Date: 2019/04/30 17:13:59 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11


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