More uses for tree bark

This commit is contained in:
minefaco 2020-12-20 13:22:00 -05:00 committed by GitHub
parent bc9aa4aee6
commit 173a8e7468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,7 +2,7 @@
minetest.register_craftitem(":default:tree_bark", {
description = "Tree bark",
inventory_image = "tree_bark.png",
groups = {not_in_creative_inventory = 1, wood = 1}
groups = {not_in_creative_inventory = 1}
})
--register bark as fuel
minetest.register_craft({
@ -11,6 +11,35 @@ minetest.register_craft({
burntime = 15,
})
--Register craft for string
if minetest.get_modpath("farming") then
minetest.register_craft({
output = "farming:string 4",
recipe = {{"default:tree_bark","default:tree_bark","default:tree_bark"},
{"default:tree_bark","default:tree_bark","default:tree_bark"},
{"default:tree_bark","default:tree_bark","default:tree_bark"}}
})
end
--Register craft for paper
minetest.register_craft({
output = "default:paper 8",
recipe = {{"default:tree_bark","default:tree_bark","default:tree_bark"},
{"default:tree_bark","bucket:bucket_water","default:tree_bark"},
{"default:tree_bark","default:tree_bark","default:tree_bark"}}
})
--Register craft for mulch
if minetest.get_modpath("bonemeal") then
minetest.register_craft({
output = "bonemeal:mulch 4",
recipe = {{"default:tree_bark","default:tree_bark","default:tree_bark"},
{"default:tree_bark","default:tree_bark","default:tree_bark"},
{"","",""}}
})
end
--Register stripped trees
local mod_name = "default"
local trunk_names = {
@ -33,6 +62,7 @@ local axe_types = {
"axe_mese",
"axe_diamond",
}
if not ENABLE_CHISEL then
stripped_tree.register_axes(mod_name,axe_types)
end