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
|
||||
------------------------------------------------------------
|
||||
|
||||
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({
|
||||
nodenames = {"fun_caves:hot_cobble",},
|
||||
neighbors = {"group:water"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
interval = 10,
|
||||
chance = 10,
|
||||
catch_up = false,
|
||||
action = function(...)
|
||||
cool_cobble(...)
|
||||
action = function(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,
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue