[Solved]How to create smoke?

Place to get help with not working mods / modding interface.
User avatar
WIZ4
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Apr 07, 2016 1:36 pm
Contact:

[Solved]How to create smoke?

Post by WIZ4 »

I want to create smoke, the same as shown in the trailer, how can I do it? I tried to create other types of smoke(light-smoke,turbine-smoke,smoke-building), but I got errors 'unknown entity name'. However, the creation of other effects, such as fire or gray blood does not cause errors.
game.surfaces[1].create_entity{name="fire-flame", position={0,0}}
smoke.gif
smoke.gif (8.8 MiB) Viewed 1442 times
Last edited by WIZ4 on Thu Feb 07, 2019 12:06 pm, edited 1 time in total.
My native language is russian. Sorry if my messages are difficult to read.
Bilka
Factorio Staff
Factorio Staff
Posts: 3470
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: How to create smoke?

Post by Bilka »

Most of the smoke in the game is not an entity, it is "trivial smoke". It can be created with https://lua-api.factorio.com/latest/Lua ... vial_smoke.

For a list of trivial smoke prototypes, see https://wiki.factorio.com/Data.raw#trivial-smoke.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
User avatar
WIZ4
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Apr 07, 2016 1:36 pm
Contact:

Re: How to create smoke?

Post by WIZ4 »

Thanks, Bilka!
My native language is russian. Sorry if my messages are difficult to read.
Post Reply

Return to “Modding help”