diff --git a/crystal.lua b/crystal.lua index 8bb244f686765229dd047d36f7d0b788b55701ad..3d0f37cad0fb6f0fab4e4b5d646c1f0c9b3d3dc5 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 +}) diff --git a/dirt.lua b/dirt.lua index e4fd4f8e72b4d2c6ca1966717e6dd78b47b937fe..3884919eb0ffd3ebdad315ce5a2cff9c52850ad9 100644 --- a/dirt.lua +++ b/dirt.lua @@ -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 diff --git a/extra.lua b/extra.lua index 3455ff93e891fca792019b65982a2d6873e12578..888b6f853cb47ed95d4927b44957da4859d1224b 100644 --- a/extra.lua +++ b/extra.lua @@ -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) diff --git a/fences.lua b/fences.lua index 17bf442714c7a500af991733fea1cb9bbfa90f06..fbe76f88a89cccd02654bb4e5a9cc6eab1cd9ec4 100644 --- a/fences.lua +++ b/fences.lua @@ -40,4 +40,4 @@ minetest.register_craft({ } }) -end \ No newline at end of file +end diff --git a/flowers.lua b/flowers.lua index 75518f4f0fb658b28e5e0669a69912eb7cdfaa85..cf9af0bc0bdbc9da261e4555d3db66fb967b75ac 100644 --- a/flowers.lua +++ b/flowers.lua @@ -95,4 +95,4 @@ minetest.register_abm({ end end end, -}) \ No newline at end of file +}) diff --git a/init.lua b/init.lua index bc8f1fdbc3fe725aa58b3ba6ad5905cf9b2625f4..3db774acb6fb408d3877aeb52a6de3ccad86cd17 100644 --- a/init.lua +++ b/init.lua @@ -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 5033d1f7bf5e73f10650d8bb88fa4d4707b82735..f230a5d6c0eaca7b57fb596e1d957932a0397b6c 100644 --- a/mapgen_v7n.lua +++ b/mapgen_v7n.lua @@ -526,4 +526,4 @@ end end -end \ No newline at end of file +end diff --git a/onion.lua b/onion.lua index e6eb78b2ffce03f310c29c538635194f8544ceaa..382a7cfda8fc035ed4eafbf0cf794bc18faa9bb4 100644 --- a/onion.lua +++ b/onion.lua @@ -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 4f359ca853586379c5d6d723c45ad484ceaca021..24bc0a108ac2f3b23d795b67000675505fc28a63 100644 --- a/papyrus.lua +++ b/papyrus.lua @@ -53,4 +53,4 @@ minetest.register_abm({ end end, -}) \ No newline at end of file +})