Paste #5329: Script re-paste from http://pastebin.com/h873tV9q

Date: 2014/06/16 08:18:11 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


Chest:
    type: world
    events:
        on player opens chest:
        - ^if <context.inventory.get_contents.size> == 1 {
            if <context.inventory.get_contents.contains[383:50]> {
                - ^modifyblock <context.inventory.location> air
                - ^explode power:1 <context.inventory.location>
                - ^spawn entity:creeper <context.inventory.location> target:<player>
                - ^determine cancelled
                }
            }