the RRR mod using some invisible entity for creating steam output animation:
-- adds the steam entity to the cooling tower when it is build
function add_cooling_tower(tower)
-- the steam entity makes happy clouds when the tower is active
-- this is needed because the cooling tower is an electric furnace, and only burner furnaces can produce smoke
--logging("---------------------------------------------------------------")
--logging("Adding new cooling tower with ID: " .. tower.unit_number)
local steam = tower.surface.create_entity
{
name = STEAM_ENTITY_NAME,
position = tower.position,
force = tower.force
}
steam.operable = false -- disable opening the happy cloud maker's GUI
steam.destructible = false -- it can't be destroyed (we remove it when the cooling tower dies)
steam.get_fuel_inventory().insert({name="solid-fuel", count=50}) -- at 1 watt, this is enough fuel to run for 39 years, should suffice
steam.fluidbox[1] = {name="water", amount=1} -- water for dummy steam puff recipe
steam.active = false -- start inactive
table.insert(storage.towers,
{
id = tower.unit_number,
entity = tower,
steam = steam
})
--logging("-> tower successfully added")
--logging("")
end
Seems to be some fails with solid-fuel.