stripped_tree/default.lua

69 lines
1.7 KiB
Lua
Raw Normal View History

2020-11-09 04:32:54 +01:00
--Register tree bark
minetest.register_craftitem(":default:tree_bark", {
description = "Tree bark",
inventory_image = "tree_bark.png",
2020-12-20 19:22:00 +01:00
groups = {not_in_creative_inventory = 1}
2020-11-09 04:32:54 +01:00
})
--register bark as fuel
minetest.register_craft({
type = "fuel",
recipe = "default:tree_bark",
burntime = 15,
})
2020-12-20 19:22:00 +01:00
--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
2020-11-09 04:32:54 +01:00
--Register stripped trees
local mod_name = "default"
local trunk_names = {
2020-11-17 03:22:23 +01:00
"tree",
"jungletree",
"aspen_tree",
"acacia_tree",
2020-11-09 04:32:54 +01:00
"pine_tree",
}
2020-11-17 03:56:10 +01:00
stripped_tree.register_trunk(mod_name,trunk_names)
2020-11-09 04:32:54 +01:00
--Register axes
local axe_types = {
2020-11-17 03:22:23 +01:00
"axe_wood",
"axe_stone",
"axe_bronze",
"axe_steel",
"axe_mese",
2020-11-09 04:32:54 +01:00
"axe_diamond",
}
2020-12-20 19:22:00 +01:00
if not ENABLE_CHISEL then
2020-11-17 03:56:10 +01:00
stripped_tree.register_axes(mod_name,axe_types)
2020-12-20 19:22:00 +01:00
end
2020-11-09 04:32:54 +01:00