walls can be recycles into gravel.

master
NathanSalapat 2015-10-01 11:40:51 -05:00
parent fc676e69e9
commit f752221583
9 changed files with 31 additions and 29 deletions

Binary file not shown.

Binary file not shown.

View File

@ -311,24 +311,24 @@ then
end end
if fields["column_sphere"] then if fields["column_sphere"] then
make_ok = false make_ok = false
anzahl = 4 anzahl = 2
deco = "mylandscaping:column_t_sphere_" block = "mylandscaping:column_t_sphere_"
if inv:is_empty("input") then if inv:is_empty("input") then
return return
end end
end end
if fields["column_dragon"] then if fields["column_dragon"] then
make_ok = false make_ok = false
anzahl = 4 anzahl = 1
deco = "mylandscaping:column_t_dragon_" block = "mylandscaping:column_t_dragon_"
if inv:is_empty("input") then if inv:is_empty("input") then
return return
end end
end end
if fields["column_suzanne"] then if fields["column_suzanne"] then
make_ok = false make_ok = false
anzahl = 4 anzahl = 2
deco = "mylandscaping:column_t_suzanne_" block = "mylandscaping:column_t_suzanne_"
if inv:is_empty("input") then if inv:is_empty("input") then
return return
end end

View File

@ -84,8 +84,10 @@ on_timer = function(pos)
local cobble = inv:get_stack("cobble", 1) local cobble = inv:get_stack("cobble", 1)
local gravel = inv:get_stack("gravel", 1) local gravel = inv:get_stack("gravel", 1)
local sand = inv:get_stack("sand", 1) local sand = inv:get_stack("sand", 1)
local cobble_inv= cobble:get_name()
---------------------------------------------------------------------- ----------------------------------------------------------------------
if cobble:get_name() == "default:cobble" then if cobble:get_name() == "default:cobble" or
minetest.get_node_group(cobble_inv, 'ml') > 0 then
inv:add_item("gravel","default:gravel") inv:add_item("gravel","default:gravel")
cobble:take_item() cobble:take_item()
inv:set_stack("cobble",1,cobble) inv:set_stack("cobble",1,cobble)

View File

@ -264,7 +264,7 @@ minetest.register_node("mylandscaping:stone_"..style..col,{
"mylandscaping_"..img1..".png"..alpha, "mylandscaping_"..img1..".png"..alpha,
}, },
paramtype = "light", paramtype = "light",
groups = {cracky = 2, not_in_creative_inventory=1}, groups = {cracky = 2, not_in_creative_inventory=1, ml=1,},
node_box = cbox, node_box = cbox,
selection_box = stone_cbox, selection_box = stone_cbox,
collision_box = stone_cbox, collision_box = stone_cbox,

View File

