From 14b38a868b9ecf20a84cfaf92c7d4b2a60e1bd80 Mon Sep 17 00:00:00 2001 From: Duane Date: Tue, 5 Jul 2016 09:28:11 -0500 Subject: [PATCH] Allow hot cobble to be quenched. --- abms.lua | 17 +++++++++++++++++ goblin.lua | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/abms.lua b/abms.lua index c628180..ba9aac6 100644 --- a/abms.lua +++ b/abms.lua @@ -262,6 +262,23 @@ 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, + catch_up = false, + action = function(...) + cool_cobble(...) + end, +}) + -- Exploding fungal fruit minetest.register_abm({ nodenames = {"fun_caves:fungal_tree_fruit"}, diff --git a/goblin.lua b/goblin.lua index 00ac049..6238f6a 100644 --- a/goblin.lua +++ b/goblin.lua @@ -2,7 +2,7 @@ -- GOBLINS --------------------------------------------------------------- -local spawn_frequency = 150 -- 150 +local spawn_frequency = 250 -- 250 local dig_freq = 5 -- 5 local trap_freq = 25 -- 25 local torch_freq = 2 -- 2