mirror of
https://github.com/minefaco/stripped_tree.git
synced 2024-08-20 13:04:07 +02:00
hide stripped from inv
This commit is contained in:
parent
7f0b080d19
commit
c7512f47a7
7
init.lua
7
init.lua
@ -3,9 +3,8 @@ local trunk_names = {
|
|||||||
"tree", "jungletree", "aspen_tree", "acacia_tree","pine_tree",
|
"tree", "jungletree", "aspen_tree", "acacia_tree","pine_tree",
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Register all trees
|
-- Register all stripped trees
|
||||||
for _, name in ipairs(trunk_names) do
|
for _, name in ipairs(trunk_names) do
|
||||||
|
|
||||||
minetest.register_node(":default:stripped_"..name, {
|
minetest.register_node(":default:stripped_"..name, {
|
||||||
description = "Stripped "..name,
|
description = "Stripped "..name,
|
||||||
tiles = {
|
tiles = {
|
||||||
@ -13,12 +12,11 @@ for _, name in ipairs(trunk_names) do
|
|||||||
"stripped_"..name.."_top.png",
|
"stripped_"..name.."_top.png",
|
||||||
"stripped_"..name..".png"
|
"stripped_"..name..".png"
|
||||||
},
|
},
|
||||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, not_in_creative_inventory = 1},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
on_place = minetest.rotate_node,
|
on_place = minetest.rotate_node,
|
||||||
})
|
})
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--Register tool
|
--Register tool
|
||||||
@ -58,7 +56,6 @@ minetest.register_tool("chisel_tree:chisel", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
--Register craft
|
--Register craft
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "chisel_tree:chisel",
|
output = "chisel_tree:chisel",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
Loading…
Reference in New Issue
Block a user