This commit is contained in:
Crispy 2025-05-27 03:02:53 +02:00
parent 1ff3cea4d6
commit 5422d52065
21 changed files with 21953 additions and 369 deletions

View file

@ -1,6 +1,30 @@
tonk = peripheral.wrap("right")
redrouter = peripheral.wrap("redrouter_0")
vault = peripheral.wrap("create:item_vault_0")
while true do
sleep(0.5)
tonk.pushFluid("left",math.abs(300-tonk.tanks()[1].amount))
lava = 0
for i,v in pairs(tonk.tanks()) do
lava = (lava or 0)
+ ((
(
v.name == "minecraft:lava"
)
and
v.amount
)or 0 )
end
if lava > 300 then
tonk.pushFluid("left",lava-300)
end
counts = {}
for i,v in pairs(vault.items()) do
counts[v.name] = (counts[v.name] or 0) + v.count
end
redrouter.setOutput(
"bottom",
((counts["minecraft:iron_nugget"] or 0) > 64)
and
((counts["techreborn:andesite_dust"] or 0) > 64)
)
end