Reduce hot cobble abms.
They're taking way too much time.
This commit is contained in:
parent
fdc3a6ed19
commit
d1fda5aa30
1 changed files with 6 additions and 10 deletions
16
abms.lua
16
abms.lua
|
@ -262,20 +262,16 @@ end)
|
||||||
-- destruction
|
-- destruction
|
||||||
------------------------------------------------------------
|
------------------------------------------------------------
|
||||||
|
|
||||||
local function cool_cobble(pos, node)
|
|
||||||
minetest.set_node(pos, {name = "default:cobble"})
|
|
||||||
minetest.sound_play("default_cool_lava",
|
|
||||||
{pos = pos, max_hear_distance = 16, gain = 0.25})
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"fun_caves:hot_cobble",},
|
nodenames = {"fun_caves:hot_cobble",},
|
||||||
neighbors = {"group:water"},
|
neighbors = {"group:water"},
|
||||||
interval = 1,
|
interval = 10,
|
||||||
chance = 1,
|
chance = 10,
|
||||||
catch_up = false,
|
catch_up = false,
|
||||||
action = function(...)
|
action = function(pos, node)
|
||||||
cool_cobble(...)
|
minetest.set_node(pos, {name = "default:cobble"})
|
||||||
|
minetest.sound_play("default_cool_lava",
|
||||||
|
{pos = pos, max_hear_distance = 16, gain = 0.25})
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue