Interacting with tree color and foliage state

Post Reply
User avatar
Akhiros
Inserter
Inserter
Posts: 21
Joined: Fri Jun 06, 2014 7:58 pm
Contact:

Interacting with tree color and foliage state

Post by Akhiros »

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.

Bilka
Factorio Staff
Factorio Staff
Posts: 3133
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Interacting with tree color and foliage state

Post by Bilka »

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.

Post Reply

Return to “Implemented mod requests”