Fix colorless fences and slabs
This commit is contained in:
parent
5d7e8ffbff
commit
f52aac4e55
@ -103,17 +103,7 @@ PyuTest.make_building_blocks = function(name, desc, tex, colortint, cgroups, ext
|
||||
floodable = true
|
||||
}, econf))
|
||||
|
||||
PyuTest.make_slab(id_slab, Translate(desc .. " Slab"), id_block, tex, groups)
|
||||
-- core.register_node(id_slab, PyuTest.util.tableconcat({
|
||||
-- description = Translate(desc .. " Slab"),
|
||||
-- tiles = tex,
|
||||
-- groups = groups,
|
||||
-- drawtype = "nodebox",
|
||||
-- paramtype = "light",
|
||||
-- paramtype2 = "colorfacedir",
|
||||
-- node_box = PyuTest.NODE_BOXES.SLAB,
|
||||
-- sounds = PyuTest.make_node_sounds(),
|
||||
-- }, econf))
|
||||
PyuTest.make_slab(id_slab, desc .. " Slab", id_block, tex, groups, econf)
|
||||
|
||||
core.register_node(id_pillar, PyuTest.util.tableconcat({
|
||||
description = Translate(desc .. " Pillar"),
|
||||
@ -136,7 +126,7 @@ PyuTest.make_building_blocks = function(name, desc, tex, colortint, cgroups, ext
|
||||
sounds = PyuTest.make_node_sounds(),
|
||||
}, econf))
|
||||
|
||||
PyuTest.make_fence(id_fence, Translate(desc .. " Fence"), id_block, tex, groups)
|
||||
PyuTest.make_fence(id_fence, Translate(desc .. " Fence"), id_block, tex, groups, econf)
|
||||
|
||||
core.register_craft({
|
||||
output = id_carpet .. " 2",
|
||||
@ -145,13 +135,6 @@ PyuTest.make_building_blocks = function(name, desc, tex, colortint, cgroups, ext
|
||||
}
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
output = id_slab .. " 3",
|
||||
recipe = {
|
||||
{ id_block, id_block, id_block }
|
||||
}
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
output = id_pillar .. " 3",
|
||||
recipe = {
|
||||
|
@ -1,5 +1,5 @@
|
||||
PyuTest.make_fence = function(name, desc, craftitem, texture, groups)
|
||||
core.register_node(name, {
|
||||
PyuTest.make_fence = function(name, desc, craftitem, texture, groups, extra)
|
||||
core.register_node(name, PyuTest.util.tableconcat({
|
||||
description = desc,
|
||||
groups = PyuTest.util.tableconcat(groups, {
|
||||
block = 1,
|
||||
@ -34,7 +34,7 @@ PyuTest.make_fence = function(name, desc, craftitem, texture, groups)
|
||||
connect_back = {-1/8, -1/2, 1/8, 1/8, 1/2 + 3/8, 1/2},
|
||||
connect_right = { 1/8, -1/2, -1/8, 1/2, 1/2 + 3/8, 1/8}
|
||||
},
|
||||
})
|
||||
}, extra or {}))
|
||||
|
||||
core.register_craft({
|
||||
output = name .. " 4",
|
||||
|
@ -1,6 +1,8 @@
|
||||
PyuTest.make_slab = function(name, desc, craftitem, texture, groups)
|
||||
core.register_node(name, {
|
||||
description = desc,
|
||||
PyuTest.make_slab = function(name, desc, craftitem, texture, groups, extra)
|
||||
local e = extra or {}
|
||||
|
||||
core.register_node(name, PyuTest.util.tableconcat({
|
||||
description = Translate(desc),
|
||||
groups = PyuTest.util.tableconcat(groups, {
|
||||
block = 1,
|
||||
slab = 1,
|
||||
@ -8,7 +10,7 @@ PyuTest.make_slab = function(name, desc, craftitem, texture, groups)
|
||||
tiles = texture,
|
||||
sounds = PyuTest.make_node_sounds(),
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
paramtype2 = "colorfacedir",
|
||||
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
@ -18,5 +20,14 @@ PyuTest.make_slab = function(name, desc, craftitem, texture, groups)
|
||||
on_place = function (itemstack, placer, pointed_thing)
|
||||
return PyuTest.rotate_and_place(itemstack, placer, pointed_thing)
|
||||
end
|
||||
})
|
||||
}, e))
|
||||
|
||||
if craftitem ~= nil then
|
||||
core.register_craft({
|
||||
output = name .. " 3",
|
||||
recipe = {
|
||||
{ craftitem, craftitem, craftitem }
|
||||
}
|
||||
})
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user