With the below code in data.lua
Code: Select all
data:extend({
{
type = "trivial-smoke",
name = "wheel-sparks",
animation = {
filename = "__base__/graphics/entity/sparks/sparks-01.png",
width = 39,
height = 34,
frame_count = 19,
line_length = 19,
shift = {-0.109375, 0.3125},
tint = { r = 1.0, g = 0.9, b = 0.0, a = 1.0 },
animation_speed = 0.3
},
duration = 19,
affected_by_wind = false,
show_when_smoke_off = true,
render_layer = "air-entity-info-icon"
}
})
Code: Select all
/c game.player.surface.create_trivial_smoke{name="wheel-sparks", position = {-2, -2}}