I am having problems updating a mod from 0.17 to 0.18. I used to define the smoke of burners like this:
Code: Select all
data:extend({
trivial_smoke{name = "red_smoke", color = {r = 0.8, g = 0.1, b = 0.1, a = 0.3}, start_scale = 0.8, fade_in_duration = 30 },
trivial_smoke{name = "blue_smoke", color = {r = 0.1, g = 0.1, b = 0.8, a = 0.3}, start_scale = 0.8, fade_in_duration = 30 },
trivial_smoke{name = "light_blue_smoke", color = {r = 0.2, g = 0.8, b = 0.8, a = 0.3}, start_scale = 0.8, fade_in_duration = 30 },
trivial_smoke{name = "pink_smoke", color = {r = 0.8, g = 0.1, b = 0.8, a = 0.3}, start_scale = 0.8, fade_in_duration = 30 },
})
Code: Select all
{
type = "burner",
[more values]
smoke =
{
{
name = "blue_smoke",
frequency = 10, -- thickness
position = {0.0, -0.25},
}
}
},
"attempt to call global 'trivial_smoke' (a nil value)"
I'm pretty sure this stopped working with 0.18, but I can't find anything regarding trivial smoke in the changelog. Can anybody help me?