This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
Factorio-Better-Air-Filtering/better-air-filtering/control.lua

12 lines
639 B
Lua

--script.on_event({defines.events.on_tick},
-- function (e)
-- if e.tick % 60 == 0 then --common trick to reduce how often this runs, we don't want it running every tick, just 1/second
-- for index,player in pairs(game.players) do --loop through all players on the server
-- if player.get_inventory(defines.inventory.character_armor).get_item_count("fire-armor") >= 1 then --if they're wearing our armor
-- game.surfaces[1].create_entity{name="fire-flame",position=player.position, force="neutral"} --create the fire where they're standing
-- end
-- end
-- end
-- end
--)