This gives 0 after the 100th rocket part is constructed and the rocket is ready to launch:
Code: Select all
entity.rocket_parts
Code: Select all
entity.rocket_parts
Code: Select all
if silo.get_item_count("satellite") == 1 then
-- rocket ready with loaded inventory (ready to launch)
elseif silo.can_insert({name = "satellite", count = 1}) then
-- rocket ready but not loaded
else
-- rocket not ready
end