Paste #48804: Untitled Paste

Date: 2018/08/04 11:10:23 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
12
13
14
15


RightClickEvent:
    type: world
    debug: false
    events:
        on player walks:
            - repeat 9 {
                - if <player.inventory.slot[<def[value]>]> == i@air {
                    - inventory set slot:<def[value]> origin:i@firework_charge
                }
            }
        on player drops firework_charge:
            - determine cancelled
        on player clicks firework_charge in <player.inventory>:
            - determine passively cancelled
            - adjust <player> "item_on_cursor:i@air"