Commit a20fad88 authored by Atsukio's avatar Atsukio 🐬

PotatoLock

- Fixed #40 chests not respawning with items
- Changed syntax for furance not respawning with items
- Fixed variable typo dipenser to dispenser
parent 4e76f01c
#
#
# RC-Potato Lock
#
# Scripted by TomYaMee
......@@ -1339,7 +1339,7 @@ on explode:
delete loop-block
if {plock.%loop-block%} is "dispenser":
loop all items in loop-block:
add loop-item to {dipenser.%loop-block%::*}
add loop-item to {dispenser.%loop-block%::*}
remove loop-item from loop-block
delete loop-block
if {plock.%loop-block%} is "dropper":
......@@ -1348,9 +1348,9 @@ on explode:
remove loop-item from loop-block
delete loop-block
if {plock.%loop-block%} is "furnace":
set {oreslot.%loop-block%} to the ore slot of loop-block
set {fuelslot.%loop-block%} to the fuel slot of loop-block
set {resultslot.%loop-block%} to the result slot of loop-block
set {oreslot.%loop-block%} to ore slot of loop-block
set {fuelslot.%loop-block%} to fuel slot of loop-block
set {resultslot.%loop-block%} to result slot of loop-block
clear ore slot of loop-block
clear fuel slot of loop-block
clear result slot of loop-block
......@@ -1381,7 +1381,7 @@ on explode:
if {plock.%block 1 meter east of loop-block%.doublechest} is 1:
set block 1 meter east of loop-block to a chest
loop {loopitem.%loop-block%::*}:
add loop-value-2 to block at {_eventlocation}
add loop-value-2 to the inventory of the block at {_eventlocation}
clear {loopitem.%loop-block%::*}
......@@ -1398,7 +1398,7 @@ on explode:
if {plock.%block 1 meter east of loop-block%.doublechest} is 1:
set block 1 meter east of loop-block to a chest
loop {loopitem.%loop-block%::*}:
add loop-value-2 to block at {_eventlocation}
add loop-value-2 to the inventory of the block at {_eventlocation}
clear {loopitem.%loop-block%::*}
if {plock.%loop-block%} is "shulkerbox":
......@@ -1437,7 +1437,7 @@ on explode:
if {plock.%loop-block%.color} is "black":
set block at {_eventlocation} to black shulker box
loop {loopitem.%loop-block%::*}:
add loop-value-2 to block at {_eventlocation}
add loop-value-2 to the inventory of the block at {_eventlocation}
clear {loopitem.%loop-block%::*}
if {plock.%loop-block%} is "furnace":
......@@ -1455,8 +1455,8 @@ on explode:
set {_eventlocation} to location of loop-block
wait 3 ticks
set block at {_eventlocation} to a dispenser
loop {dipenser.%loop-block%::*}:
add loop-value-2 to block at {_eventlocation}
loop {dispenser.%loop-block%::*}:
add loop-value-2 to the inventory of the block at {_eventlocation}
clear {dispenser.%loop-block%::*}
if {plock.%loop-block%} is "dropper":
......@@ -1464,7 +1464,7 @@ on explode:
wait 3 ticks
set block at {_eventlocation} to a dropper
loop {dropper.%loop-block%::*}:
add loop-value-2 to block at {_eventlocation}
add loop-value-2 to the inventory of the block at {_eventlocation}
clear {dropper.%loop-block%::*}
if {plock.%loop-block%} is "hopper":
......@@ -1472,7 +1472,7 @@ on explode:
wait 3 ticks
set block at {_eventlocation} to a hopper
loop {loopitem.%loop-block%::*}:
add loop-value-2 to block at {_eventlocation}
add loop-value-2 to the inventory of the block at {_eventlocation}
clear {loopitem.%loop-block%::*}
if {plock.%loop-block%} is "brewingstand":
......@@ -1480,7 +1480,7 @@ on explode:
wait 3 ticks
set block at {_eventlocation} to a brewing stand
loop {loopitem.%loop-block%::*}:
add loop-value-2 to block at {_eventlocation}
add loop-value-2 to the inventory of the block at {_eventlocation}
clear {loopitem.%loop-block%::*}
on break:
......
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