unified_inventory needs 'description' to show nodes
This commit is contained in:
parent
5694bb1dfb
commit
62ffd2258b
29
init.lua
29
init.lua
@ -181,7 +181,7 @@ end
|
|||||||
|
|
||||||
for nr = 1,#path_names do
|
for nr = 1,#path_names do
|
||||||
|
|
||||||
for _,lengths in pairs(woodpath_lengths) do
|
for _,lengths in pairs(woodpath_lengths) do
|
||||||
|
|
||||||
local b = lengths[1] -- "back" in 1/10 nodes
|
local b = lengths[1] -- "back" in 1/10 nodes
|
||||||
local f = lengths[2] -- "front" in 1/10 nodes
|
local f = lengths[2] -- "front" in 1/10 nodes
|
||||||
@ -192,6 +192,7 @@ for _,lengths in pairs(woodpath_lengths) do
|
|||||||
minetest.register_node(own_name..h,
|
minetest.register_node(own_name..h,
|
||||||
{
|
{
|
||||||
tiles = { tile_name[nr], },
|
tiles = { tile_name[nr], },
|
||||||
|
description = h,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -199,7 +200,6 @@ for _,lengths in pairs(woodpath_lengths) do
|
|||||||
{
|
{
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
-- schmal {-0.4, -0.5, b/-10, 0.4, -0.4, f/10},
|
|
||||||
{-0.5, -0.5, b/-10, 0.5, -0.4, f/10},
|
{-0.5, -0.5, b/-10, 0.5, -0.4, f/10},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -213,6 +213,7 @@ for _,lengths in pairs(woodpath_lengths) do
|
|||||||
minetest.register_node(own_name..h2,
|
minetest.register_node(own_name..h2,
|
||||||
{
|
{
|
||||||
tiles = { tile_name[nr], },
|
tiles = { tile_name[nr], },
|
||||||
|
description = h2,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -263,17 +264,17 @@ for _,lengths in pairs(woodpath_lengths) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- if (b>0) or (f>0) then
|
-- if (b>0) or (f>0) then
|
||||||
-- print(h.." b: "..b.." f: "..f)
|
-- print(h.." b: "..b.." f: "..f)
|
||||||
-- else
|
-- else
|
||||||
-- t_aus = ""
|
-- t_aus = ""
|
||||||
-- for y=1,3 do
|
-- for y=1,3 do
|
||||||
-- for x=1,3 do
|
-- for x=1,3 do
|
||||||
-- t_aus = t_aus .. craft[y][x] .. ", "
|
-- t_aus = t_aus .. craft[y][x] .. ", "
|
||||||
-- end
|
-- end
|
||||||
-- end
|
-- end
|
||||||
-- print(h..t_aus)
|
-- print(h..t_aus)
|
||||||
-- end
|
-- end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = own_name..h,
|
output = own_name..h,
|
||||||
@ -286,7 +287,7 @@ for _,lengths in pairs(woodpath_lengths) do
|
|||||||
recipe = { { own_name..h } },
|
recipe = { { own_name..h } },
|
||||||
})
|
})
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 697 B After Width: | Height: | Size: 691 B |
Loading…
x
Reference in New Issue
Block a user