Would it be possible to make the LuaEntity's color attribute be readable/writable for trees? I'd love to try indicating crop health via vibrant green vs sickly yellow.
Also, could you make it so that trees' foliage state can be read/written? This is so that if I want to replace one tree with another (representing growth), I can avoid resetting the effects of pollution.
Interacting with tree color and foliage state
Re: Interacting with tree color and foliage state
Color was added as LuaEntity::tree_color_index a while ago and now I added LuaEntity::tree_stage_index for the next version.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.