h
This commit is contained in:
parent
1ff3cea4d6
commit
5422d52065
21 changed files with 21953 additions and 369 deletions
|
@ -14,6 +14,7 @@ compactor_pos = vector.new(-2,0,0)
|
|||
spout_pos = vector.new(-3,0,0)
|
||||
melter_pos = vector.new(-4,1,-3)
|
||||
casting_table_pos = vector.new(-3,0,-3)
|
||||
washer_pos = vector.new(3,0,-4)
|
||||
|
||||
function spout(extra_items)
|
||||
local fluid = extra_items[1]
|
||||
|
@ -123,9 +124,11 @@ function press(_)
|
|||
sleep(1)
|
||||
takeDepot()
|
||||
end
|
||||
function compact(extra_items)
|
||||
printError("unimplemented :3")
|
||||
sfx.fail()
|
||||
function compact(extra_items, product, yield)
|
||||
silly_temp = mixer_pos
|
||||
mixer_pos = compactor_pos
|
||||
mix(extra_items, product, yield)
|
||||
mixer_pos = silly_temp
|
||||
end
|
||||
function make_water(_,_,yield)
|
||||
selectFluidDevice("water_source")
|
||||
|
@ -170,18 +173,6 @@ function alloy(parts, product)
|
|||
for _, fluid in pairs(parts) do
|
||||
fluidInvAdd(fluid.name, -created_amount)
|
||||
end
|
||||
-- for _, fluid in pairs(parts) do
|
||||
|
||||
-- end
|
||||
-- TODO
|
||||
--[[
|
||||
wait until at least one input fluid is used up
|
||||
if two remain, it needs to keep track of which tank gets what when draining
|
||||
]]
|
||||
|
||||
-- while true do
|
||||
|
||||
-- end
|
||||
end
|
||||
function melt(_, product, yield)
|
||||
goTo(melter_pos, "north")
|
||||
|
@ -281,6 +272,20 @@ function craft(extra_items)
|
|||
turtle.craft()
|
||||
end
|
||||
|
||||
function wash(_, product)
|
||||
goTo(washer_pos, "east")
|
||||
insertDepot(1)
|
||||
repeat
|
||||
is_done = false
|
||||
for _,item in pairs(pFront("items")) do
|
||||
if stripModname(item.name) == product then
|
||||
is_done = true
|
||||
end
|
||||
end
|
||||
until is_done
|
||||
takeDepot()
|
||||
end
|
||||
|
||||
return {
|
||||
mill = mill,
|
||||
deploy = deploy,
|
||||
|
@ -295,4 +300,5 @@ return {
|
|||
saw = saw,
|
||||
spout = spout,
|
||||
make_water = make_water,
|
||||
wash = wash,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue