Page 1 of 1

Better support for "wind"

Posted: Wed Dec 10, 2025 5:18 pm
by SWeini
TL;DR
Make it easier and for mods to define wind turbines.
What?
LuaSurface currently has a few wind properties, but they only affect smoke/clouds.

Please make it possible to:
  • bind an electric-energy-interface to the surface's wind speed or a user-defined per-surface runtime variable. I don't want to adjust the power output of every entity regularly.
  • allow entities with visuals depending on the surface's wind orientation or a user-defined per-surface runtime variable. I don't want to change sprites of every entity regularly.
Why?
Wind is a common theme among mods and they are a pain to develop due to the lack of mentioned features.

Re: Better support for "wind"

Posted: Wed Dec 10, 2025 5:38 pm
by Osmo
With some recent features, you can make a solar panel with performance tied to a surface property https://lua-api.factorio.com/latest/pro ... t_property and then update the surface property at runtime, without having to iterate over all entities