Commit 59fe0244 authored by Tommy Ang's avatar Tommy Ang 🤣

Fix #53 - Shulker box not respawning

parent dd0ad1d5
......@@ -1122,40 +1122,40 @@ on explode:
cancel event
loop exploded blocks:
if {plock.%loop-block%} is "shulkerbox":
set {_eventlocation} to location of loop-block
set {_eventlocation} to location of loop-block
wait 3 ticks
if {plock.%loop-block%.color} is "white":
set block at {_eventlocation} to white shulker box
if {plock.%loop-block%.color} is "orange":
set block at {_eventlocation} to orange shulker box
if {plock.%loop-block%.color} is "magenta":
set block at {_eventlocation} to magenta shulker box
if {plock.%loop-block%.color} is "light_blue":
set block at {_eventlocation} to light blue shulker box
if {plock.%loop-block%.color} is "yellow":
set block at {_eventlocation} to yellow shulker box
if {plock.%loop-block%.color} is "lime":
set block at {_eventlocation} to lime shulker box
if {plock.%loop-block%.color} is "pink":
set block at {_eventlocation} to pink shulker box
if {plock.%loop-block%.color} is "gray":
set block at {_eventlocation} to gray shulker box
if {plock.%loop-block%.color} is "light_gray":
set block at {_eventlocation} to light gray shulker box
if {plock.%loop-block%.color} is "cyan":
set block at {_eventlocation} to cyan shulker box
if {plock.%loop-block%.color} is "purple":
set block at {_eventlocation} to purple shulker box
if {plock.%loop-block%.color} is "blue":
set block at {_eventlocation} to blue shulker box
if {plock.%loop-block%.color} is "brown":
set block at {_eventlocation} to brown shulker box
if {plock.%loop-block%.color} is "green":
set block at {_eventlocation} to green shulker box
if {plock.%loop-block%.color} is "red":
set block at {_eventlocation} to red shulker box
if {plock.%loop-block%.color} is "black":
set block at {_eventlocation} to black shulker box
if {plock.%loop-block%.color} contains "white":
set block at {_eventlocation} to a white shulker box
if {plock.%loop-block%.color} contains "orange":
set block at {_eventlocation} to a orange shulker box
if {plock.%loop-block%.color} contains "magenta":
set block at {_eventlocation} to a magenta shulker box
if {plock.%loop-block%.color} contains "light_blue":
set block at {_eventlocation} to a light blue shulker box
if {plock.%loop-block%.color} contains "yellow":
set block at {_eventlocation} to a yellow shulker box
if {plock.%loop-block%.color} contains "lime":
set block at {_eventlocation} to a lime shulker box
if {plock.%loop-block%.color} contains "pink":
set block at {_eventlocation} to a pink shulker box
if {plock.%loop-block%.color} contains "gray":
set block at {_eventlocation} to a gray shulker box
if {plock.%loop-block%.color} contains "light_gray":
set block at {_eventlocation} to a light gray shulker box
if {plock.%loop-block%.color} contains "cyan":
set block at {_eventlocation} to a cyan shulker box
if {plock.%loop-block%.color} contains "purple":
set block at {_eventlocation} to a purple shulker box
if {plock.%loop-block%.color} contains "blue":
set block at {_eventlocation} to a blue shulker box
if {plock.%loop-block%.color} contains "brown":
set block at {_eventlocation} to a brown shulker box
if {plock.%loop-block%.color} contains "green":
set block at {_eventlocation} to a green shulker box
if {plock.%loop-block%.color} contains "red":
set block at {_eventlocation} to a red shulker box
if {plock.%loop-block%.color} contains "black":
set block at {_eventlocation} to a black shulker box
loop {loopitem.%loop-block%::*}:
add loop-value-2 to the inventory of the block at {_eventlocation}
clear {loopitem.%loop-block%::*}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment