diff --git a/init.lua b/init.lua index 7e3de01..a721756 100644 --- a/init.lua +++ b/init.lua @@ -636,7 +636,7 @@ minetest.register_node("nssb:mornar", { light_source = 12, groups = {igniter = 2}, drop = '', - walkable = false, + walkable = true, buildable_to = false, damage_per_second = 4, }) @@ -770,6 +770,23 @@ minetest.register_node("nssb:morlote", { }, }) +minetest.register_abm({ + nodenames = {"nssm:morlote"}, + neighbors = {"air"}, + interval = 1, + chance = 1, + action = + function(pos, node) + local pos1 = {x=pos.x, y=pos.y+1, z=pos.z} + local n = minetest.env:get_node(pos1).name + if n ~= "air" then + return + end + minetest.add_entity(pos1, "nssm:morgre") + minetest.remove_node(pos) + end +}) + minetest.register_node("nssb:moranga", { description = "Moranga Ore", tiles = {"morentir.png^moranga.png"}, @@ -1160,7 +1177,7 @@ minetest.register_ore({ ore_type = "scatter", ore = "nssm:morwa_statue", wherein = "air", - clust_scarcity = 10*10*10, + clust_scarcity = 13*13*13, clust_num_ores = 1, clust_size = 1, y_min = -94, diff --git a/textures/morentir2.png b/textures/morentir2.png new file mode 100644 index 0000000..843fe97 Binary files /dev/null and b/textures/morentir2.png differ