@ -36,7 +36,7 @@ minetest.register_node('mylandscaping:column_t_'..obj.."_"..col, {
drawtype = 'mesh', drawtype = 'mesh',
mesh = 'mylandscaping_column_t_'..obj..'.obj', mesh = 'mylandscaping_column_t_'..obj..'.obj',
tiles = {name='mylandscaping_'..tex..'.png'..alpha}, tiles = {name='mylandscaping_'..tex..'.png'..alpha},
groups = {cracky=2, not_in_creative_inventory=visible}, groups = {cracky=2, not_in_creative_inventory=visible, ml=1},
paramtype = 'light', paramtype = 'light',
paramtype2 = 'facedir', paramtype2 = 'facedir',
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),

View File

@ -30,19 +30,19 @@ local colbox_type7 = { --outside corner
} }
local block_type1 = { -- desc2, typ, obj, colbox, drops, grup local block_type1 = { -- desc2, typ, obj, colbox, drops, grup
{"Retaining Wall Left", "left", "blocka_l_t", colbox_type1, "left", {cracky=2,not_in_creative_inventory=visible}}, {"Retaining Wall Left", "left", "blocka_l_t", colbox_type1, "left", {ml=1,cracky=2,not_in_creative_inventory=visible}},
{"Retaining Wall Middle", "middle", "blocka_m_t", colbox_type1, "middle", {cracky=2,not_in_creative_inventory=visible}}, {"Retaining Wall Middle", "middle", "blocka_m_t", colbox_type1, "middle", {ml=1,cracky=2,not_in_creative_inventory=visible}},
{"Retaining Wall Right", "right", "blocka_r_t", colbox_type1, "right", {cracky=2,not_in_creative_inventory=visible}}, {"Retaining Wall Right", "right", "blocka_r_t", colbox_type1, "right", {ml=1,cracky=2,not_in_creative_inventory=visible}},
{"Retaining Wall Inside Corner", "icorner", "blocka_ic_t", colbox_type4, "icorner", {cracky=2,not_in_creative_inventory=visible}}, {"Retaining Wall Inside Corner", "icorner", "blocka_ic_t", colbox_type4, "icorner", {ml=1,cracky=2,not_in_creative_inventory=visible}},
{"Retaining Wall Outside Corner", "ocorner", "blocka_oc_t", colbox_type2, "ocorner", {cracky=2,not_in_creative_inventory=visible}}, {"Retaining Wall Outside Corner", "ocorner", "blocka_oc_t", colbox_type2, "ocorner", {ml=1,cracky=2,not_in_creative_inventory=visible}},
{"Retaining Wall Left Bot", "bleft", "blocka_l_b", colbox_type3, "left", {not_in_creative_inventory=visible}}, {"Retaining Wall Left Bot", "bleft", "blocka_l_b", colbox_type3, "left", {not_in_creative_inventory=visible}},
{"Retaining Wall Middle Bot", "bmiddle", "blocka_m_b", colbox_type3, "middle", {not_in_creative_inventory=visible}}, {"Retaining Wall Middle Bot", "bmiddle", "blocka_m_b", colbox_type3, "middle", {not_in_creative_inventory=visible}},
{"Retaining Wall Right Bot", "bright", "blocka_r_b", colbox_type3, "right", {not_in_creative_inventory=visible}}, {"Retaining Wall Right Bot", "bright", "blocka_r_b", colbox_type3, "right", {not_in_creative_inventory=visible}},
{"Retaining Wall Inside Corner Bot", "bicorner", "blocka_ic_b", colbox_type4, "icorner", {not_in_creative_inventory=visible}}, {"Retaining Wall Inside Corner Bot", "bicorner", "blocka_ic_b", colbox_type4, "icorner", {not_in_creative_inventory=visible}},
{"Retaining Wall Outside Corner Bot", "bocorner", "blocka_oc_b", colbox_type2, "ocorner", {not_in_creative_inventory=visible}}, {"Retaining Wall Outside Corner Bot", "bocorner", "blocka_oc_b", colbox_type2, "ocorner", {not_in_creative_inventory=visible}},
{"Column Inside Corner", "column_ic_t", "columna_ic_t", colbox_type5, "column_ic_t", {cracky=2,not_in_creative_inventory=visible}}, {"Column Inside Corner", "column_ic_t", "columna_ic_t", colbox_type5, "column_ic_t", {ml=1,cracky=2,not_in_creative_inventory=visible}},
{"Column Outside Corner", "column_oc_t", "columna_oc_t", colbox_type2, "column_oc_t", {cracky=2,not_in_creative_inventory=visible}}, {"Column Outside Corner", "column_oc_t", "columna_oc_t", colbox_type2, "column_oc_t", {ml=1,cracky=2,not_in_creative_inventory=visible}},
{"Column Middle", "column_m_t", "columna_m_t", colbox_type6, "column_m_t", {cracky=2,not_in_creative_inventory=visible}}, {"Column Middle", "column_m_t", "columna_m_t", colbox_type6, "column_m_t", {ml=1,cracky=2,not_in_creative_inventory=visible}},
{"Column Inside Corner Bot", "bcolumn_ic_t", "columna_ic_b", colbox_type5, "column_ic_b", {not_in_creative_inventory=visible}}, {"Column Inside Corner Bot", "bcolumn_ic_t", "columna_ic_b", colbox_type5, "column_ic_b", {not_in_creative_inventory=visible}},
{"Column Outside Corner Bot", "bcolumn_oc_t", "columna_oc_b", colbox_type2, "column_oc_b", {not_in_creative_inventory=visible}}, {"Column Outside Corner Bot", "bcolumn_oc_t", "columna_oc_b", colbox_type2, "column_oc_b", {not_in_creative_inventory=visible}},
{"Column Middle Bot", "bcolumn_m_t", "columna_m_b", colbox_type6, "column_m_b", {not_in_creative_inventory=visible}},zz {"Column Middle Bot", "bcolumn_m_t", "columna_m_b", colbox_type6, "column_m_b", {not_in_creative_inventory=visible}},zz

View File

@ -8,11 +8,11 @@ local colbox_type2 = { --wall
} }
local block_type1 = { -- desc2, obj, colbox, grup, local block_type1 = { -- desc2, obj, colbox, grup,
{"Deco Wall Round Top", "wall_r", colbox_type2, {cracky=2,not_in_creative_inventory=visible}}, {"Deco Wall Round Top", "wall_r", colbox_type2, {ml=1,cracky=2,not_in_creative_inventory=visible}},
{"Deco Wall Flat Top", "wall_f", colbox_type2, {cracky=2,not_in_creative_inventory=visible}}, {"Deco Wall Flat Top", "wall_f", colbox_type2, {ml=1,cracky=2,not_in_creative_inventory=visible}},
{'Deco Wall Peaked Top', 'wall_p', colbox_type2, {cracky=2,not_in_creative_inventory=visible}}, {'Deco Wall Peaked Top', 'wall_p', colbox_type2, {ml=1,cracky=2,not_in_creative_inventory=visible}},
{'Deco Wall Random Top', 'wall_ra', colbox_type2, {cracky=2,not_in_creative_inventory=visible}}, {'Deco Wall Random Top', 'wall_ra', colbox_type2, {ml=1,cracky=2,not_in_creative_inventory=visible}},
{"Deco Wall Column", "column", colbox_type1, {cracky=2,not_in_creative_inventory=visible}}, {"Deco Wall Column", "column", colbox_type1, {ml=1,cracky=2,not_in_creative_inventory=visible}},
} }
for i in ipairs (block_type1) do for i in ipairs (block_type1) do
local desc2 = block_type1[i][1] local desc2 = block_type1[i][1]

View File

@ -25,17 +25,17 @@ local colbox_type6 = { --corner
} }
local block_type1 = { -- desc2, typ, obj, colbox, drops, grup local block_type1 = { -- desc2, typ, obj, colbox, drops, grup
{"Retaining Wall Left", "left", "blockf_l_t", colbox_type1, "left", {cracky=2,not_in_creative_inventory=visible}}, {"Retaining Wall Left", "left", "blockf_l_t", colbox_type1, "left", {ml=1,cracky=2,not_in_creative_inventory=visible}},
{"Retaining Wall Middle", "middle", "blockf_m_t", colbox_type1, "middle", {cracky=2,not_in_creative_inventory=visible}}, {"Retaining Wall Middle", "middle", "blockf_m_t", colbox_type1, "middle", {ml=1,cracky=2,not_in_creative_inventory=visible}},
{"Retaining Wall Right", "right", "blockf_r_t", colbox_type1, "right", {cracky=2,not_in_creative_inventory=visible}}, {"Retaining Wall Right", "right", "blockf_r_t", colbox_type1, "right", {ml=1,cracky=2,not_in_creative_inventory=visible}},
{"Retaining Wall Corner", "corner", "blockf_c_t", colbox_type4, "corner", {cracky=2,not_in_creative_inventory=visible}}, {"Retaining Wall Corner", "corner", "blockf_c_t", colbox_type4, "corner", {ml=1,cracky=2,not_in_creative_inventory=visible}},
{"Retaining Wall Left Bot", "bleft", "blockf_l_b", colbox_type3, "left", {not_in_creative_inventory=visible}}, {"Retaining Wall Left Bot", "bleft", "blockf_l_b", colbox_type3, "left", {not_in_creative_inventory=visible}},
{"Retaining Wall Middle Bot", "bmiddle", "blockf_m_b", colbox_type3, "middle", {not_in_creative_inventory=visible}}, {"Retaining Wall Middle Bot", "bmiddle", "blockf_m_b", colbox_type3, "middle", {not_in_creative_inventory=visible}},
{"Retaining Wall Right Bot", "bright", "blockf_r_b", colbox_type3, "right", {not_in_creative_inventory=visible}}, {"Retaining Wall Right Bot", "bright", "blockf_r_b", colbox_type3, "right", {not_in_creative_inventory=visible}},
{"Retaining Wall Corner Bot", "bcorner", "blockf_c_b", colbox_type4, "corner", {not_in_creative_inventory=visible}}, {"Retaining Wall Corner Bot", "bcorner", "blockf_c_b", colbox_type4, "corner", {not_in_creative_inventory=visible}},
{"Column Inside Corner", "column_ic_t", "columnf_ic_t", colbox_type5, "column_ic_t", {cracky=2,not_in_creative_inventory=visible}}, {"Column Inside Corner", "column_ic_t", "columnf_ic_t", colbox_type5, "column_ic_t", {ml=1,cracky=2,not_in_creative_inventory=visible}},
{"Column Outside Corner", "column_oc_t", "columnf_oc_t", colbox_type2, "column_oc_t", {cracky=2,not_in_creative_inventory=visible}}, {"Column Outside Corner", "column_oc_t", "columnf_oc_t", colbox_type2, "column_oc_t", {ml=1,cracky=2,not_in_creative_inventory=visible}},
{"Column Middle", "column_m_t", "columnf_m_t", colbox_type6, "column_m_t", {cracky=2,not_in_creative_inventory=visible}}, {"Column Middle", "column_m_t", "columnf_m_t", colbox_type6, "column_m_t", {ml=1,cracky=2,not_in_creative_inventory=visible}},
{"Column Inside Corner Bot", "bcolumn_ic_t", "columnf_ic_b", colbox_type5, "column_ic_b", {not_in_creative_inventory=visible}}, {"Column Inside Corner Bot", "bcolumn_ic_t", "columnf_ic_b", colbox_type5, "column_ic_b", {not_in_creative_inventory=visible}},
{"Column Outside Corner Bot", "bcolumn_oc_t", "columnf_oc_b", colbox_type2, "column_oc_b", {not_in_creative_inventory=visible}}, {"Column Outside Corner Bot", "bcolumn_oc_t", "columnf_oc_b", colbox_type2, "column_oc_b", {not_in_creative_inventory=visible}},
{"Column Middle Bot", "bcolumn_m_t", "columnf_m_b", colbox_type6, "column_m_b", {not_in_creative_inventory=visible}}, {"Column Middle Bot", "bcolumn_m_t", "columnf_m_b", colbox_type6, "column_m_b", {not_in_creative_inventory=visible}},