diff --git a/3dmushrooms/init.lua b/3dmushrooms/init.lua index 3c8b76a..82ae86d 100644 --- a/3dmushrooms/init.lua +++ b/3dmushrooms/init.lua @@ -1,7 +1,5 @@ -- 3D Mushroom mod by VanessaE -mushroom = {} - minetest.override_item("flowers:mushroom_fertile_brown", { drawtype = "mesh", mesh = "3dmushrooms.obj", diff --git a/bushes_classic/nodes.lua b/bushes_classic/nodes.lua index cf94d99..aadd720 100644 --- a/bushes_classic/nodes.lua +++ b/bushes_classic/nodes.lua @@ -161,17 +161,10 @@ for i, bush_name in ipairs(bushes_classic.bushes) do groups = { dig_immediate = 3 }, }) - local texture_top, texture_bottom - local groups = {snappy = 3, bush = 1, flammable = 2, attached_node=1} if bush_name == "mixed_berry" then - bush_name = "fruitless"; - texture_top = "bushes_fruitless_bush_top.png" - texture_bottom = "bushes_fruitless_bush_bottom.png" + bush_name = "fruitless" groups.not_in_creative_inventory = 1 - else - texture_top = "bushes_bush_top.png" - texture_bottom = "bushes_bush_bottom.png" end minetest.register_node(":bushes:" .. bush_name .. "_bush", { diff --git a/cavestuff/init.lua b/cavestuff/init.lua index 3f46ea9..17c0a20 100644 --- a/cavestuff/init.lua +++ b/cavestuff/init.lua @@ -4,11 +4,6 @@ local version = "0.0.3" local mname = "cavestuff" ----------------------------------------------------------------------------------------------- --- support for i18n -local S = minetest.get_translator("cavestuff") - -cavestuff = {} - dofile(minetest.get_modpath("cavestuff").."/nodes.lua") dofile(minetest.get_modpath("cavestuff").."/mapgen.lua") diff --git a/cavestuff/nodes.lua b/cavestuff/nodes.lua index 7dcf6b7..01bfcb9 100644 --- a/cavestuff/nodes.lua +++ b/cavestuff/nodes.lua @@ -32,7 +32,6 @@ minetest.register_node("cavestuff:pebble_2",{ mesh = "cavestuff_pebble.obj", tiles = {"undergrowth_pebble.png"}, drop = "cavestuff:pebble_1", - tiles = {"undergrowth_pebble.png"}, paramtype = "light", paramtype2 = "facedir", groups = {cracky=3, stone=1, attached_node=1, not_in_creative_inventory=1}, @@ -100,7 +99,7 @@ minetest.register_node("cavestuff:stalactite_1",{ if not placer then return end local playername = placer:get_player_name() if minetest.is_protected(place, playername) - or minetest.is_protected(above, playername) then + or minetest.is_protected(above, playername) then minetest.record_protection_violation(place, playername) return end diff --git a/ferns/gianttreefern.lua b/ferns/gianttreefern.lua index ec155df..2713e50 100644 --- a/ferns/gianttreefern.lua +++ b/ferns/gianttreefern.lua @@ -65,7 +65,7 @@ abstract_ferns.grow_giant_tree_fern = function(pos) local brk = false for i = 1, size-3 do pos_aux.y = pos.y + i - local name = minetest.get_node(pos_aux).name + name = minetest.get_node(pos_aux).name if not (name == "air" or (i == 1 and name == "ferns:sapling_giant_tree_fern")) then brk = true break diff --git a/ferns/init.lua b/ferns/init.lua index 03ce8a9..3f0c302 100644 --- a/ferns/init.lua +++ b/ferns/init.lua @@ -8,8 +8,6 @@ local mname = "ferns" -- former "archaeplantae" abstract_ferns = {} --- support for i18n -local S = minetest.get_translator("ferns") dofile(minetest.get_modpath("ferns").."/settings.lua") diff --git a/nature_classic/global_function.lua b/nature_classic/global_function.lua index b83201c..ccef2da 100644 --- a/nature_classic/global_function.lua +++ b/nature_classic/global_function.lua @@ -2,7 +2,6 @@ local function process_blossom_queue_item() local pos = nature.blossomqueue[1][1] - local node = nature.blossomqueue[1][2] local replace = nature.blossomqueue[1][3] if (nature.blossomqueue[1][3] == nature.blossom_node and not nature:is_near_water(pos)) then table.remove(nature.blossomqueue, 1) -- don't grow if it's not near water, pop from queue. @@ -32,7 +31,7 @@ end) function nature.enqueue_node(pos, node, replace) local idx = #nature.blossomqueue if idx < nature.blossomqueue_max then - local enqueue_prob = 0 + local enqueue_prob if idx < nature.blossomqueue_max * 0.8 then enqueue_prob = 1 else diff --git a/nature_classic/init.lua b/nature_classic/init.lua index 48a207e..2cc08db 100644 --- a/nature_classic/init.lua +++ b/nature_classic/init.lua @@ -25,7 +25,7 @@ if minetest.get_modpath("moretrees") then nature.blossom_node = "moretrees:apple_blossoms" nature.blossom_leaves = "moretrees:apple_tree_leaves" nature.blossom_textures = { "moretrees_apple_tree_leaves.png^nature_blossom.png" } - nature.blossom_groups = { snappy = 3, leafdecay = 1, leaves = 1, flammable = 2, moretrees_leaves = 1 }, + nature.blossom_groups = { snappy = 3, leafdecay = 1, leaves = 1, flammable = 2, moretrees_leaves = 1 } minetest.register_alias("nature:blossom", "default:leaves") end @@ -39,10 +39,6 @@ nature.apple_spread = 2 nature.meta_blossom_time = "blossom_time" nature.blossom_duration = nature.blossom_delay -function dumppos(pos) - return "("..pos.x..","..pos.y..","..pos.z..")" -end - dofile(minetest.get_modpath(current_mod_name) .. "/config.lua") dofile(minetest.get_modpath(current_mod_name) .. "/global_function.lua") dofile(minetest.get_modpath(current_mod_name) .. "/blossom.lua") diff --git a/pl_waterlilies/init.lua b/pl_waterlilies/init.lua index 94fc3be..c1be804 100644 --- a/pl_waterlilies/init.lua +++ b/pl_waterlilies/init.lua @@ -85,7 +85,6 @@ for i in ipairs(lilies_list) do local nodename = "default:cobble" -- if this block appears, something went....wrong :-) if not keys["sneak"] then - local node = minetest.get_node(pt.under) local waterlily = math.random(1,8) if waterlily == 1 then nodename = "flowers:waterlily" diff --git a/poisonivy/init.lua b/poisonivy/init.lua index 0c914fa..e16fd55 100644 --- a/poisonivy/init.lua +++ b/poisonivy/init.lua @@ -20,7 +20,8 @@ local walls_list = { "default:jungletree", "default:stone_with_coal", "default:stone_with_iron" -}, +} + minetest.register_node('poisonivy:seedling', { description = S("Poison ivy (seedling)"), drawtype = 'plantlike', diff --git a/trunks/generating.lua b/trunks/generating.lua index 145a945..2322062 100644 --- a/trunks/generating.lua +++ b/trunks/generating.lua @@ -475,8 +475,6 @@ end if Roots == true then -- see settings.txt abstract_trunks.grow_roots = function(pos) - local twig_size = math.random(1,27) - local right_here = {x=pos.x , y=pos.y , z=pos.z } local below = {x=pos.x , y=pos.y-1, z=pos.z } local north = {x=pos.x , y=pos.y , z=pos.z+1} diff --git a/trunks/init.lua b/trunks/init.lua index a82f7e3..452031d 100644 --- a/trunks/init.lua +++ b/trunks/init.lua @@ -7,9 +7,6 @@ local mname = "trunks" abstract_trunks = {} --- support for i18n -local S = minetest.get_translator("trunks") - dofile(minetest.get_modpath("trunks").."/trunks_settings.txt") dofile(minetest.get_modpath("trunks").."/generating.lua") dofile(minetest.get_modpath("trunks").."/nodes.lua") diff --git a/trunks/nodes.lua b/trunks/nodes.lua index 10c1c6e..0caf26f 100644 --- a/trunks/nodes.lua +++ b/trunks/nodes.lua @@ -45,7 +45,7 @@ for i in pairs(NoDe) do if not placer then return end local playername = placer:get_player_name() - if minetest.is_protected(pt.above, playername) then + if minetest.is_protected(pt.above, playername) then minetest.record_protection_violation(pt.above, playername) return end diff --git a/woodsoils/init.lua b/woodsoils/init.lua index 5d65837..eb269ef 100644 --- a/woodsoils/init.lua +++ b/woodsoils/init.lua @@ -6,9 +6,6 @@ local mname = "woodsoils" -- former "forestsoils" abstract_woodsoils = {} --- support for i18n -local S = minetest.get_translator("woodsoils") - dofile(minetest.get_modpath("woodsoils").."/nodes.lua") dofile(minetest.get_modpath("woodsoils").."/generating.lua")