h
This commit is contained in:
parent
1ff3cea4d6
commit
5422d52065
21 changed files with 21953 additions and 369 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue