Smoke and Particles for machines

Place to get help with not working mods / modding interface.
Post Reply
DannyDavidDJ
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sun May 26, 2024 4:33 pm
Contact:

Smoke and Particles for machines

Post by DannyDavidDJ »

Hii
I need help adding Smoke when machine is working and mining particles also when machine is working.

I tried to copy code from base game but that dosen't seem to work.

Any idea how to make it?

Thanks is advance :)

DannyDavidDJ
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sun May 26, 2024 4:33 pm
Contact:

Re: Smoke and Particles for machines

Post by DannyDavidDJ »

Well, After some tinkering, i found how to add smoke that actually works...

...but for furnaces (and probably any "burner" machines)
Here's the code :
smoke =
{
{
name = "smoke",
frequency = 6,
position = {3.0, -1.7},
starting_vertical_speed = 0.12,
starting_frame_deviation = 60
}
}
Any idea how to make it work on electrical machines?

Thanks in advance :>

User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 504
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: Smoke and Particles for machines

Post by Silari »

The only things listed as using the smoke prototype by the docs are

BurnerEnergySource::smoke
FireFlamePrototype::smoke
FluidEnergySource::smoke
FluidStreamPrototype::smoke_sources
GeneratorPrototype::smoke
ParticleSourcePrototype::smoke
ProjectilePrototype::smoke


So unless you have one of those you can't attach a smoke effect.

DannyDavidDJ
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sun May 26, 2024 4:33 pm
Contact:

Re: Smoke and Particles for machines

Post by DannyDavidDJ »

Oh
Alright, I'll try it whenever i get some free time, Thanks!

Post Reply

Return to “Modding help”