Paste #33297: test

Date: 2016/05/03 15:02:28 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


test_inventory:
    type: inventory
    title: Test inventory
    size: 27
    slots:
    - "[i@Jabuka] [] [] [] [] [] [] [] []"
    - "[] [] [] [] [] [] [] [] []"
    - "[] [] [] [] [] [] [] [] []"


Inventory:
    type: inventory
    title: Inv2
    size: 27
    slots:
    - "[] [] [] [] [] [] [] [] []"
    - "[] [] [] [i@Accept] [] [i@Prekini] [] [] []"
    - "[] [] [] [] [] [] [] [] []"




Jabuka:
    type: item
    material: apple
    display name : APPLLE
    lore:
    - <gold>A tasty apple!
    - <gold>Price 5 gold.
    - <gold>Quantity 1

Accept:
    type: item
    material: green_wool
    display name: Buy
    lore:
    - <gold>Want to buy it?

Prekini:
    type: item
    material: red_wool
    display name: Exit
    lore:
    - <gold>Cancel


Inventory_opener:
    type: world
    events:
        on player right clicks at entity:
        - inventory open d:in@test_inventory
        on player clicks in test_inventory:
        - determine canceled
        on player drags in test_inventory:
        - determine canceled
        on player clicks Jabuka in test_inventory:
        - inventory open d:in@Inventory
        on player clicks in Inventory:
        - determine canceled
        on player drags in Inventory:
        - determine canceled
        on player clicks Accept in Inventory:
        - narrate 'KUPIO SI JABUKU, DERP'
        - inventory open d:in@test_inventory
        on player clicks Prekini in Inventory:
        - inventory open d:in@test_inventory