Something like a for each object of "label"
DragonCoding-Reiko opened this issue ยท 0 comments
I basically want something like a for each over all instances of "chests"
As in:
name "Test"
every 20 ticks do
foreach chest in chests do
input iron from chest
output to otherChest
end
end
I would want that for something like the thermal series phytogenic isolator, if I want to keep the seeds at 64 and put all excess seeds to another storage. The seeds would be of different type and there would be one photogenic isolator for each type.
Currently it sometimes puts extra seeds into another phyto if that one had only 1 before and it gets used up.
The current script I use:
name "Mythical Phytogenic Farm"
-- Deliver Energy
every 1 ticks do
input fe:: from energySource
output fe:: to phytogenic
end
--Delivery of Fluids + Items and Transport of Product Items
every 20 ticks do
-- Water delivery
input fluid::water from waterSource
output fluid::water to phytogenic
forget
-- Fertilizer delivery
input item:thermal:phytogro from phytoSource
output to phytogenic slots 1
forget
-- Pickup the seeds from each pyro and replace them
input *seed* from phytogenic slots 2-5
output *seed* to phytogenic slots 0 --If there's still seeds left in slots 2-5 then it will try to put them into other phytos
forget
--Puckup excess seeds and all essences to storage
input from phytogenic slots 2-5
output *seed* to seedOverflow
output *essence* to storage
end
Thanks for help in advance if it's already possible!
And thanks if it isn't and for thinking bout it xX