Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Makes pollution spawn around certain blocks.png
- function pollute(node, freuqency)
- minetest.register_abm({
- label = "Pollution spawning around" .. node,
- nodenames = "air",
- neighbours = node,
- interval = frequency,
- chance = 0.95,
- action = function(pos, node, active_object_count, active_object_count_wider)
- --while minetest.get_node("air") ~= true then
- -- local pos = {x = pos.x, y = pos.y + 1, z = pos.z}
- --end
- local pos = {x = pos.x, y = pos.y + 1, z = pos.z}
- minetest.set_node(pos, {name = "air_pollution:pollution_1"})
- end ,
- })
- end
- pollute("default:furnace_active", 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement