add some stuff
This commit is contained in:
parent
cf78e9bef3
commit
e81e48bfe5
29
packs/above_beyond/quantum_singularity.lua
Normal file
29
packs/above_beyond/quantum_singularity.lua
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
local tnt = peripheral.wrap "right"
|
||||||
|
local singularity = peripheral.wrap "left"
|
||||||
|
local ender_dust = peripheral.wrap "minecraft:dropper_0"
|
||||||
|
local vac = peripheral.wrap "thermal:device_collector_0"
|
||||||
|
|
||||||
|
while true do
|
||||||
|
if
|
||||||
|
#vac.list() == 0 and
|
||||||
|
tnt.getItemDetail(1).count >= 1 and
|
||||||
|
singularity.getItemDetail(1).count >= 15 and
|
||||||
|
ender_dust.getItemDetail(1).count >= 15
|
||||||
|
then
|
||||||
|
local i = 0
|
||||||
|
while i < 15 do
|
||||||
|
i = i + 1
|
||||||
|
redstone.setOutput("left", true)
|
||||||
|
os.sleep(0.1)
|
||||||
|
redstone.setOutput("left", false)
|
||||||
|
os.sleep(0.1)
|
||||||
|
end
|
||||||
|
os.sleep(1)
|
||||||
|
redstone.setOutput("right", true)
|
||||||
|
os.sleep(0.1)
|
||||||
|
redstone.setOutput("right", false)
|
||||||
|
end
|
||||||
|
|
||||||
|
os.sleep(5)
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue