Added middle column
parent
b1d16f615a
commit
6ac39a26f9
14
machine.lua
14
machine.lua
|
@ -59,8 +59,9 @@ on_construct = function(pos)
|
|||
"image_button[1,1.5;1,1;mylandscaping_wall1.png;wall1; ]"..
|
||||
"image_button[2,1.5;1,1;mylandscaping_wall2.png;wall2; ]"..
|
||||
"image_button[3,1.5;1,1;mylandscaping_wall3.png;wall3; ]"..
|
||||
"image_button[1.5,2.5;1,1;mylandscaping_wall4.png;wall4; ]"..
|
||||
"image_button[2.5,2.5;1,1;mylandscaping_wall5.png;column; ]"..
|
||||
"image_button[1,2.5;1,1;mylandscaping_wall4.png;wall4; ]"..
|
||||
"image_button[2,2.5;1,1;mylandscaping_wall5.png;column; ]"..
|
||||
"image_button[3,2.5;1,1;mylandscaping_wall5.png;column2; ]"..
|
||||
|
||||
"label[6.5,0.5;Patio Stones]"..
|
||||
--Styles of blocks
|
||||
|
@ -94,6 +95,7 @@ or fields["wall2"]
|
|||
or fields["wall3"]
|
||||
or fields["wall4"]
|
||||
or fields["column"]
|
||||
or fields["column2"]
|
||||
then
|
||||
|
||||
if fields["wall1"] then
|
||||
|
@ -136,6 +138,14 @@ then
|
|||
return
|
||||
end
|
||||
end
|
||||
if fields["column2"] then
|
||||
make_ok = "0"
|
||||
anzahl = "2"
|
||||
block = "mylandscaping:rwall_column_m"
|
||||
if inv:is_empty("input") then
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
local instack = inv:get_stack("input", 1)
|
||||
local outstack = inv:get_stack("output", 1)
|
||||
|
|
|
@ -23,6 +23,12 @@ local colbox_type4 = { --corner
|
|||
{0, -.5, -.5, .5, .5, .5}
|
||||
}
|
||||
}
|
||||
local colbox_type5 = { --corner
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-.5, -.5, -.5, .5, .5, .5},
|
||||
}
|
||||
}
|
||||
|
||||
local block_type1 = { -- desc2, typ, obj, colbox, drops, grup
|
||||
{"Left", "left", "block1_top_l", colbox_type1, "left", {cracky=2,not_in_creative_inventory=1}},
|
||||
|
@ -30,12 +36,14 @@ local block_type1 = { -- desc2, typ, obj, colbox, drops, grup
|
|||
{"Right", "right", "block1_top_r", colbox_type1, "right", {cracky=2,not_in_creative_inventory=1}},
|
||||
{"Corner", "corner", "block1_top_c", colbox_type4, "corner", {cracky=2,not_in_creative_inventory=1}},
|
||||
{"Column Top", "column", "column_upper", colbox_type2, "column", {cracky=2,not_in_creative_inventory=1}},
|
||||
{"Big Column Top", "column_m", "column_m_upper", colbox_type5, "column_m", {cracky=2,not_in_creative_inventory=1}},
|
||||
|
||||
{"Left Bot", "bleft", "block1_bot_l", colbox_type3, "left", {not_in_creative_inventory=1}},
|
||||
{"Middle Bot", "bmiddle", "block1_bot_m", colbox_type3, "middle", {not_in_creative_inventory=1}},
|
||||
{"Right Bot", "bright", "block1_bot_r", colbox_type3, "right", {not_in_creative_inventory=1}},
|
||||
{"Corner Bot", "bcorner", "block1_bot_c", colbox_type4, "corner", {not_in_creative_inventory=1}},
|
||||
{"Column Bot", "bcolumn", "column_lower", colbox_type2, "column", {not_in_creative_inventory=1}},
|
||||
{"Big Column Bot", "bcolumn_m", "column_m_lower", colbox_type5, "column_m", {not_in_creative_inventory=1}},
|
||||
}
|
||||
for i in ipairs (block_type1) do
|
||||
local desc2 = block_type1[i][1]
|
||||
|
|
Loading…
Reference in New Issue