diff --git a/trunks/generating.lua b/trunks/generating.lua index 68c3212..8fbf1c5 100644 --- a/trunks/generating.lua +++ b/trunks/generating.lua @@ -3,7 +3,7 @@ -- TWiGS ----------------------------------------------------------------------------------------------- abstract_trunks.place_twig = function(pos) - local twig_size = math.random(1,24) + local twig_size = math.random(1,27) local right_here = {x=pos.x , y=pos.y+1, z=pos.z } local north = {x=pos.x , y=pos.y+1, z=pos.z+1} @@ -144,6 +144,8 @@ abstract_trunks.place_twig = function(pos) minetest.add_node(north_west, {name="trunks:twig_11", param2=3}) end end + elseif twig_size <= 25 then + minetest.add_node(right_here, {name="trunks:twig_"..math.random(12,13), param2=math.random(0,3)}) end end end diff --git a/trunks/init.lua b/trunks/init.lua index caf224f..b35987f 100644 --- a/trunks/init.lua +++ b/trunks/init.lua @@ -1,6 +1,6 @@ ----------------------------------------------------------------------------------------------- local title = "Trunks" -local version = "0.1.2" +local version = "0.1.3" local mname = "trunks" ----------------------------------------------------------------------------------------------- -- Code by Mossmanikin & Neuromancer diff --git a/trunks/nodes.lua b/trunks/nodes.lua index d06964c..dd3ff51 100644 --- a/trunks/nodes.lua +++ b/trunks/nodes.lua @@ -6,7 +6,7 @@ minetest.register_alias("trunks:twig", "trunks:twig_1") local flat_stick = {-1/2, -1/2, -1/2, 1/2, -7/16, 1/2} -local NoDe = { {1}, {2}, {3}, {4}, {5}, --[[{6},]] {7}, {8}, {9}, {10}, {11} } +local NoDe = { {1}, {2}, {3}, {4}, {5}, --[[{6},]] {7}, {8}, {9}, {10}, {11}, {12}, {13} } for i in pairs(NoDe) do @@ -67,7 +67,7 @@ minetest.register_node("trunks:moss", { walkable = false, node_box = {type = "fixed", fixed = flat_moss}, selection_box = {type = "fixed", fixed = flat_stick},--{type = "wallmounted"}, - groups = {dig_immediate=2,attached_node=1}, + groups = {dig_immediate=2--[[,attached_node=1]]}, -- falling moss is too annoying sounds = default.node_sound_leaves_defaults(), }) @@ -86,7 +86,7 @@ minetest.register_node("trunks:moss_fungus", { walkable = false, node_box = {type = "fixed", fixed = flat_moss}, selection_box = {type = "fixed", fixed = flat_stick},--{type = "wallmounted"}, - groups = {dig_immediate=2,attached_node=1}, + groups = {dig_immediate=2--[[,attached_node=1]]}, -- falling moss is too annoying sounds = default.node_sound_leaves_defaults(), }) @@ -341,15 +341,12 @@ for i in pairs(TRuNKS) do if minetest.get_modpath(MoD) ~= nil then local des = minetest.registered_nodes[MoD..":"..TRuNK].description - --local tls = minetest.registered_nodes[MoD..":"..TRuNK].tiles[3] - --local tli = minetest.registered_nodes[MoD..":"..TRuNK].tile_images[3] minetest.register_node("trunks:"..TRuNK.."root", { description = des.." Root", paramtype = "light", paramtype2 = "facedir", tiles = {MoD.."_"..TRuNK..".png"}, - --tile_images = tli, drawtype = "nodebox", selection_box = {type = "fixed", fixed = roots_cube}, node_box = {type = "fixed", fixed = trunk_roots}, diff --git a/trunks/textures/trunks_twig_12.png b/trunks/textures/trunks_twig_12.png new file mode 100644 index 0000000..b7678d8 Binary files /dev/null and b/trunks/textures/trunks_twig_12.png differ diff --git a/trunks/textures/trunks_twig_13.png b/trunks/textures/trunks_twig_13.png new file mode 100644 index 0000000..bf13bf9 Binary files /dev/null and b/trunks/textures/trunks_twig_13.png differ