init
This commit is contained in:
commit
12ffbdc45d
76 changed files with 79368 additions and 0 deletions
13
computer/14/startup.lua
Normal file
13
computer/14/startup.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
while true do
|
||||
tanks = peripheral.call("right","tanks")
|
||||
lava = 0
|
||||
for i,v in pairs(tanks) do
|
||||
if v.name == "minecraft:lava" then
|
||||
lava = lava + v.amount
|
||||
end
|
||||
end
|
||||
|
||||
if lava > 300 then
|
||||
peripheral.call("right","pushFluid","left",lava - 300)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue