From 173a8e7468f13fbd0bf2743227a5e5531c328c42 Mon Sep 17 00:00:00 2001 From: minefaco <63024226+minefaco@users.noreply.github.com> Date: Sun, 20 Dec 2020 13:22:00 -0500 Subject: [PATCH] More uses for tree bark --- default.lua | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/default.lua b/default.lua index 2455946..bbad5f1 100644 --- a/default.lua +++ b/default.lua @@ -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