diff options
author | tenplus1 <kinsellaja@yahoo.com> | 2015-04-09 13:52:32 +0100 |
---|---|---|
committer | tenplus1 <kinsellaja@yahoo.com> | 2015-04-09 13:52:32 +0100 |
commit | efd4ab247c4fa11921bf0a65b61a432e674600e4 (patch) | |
tree | e9ae04e442da8f5bd43dab470e93ed4ce0e35cce | |
parent | 8aaceaf164415467d9a092f33233646e5ad770e4 (diff) |
changed acacia sapling drop
-rw-r--r-- | leaves.lua | 2 | ||||
-rw-r--r-- | sapling.lua | 8 |
2 files changed, 4 insertions, 6 deletions
@@ -21,7 +21,7 @@ minetest.register_node("ethereal:acacia_leaves", { drop = { max_items = 1, items = { - { items = {"ethereal:acacia_sapling"}, rarity = 50}, + { items = {"ethereal:acacia_sapling"}, rarity = 20}, { items = {"ethereal:acacia_leaves"}} } }, diff --git a/sapling.lua b/sapling.lua index 667a150..24ef529 100644 --- a/sapling.lua +++ b/sapling.lua @@ -2,7 +2,7 @@ ethereal.register_sapling = function( sapling_node_name, sapling_descr, sapling_texture ) -- if the sapling does not exist yet, create a node for it - if( not( minetest.registered_nodes[ sapling_node_name ] )) then + if not minetest.registered_nodes[sapling_node_name] then minetest.register_node( sapling_node_name, { description = sapling_descr, drawtype = "plantlike", @@ -43,7 +43,7 @@ ethereal.place_tree = function (pos, ofx, ofz, schem) minetest.set_node(pos, {name="air"}) pos.x = pos.x - ofx pos.z = pos.z - ofz - minetest.place_schematic(pos, minetest.get_modpath("ethereal").."/schematics/"..schem..".mts", "0", {}, false ); + minetest.place_schematic(pos, minetest.get_modpath("ethereal").."/schematics/"..schem..".mts", "0", {}, false ) end -- Grow saplings @@ -53,7 +53,7 @@ minetest.register_abm({ chance = 25, action = function(pos, node) - local under = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name; + local under = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name -- Check if Sapling is growing on correct substrate if (node.name == "ethereal:yellow_tree_sapling" and under == "default:dirt_with_snow") then @@ -84,8 +84,6 @@ minetest.register_abm({ ethereal.place_tree(pos, 1, 1, "orangetree") elseif (node.name == "ethereal:acacia_sapling" and under == "default:desert_sand") then ethereal.place_tree(pos, 5, 5, "acaciatree") - end - end, }) |