diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-01-10 18:43:29 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-01-10 18:43:29 +0000 |
commit | bd0fae584c0b0c3a04d41608acb4dfaf77554d91 (patch) | |
tree | 5c1e172680b2052a3d5608035b53889db4d78d7a | |
parent | 8ad092a57c45ead8b1b9be6861a9cf5fc220502b (diff) |
Quicksand no longer falls like normal sand
-rw-r--r-- | crystal.lua | 2 | ||||
-rw-r--r-- | dirt.lua | 2 | ||||
-rw-r--r-- | extra.lua | 14 | ||||
-rw-r--r-- | fences.lua | 2 | ||||
-rw-r--r-- | flowers.lua | 2 | ||||
-rw-r--r-- | init.lua | 2 | ||||
-rw-r--r-- | mapgen_v7n.lua | 2 | ||||
-rw-r--r-- | onion.lua | 2 | ||||
-rw-r--r-- | papyrus.lua | 2 |
9 files changed, 19 insertions, 11 deletions
diff --git a/crystal.lua b/crystal.lua index 8bb244f..3d0f37c 100644 --- a/crystal.lua +++ b/crystal.lua @@ -207,4 +207,4 @@ minetest.register_craft({ {"ethereal:crystal_moss", "ethereal:crystal_ingot", "ethereal:mushroom_moss"}, {"", "ethereal:crystal_ingot", ""}, } -})
\ No newline at end of file +}) @@ -157,4 +157,4 @@ if not minetest.get_modpath("bakedclay") then sounds = default.node_sound_stone_defaults(), }) -end
\ No newline at end of file +end @@ -186,7 +186,7 @@ minetest.register_node("ethereal:quicksand", { walkable = false, climbable = false, post_effect_color = {r = 230, g = 210, b = 160, a = 245}, - groups = {crumbly = 3, falling_node = 1, sand = 1, liquid = 3, disable_jump = 1}, + groups = {crumbly = 3, sand = 1, liquid = 3, disable_jump = 1}, sounds = default.node_sound_sand_defaults(), }) @@ -208,7 +208,7 @@ minetest.register_node("ethereal:quicksand2", { walkable = false, climbable = false, post_effect_color = {r = 230, g = 210, b = 160, a = 245}, - groups = {crumbly = 3, falling_node = 1, sand = 1, liquid = 3, disable_jump = 1}, + groups = {crumbly = 3, sand = 1, liquid = 3, disable_jump = 1}, sounds = default.node_sound_sand_defaults(), }) @@ -313,21 +313,29 @@ minetest.register_craft({ -- Generate Illumishroom in caves next to coal minetest.register_on_generated(function(minp, maxp) + if minp.y > -30 or maxp.y < -3000 then return end + local bpos + for key, pos in pairs(minetest.find_nodes_in_area_under_air(minp, maxp, "default:stone_with_coal")) do + bpos = {x = pos.x, y = pos.y + 1, z = pos.z } + if math.random(1, 2) == 1 and minetest.get_node(bpos).name == "air" then + if bpos.y > -3000 and bpos.y < -2000 then minetest.swap_node(bpos, {name = "ethereal:illumishroom3"}) + elseif bpos.y > -2000 and bpos.y < -1000 then minetest.swap_node(bpos, {name = "ethereal:illumishroom2"}) + elseif bpos.y > -1000 and bpos.y < -30 then minetest.swap_node(bpos, {name = "ethereal:illumishroom"}) end end end -end)
\ No newline at end of file +end) @@ -40,4 +40,4 @@ minetest.register_craft({ } }) -end
\ No newline at end of file +end diff --git a/flowers.lua b/flowers.lua index 75518f4..cf9af0b 100644 --- a/flowers.lua +++ b/flowers.lua @@ -95,4 +95,4 @@ minetest.register_abm({ end end end, -})
\ No newline at end of file +}) @@ -63,4 +63,4 @@ else dofile(path .. "/stairs.lua")
end
-print ("[MOD] Ethereal mod loaded")
+print ("[MOD] Ethereal loaded")
diff --git a/mapgen_v7n.lua b/mapgen_v7n.lua index 5033d1f..f230a5d 100644 --- a/mapgen_v7n.lua +++ b/mapgen_v7n.lua @@ -526,4 +526,4 @@ end end
-end
\ No newline at end of file +end
@@ -113,4 +113,4 @@ end minetest.register_alias("ethereal:onion_7", "ethereal:onion_4")
minetest.register_alias("ethereal:onion_8", "ethereal:onion_5")
minetest.register_alias("ethereal:wild_onion_7", "ethereal:onion_4")
-minetest.register_alias("ethereal:wild_onion_8", "ethereal:onion_5")
\ No newline at end of file +minetest.register_alias("ethereal:wild_onion_8", "ethereal:onion_5")
diff --git a/papyrus.lua b/papyrus.lua index 4f359ca..24bc0a1 100644 --- a/papyrus.lua +++ b/papyrus.lua @@ -53,4 +53,4 @@ minetest.register_abm({ end end, -})
\ No newline at end of file +}) |