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