Allow hot cobble to be quenched.
This commit is contained in:
parent
f693268c75
commit
14b38a868b
2 changed files with 18 additions and 1 deletions
17
abms.lua
17
abms.lua
|
@ -262,6 +262,23 @@ 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({
|
||||||
|
nodenames = {"fun_caves:hot_cobble",},
|
||||||
|
neighbors = {"group:water"},
|
||||||
|
interval = 1,
|
||||||
|
chance = 1,
|
||||||
|
catch_up = false,
|
||||||
|
action = function(...)
|
||||||
|
cool_cobble(...)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
-- Exploding fungal fruit
|
-- Exploding fungal fruit
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"fun_caves:fungal_tree_fruit"},
|
nodenames = {"fun_caves:fungal_tree_fruit"},
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
-- GOBLINS
|
-- GOBLINS
|
||||||
---------------------------------------------------------------
|
---------------------------------------------------------------
|
||||||
|
|
||||||
local spawn_frequency = 150 -- 150
|
local spawn_frequency = 250 -- 250
|
||||||
local dig_freq = 5 -- 5
|
local dig_freq = 5 -- 5
|
||||||
local trap_freq = 25 -- 25
|
local trap_freq = 25 -- 25
|
||||||
local torch_freq = 2 -- 2
|
local torch_freq = 2 -- 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue