add some stuff

This commit is contained in:
LordMZTE 2022-03-13 16:12:34 +01:00
parent cf78e9bef3
commit e81e48bfe5
1 changed files with 29 additions and 0 deletions

View 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