bamboo fixes
parent
b8d5169adc
commit
ea34ab6284
|
@ -6,7 +6,6 @@
|
|||
-- contribute to this mod
|
||||
|
||||
local modname = "bamboo"
|
||||
local modpath = minetest.get_modpath(modname)
|
||||
|
||||
-- internationalization boilerplate
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
@ -163,6 +162,17 @@ minetest.register_node("bamboo:trunk", {
|
|||
|
||||
})
|
||||
|
||||
-- bamboo wood
|
||||
minetest.register_node("bamboo:wood", {
|
||||
description = S("Bamboo Wood"),
|
||||
tiles = {"bamboo_floor.png"},
|
||||
paramtype2 = "facedir",
|
||||
place_param2 = 0,
|
||||
is_ground_content = false,
|
||||
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
-- bamboo stalk leaves
|
||||
minetest.register_node("bamboo:leaves", {
|
||||
description = S("Bamboo Leaves"),
|
||||
|
@ -210,13 +220,19 @@ minetest.register_node("bamboo:sprout", {
|
|||
grown_height = 11,
|
||||
})
|
||||
|
||||
-- crafts
|
||||
minetest.register_craft({
|
||||
output = "bamboo:wood 4",
|
||||
recipe = {{"bamboo:trunk"}}
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"bamboo:trunk"},
|
||||
leaves = {"bamboo:leaves"},
|
||||
radius = 3,
|
||||
})
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
bonemeal:add_sapling({
|
||||
{"bamboo:sprout", grow_new_bamboo, "soil"},
|
||||
})
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# textdomain: bamboo
|
||||
Bamboo=Bambú
|
||||
Bamboo Leaves=Hojas de bambú
|
||||
Bamboo Sprout=Brote de bambú
|
||||
Bamboo Sprout=Brote de bambú
|
||||
Bamboo Wood=Tablas de bambú
|
||||
|
|
|
@ -251,7 +251,7 @@ minetest.register_abm({
|
|||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
if node.param2 == 1 then -- ignore manually placed leaves
|
||||
return
|
||||
else
|
||||
end
|
||||
math.randomseed(os.time())
|
||||
local is_fruit = math.random(10)
|
||||
if is_fruit == 10 then
|
||||
|
@ -264,7 +264,7 @@ minetest.register_abm({
|
|||
|
||||
--Support for bonemeal
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
bonemeal:add_sapling({
|
||||
{"cherrytree:sapling", grow_new_cherrytree_tree, "soil"},
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue