mirror of
https://github.com/minefaco/stripped_tree.git
synced 2024-11-19 22:13:50 +01:00
More uses for tree bark
This commit is contained in:
parent
bc9aa4aee6
commit
173a8e7468
34
default.lua
34
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user