Paste #44844: Untitled Paste

Date: 2017/10/07 14:21:47 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


invmenu_cmd:
    type: command
    description: "Used for the Warp Menu"
    usage: /fasttravel
    permission: rpg.fasttravel

    script:
    - give stone

invmenu:
    type: inventory
    title: "Select Destination"
    size: 9
    slots:
    - "[i@invmenu_slot1] [] [] [] [] [] [] [] []"
invmenu_slot1:
    type: item
    material: red_wool
    display_name: "To: Skyloft"
invmenu_handler:
    type: world
    events:
        on fasttravel command:
        - inventory open d:in@invmenu
        on player clicks in invmenu:
        - determine cancelled
        on player drags in invmenu:
        - determine cancelled
        on player clicks invmenu_slot1 in invmenu:
        - execute as_op "warp skyloft"