dedicated_server_step = 0.01
liquid_update = 0.25
-abm_interval = 0.01
+abm_interval = 0.25
show_entity_selectionbox = false
enable_client_modding = true
console_alpha = 157
dofile(path.."/craft_recipes.lua")
dofile(path.."/falling.lua")
dofile(path.."/bucket.lua")
+dofile(path.."/lava_cooling.lua")
--- /dev/null
+minetest.register_abm({
+ label = "Lava cooling",
+ nodenames = {"main:lava"},
+ neighbors = {"main:water", "main:waterflow"},
+ interval = 1.0,
+ chance = 5.0,
+ catch_up = false,
+ action = function(pos)
+ minetest.set_node(pos,{name="nether:obsidian"})
+ end,
+})
+minetest.register_abm({
+ label = "Lava cooling",
+ nodenames = {"main:lavaflow"},
+ neighbors = {"main:water", "main:waterflow"},
+ interval = 1.0,
+ chance = 5.0,
+ catch_up = false,
+ action = function(pos)
+ minetest.set_node(pos,{name="main:cobble"})
+ end,
+})
minetest.sound_play("tnt_explode", {pos = pos, gain = 1.0, max_hear_distance = range*range*range})
end
-local function tnt(pos,range)
+function tnt(pos,range)
local pos = vector.floor(vector.add(pos,0.5))
--throw players and items