Date: 2014/06/16 08:18:11 UTC-07:00
Type: Denizen Script
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
}
}