Paste #46166: Edit of P#46165 - Edit of P#46164 - Edit of P#46163 - Edit of P#46162 - Edit of P#46161 - Edit of P#

Date: 2018/01/08 21:12:51 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


kitworld:
    type: command
    debug: false
    name: kit
    usage: /kit
    description: Opens kit menu
    script:
    - inventory open d:in@Kit
Kit:
    type: inventory
    title: Kits
    size: 27
    slots:
    - " [i@Food]  [] [] [] [] [] [] [] []"
    - " []  [] [] [] [] [] [] [] []"
    - " []  [] [] [] [] [] [] [] []"
food:
    type: item
    material: grilled_pork
    display name: Nom nom

food_handler:
    type: world
    events:
        - if <player.has_flag[foodcd]> {
            - queue clear
            }
            else {
            }
        on player clicks food in Kit:
        - give i@Grilled_Pork
        - flag player foodcd duration:12h
        on player clicks in Kit:
        - determine cancelled
        on player drags in Kit:
        - determine cancelled