Paste #12171: Untitled Paste

Date: 2014/12/19 15:09:33 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


VoteBox:
    type: world
    events:
        on player right clicks with i@VoteBoxKluc:
        - run TheScript

VoteBoxInv: 
    Type: Inventory 
    Inventory: Chest 
    Title: VoteBox 
    Size: 27 
    Slots: 
    - "[] [] [] [] [] [] [] [] []"
    - "[] [] [] [] [] [] [] [] []"
    - "[] [] [] [] [] [] [] [] []"


TheScript: 
    Type: Task 
    Script: 
    - inventory copy o:in@VoteBoxInv d:in@SomeName

    - random 3 
    - inventory add d:in@SomeName o:i@stone
    - inventory add d:in@SomeName o:i@snow_ball
    - inventory add d:in@SomeName o:i@snow_ball

    - random 3 
    - inventory add SomeName i@someitem 
    - inventory add SomeName i@someitem 
    - inventory add SomeName i@someitem 

    - inventory open d:in@SomeName