Compare commits
10 Commits
6695001e15
...
6c73958fa1
Author | SHA1 | Date | |
---|---|---|---|
|
6c73958fa1 | ||
|
2fcfe695db | ||
|
0516d1496c | ||
|
4cb6b39f6f | ||
|
c3f522c9ac | ||
|
ab3eca8b50 | ||
|
9eef6852d7 | ||
|
c572951b4f | ||
|
9c4f1326e6 | ||
|
e5840d6fef |
BIN
blends/Cement Mixer.blend
Normal file
BIN
blends/Cement Mixer.blend
Normal file
Binary file not shown.
BIN
blends/Crusher.blend
Normal file
BIN
blends/Crusher.blend
Normal file
Binary file not shown.
BIN
blends/Madison_walls.blend
Normal file
BIN
blends/Madison_walls.blend
Normal file
Binary file not shown.
14
concrete.lua
14
concrete.lua
@ -1,10 +1,8 @@
|
||||
minetest.register_node("mylandscaping:concrete", {
|
||||
description = "Concrete",
|
||||
drawtype = "normal",
|
||||
tiles = {"mylandscaping_cement.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky=1},
|
||||
minetest.register_node('mylandscaping:concrete', {
|
||||
description = 'Concrete',
|
||||
tiles = {'mylandscaping_cement.png'},
|
||||
groups = {cracky=1, ml=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
--THIS NEEDS TO BE CRAFTABLE. Right now it has ZERO purpose.
|
||||
|
@ -1 +1 @@
|
||||
Two machines and a plethora of block walls and columns.
|
||||
This is a mod that lets you put up decorative walls around your gardens, and make pretty hardscapes.
|
||||
|
51
formspec.lua
51
formspec.lua
@ -8,46 +8,49 @@ form =
|
||||
|
||||
input =
|
||||
'label[3,4.5;Input]'..
|
||||
'list[current_name;input;3,5;1,1;]'..
|
||||
'list[context;input;3,5;1,1;]'..
|
||||
'label[4,4.5;Dye]'..
|
||||
'list[current_name;dye;4,5;1,1;]'..
|
||||
'list[context;dye;4,5;1,1;]'..
|
||||
--Output
|
||||
'label[6,4.5;Output]'..
|
||||
'list[current_name;output;6,5;1,1;]'..
|
||||
'list[context;output;6,5;1,1;]'..
|
||||
--Players Inven
|
||||
'list[current_player;main;1,6;8,4;]'
|
||||
|
||||
retaining_walls =
|
||||
form..
|
||||
'label[1,1.75;Freeport]'..
|
||||
'label[1,2.75;Madison]'..
|
||||
'label[1,3.75;Adaridge]'..
|
||||
'label[1,2.75;Freeport]'..
|
||||
'label[1,3.75;Madison]'..
|
||||
'label[1,1.75;Adaridge]'..
|
||||
--Freeport walls
|
||||
'item_image_button[3,1.5;1,1;mylandscaping:fwall_left_cement;fwall1; ]'..
|
||||
'item_image_button[4,1.5;1,1;mylandscaping:fwall_middle_cement;fwall2; ]'..
|
||||
'item_image_button[5,1.5;1,1;mylandscaping:fwall_right_cement;fwall3; ]'..
|
||||
'item_image_button[6,1.5;1,1;mylandscaping:fwall_corner_cement;fwall4; ]'..
|
||||
'item_image_button[3,2.5;1,1;mylandscaping:fwall_left_cement;fwall1; ]'..
|
||||
'item_image_button[4,2.5;1,1;mylandscaping:fwall_middle_cement;fwall2; ]'..
|
||||
'item_image_button[5,2.5;1,1;mylandscaping:fwall_right_cement;fwall3; ]'..
|
||||
'item_image_button[6,2.5;1,1;mylandscaping:fwall_corner_cement;fwall4; ]'..
|
||||
--Madison walls
|
||||
'item_image_button[3,3.5;1,1;mylandscaping:mwall_middle_cement;mwall1; ]'..
|
||||
'item_image_button[4,3.5;1,1;mylandscaping:mwall_icorner_cement;mwall2; ]'..
|
||||
'item_image_button[5,3.5;1,1;mylandscaping:mwall_ocorner_cement;mwall3; ]'..
|
||||
--Adaridge walls
|
||||
'item_image_button[3,3.5;1,1;mylandscaping:awall_left_cement;awall1; ]'..
|
||||
'item_image_button[4,3.5;1,1;mylandscaping:awall_middle_cement;awall2; ]'..
|
||||
'item_image_button[5,3.5;1,1;mylandscaping:awall_right_cement;awall3; ]'..
|
||||
'item_image_button[6,3.5;1,1;mylandscaping:awall_icorner_cement;awall4; ]'..
|
||||
'item_image_button[7,3.5;1,1;mylandscaping:awall_ocorner_cement;awall5; ]'..
|
||||
'item_image_button[3,1.5;1,1;mylandscaping:awall_left_cement;awall1; ]'..
|
||||
'item_image_button[4,1.5;1,1;mylandscaping:awall_middle_cement;awall2; ]'..
|
||||
'item_image_button[5,1.5;1,1;mylandscaping:awall_right_cement;awall3; ]'..
|
||||
'item_image_button[6,1.5;1,1;mylandscaping:awall_icorner_cement;awall4; ]'..
|
||||
'item_image_button[7,1.5;1,1;mylandscaping:awall_ocorner_cement;awall5; ]'..
|
||||
input
|
||||
|
||||
columns = --Although all the columns are in the wall files they get their own menu.
|
||||
form..
|
||||
'label[.75,1;Columns are compatible with all walls.]'..
|
||||
'label[.75,1.75;Freeport]'..
|
||||
'label[.75,2.75;Madison]'..
|
||||
'label[.75,3.75;Adaridge]'..
|
||||
'item_image_button[2,1.5;1,1;mylandscaping:fwall_column_m_t_cement;fcolumn1; ]'..
|
||||
'item_image_button[3,1.5;1,1;mylandscaping:fwall_column_ic_t_cement;fcolumn2; ]'..
|
||||
'item_image_button[4,1.5;1,1;mylandscaping:fwall_column_oc_t_cement;fcolumn3; ]'..
|
||||
'item_image_button[2,3.5;1,1;mylandscaping:awall_column_m_t_cement;acolumn1; ]'..
|
||||
'item_image_button[3,3.5;1,1;mylandscaping:awall_column_ic_t_cement;acolumn2; ]'..
|
||||
'item_image_button[4,3.5;1,1;mylandscaping:awall_column_oc_t_cement;acolumn3; ]'..
|
||||
'label[.75,2.75;Freeport]'..
|
||||
-- 'label[.75,3.75;Madison]'..
|
||||
'label[.75,1.75;Adaridge]'..
|
||||
'item_image_button[2,2.5;1,1;mylandscaping:fwall_column_m_t_cement;fcolumn1; ]'..
|
||||
'item_image_button[3,2.5;1,1;mylandscaping:fwall_column_ic_t_cement;fcolumn2; ]'..
|
||||
'item_image_button[4,2.5;1,1;mylandscaping:fwall_column_oc_t_cement;fcolumn3; ]'..
|
||||
'item_image_button[2,1.5;1,1;mylandscaping:awall_column_m_t_cement;acolumn1; ]'..
|
||||
'item_image_button[3,1.5;1,1;mylandscaping:awall_column_ic_t_cement;acolumn2; ]'..
|
||||
'item_image_button[4,1.5;1,1;mylandscaping:awall_column_oc_t_cement;acolumn3; ]'..
|
||||
'label[6.5,1;Column toppers]'..
|
||||
'item_image_button[6,1.5;1,1;mylandscaping:column_t_sphere_cement;column_sphere; ]'..
|
||||
'item_image_button[7,1.5;1,1;mylandscaping:column_t_dragon_cement;column_dragon; ]'..
|
||||
|
15
init.lua
15
init.lua
@ -1,16 +1,19 @@
|
||||
--configs
|
||||
-- change this to make blocks show in creative inventory. 0 will show, 1 is invisible
|
||||
visible = 1
|
||||
mylandscaping = {}
|
||||
if minetest.settings:get_bool('mylandscaping.creative') then
|
||||
ml_visible = 0
|
||||
else
|
||||
ml_visible = 1
|
||||
end
|
||||
|
||||
--Load File
|
||||
dofile(minetest.get_modpath('mylandscaping')..'/walls_freeport.lua')
|
||||
--dofile(minetest.get_modpath('mylandscaping')..'/walls_madison.lua') these aren't made yet
|
||||
dofile(minetest.get_modpath('mylandscaping')..'/walls_madison.lua')
|
||||
dofile(minetest.get_modpath('mylandscaping')..'/walls_adaridge.lua')
|
||||
dofile(minetest.get_modpath('mylandscaping')..'/walls_deco.lua')
|
||||
dofile(minetest.get_modpath('mylandscaping')..'/stones.lua')
|
||||
dofile(minetest.get_modpath('mylandscaping')..'/recipes.lua')
|
||||
dofile(minetest.get_modpath("mylandscaping").."/machine.lua")
|
||||
dofile(minetest.get_modpath("mylandscaping").."/mixer.lua")
|
||||
dofile(minetest.get_modpath('mylandscaping')..'/machine.lua')
|
||||
dofile(minetest.get_modpath('mylandscaping')..'/mixer.lua')
|
||||
dofile(minetest.get_modpath('mylandscaping')..'/concrete.lua')
|
||||
dofile(minetest.get_modpath('mylandscaping')..'/formspec.lua')
|
||||
dofile(minetest.get_modpath('mylandscaping')..'/toppers.lua')
|
||||
|
526
machine.lua
526
machine.lua
@ -8,30 +8,31 @@ local deco = {}
|
||||
|
||||
|
||||
local color_tab = {
|
||||
{"black", "Black", "dye:black"},
|
||||
{"blue", "Blue", "dye:blue"},
|
||||
{"brown", "Brown", "dye:brown"},
|
||||
{"cyan", "Cyan", "dye:cyan"},
|
||||
{"dark_green", "Dark Green", "dye:dark_green"},
|
||||
{"dark_grey", "Dark Grey", "dye:dark_grey"},
|
||||
{"green", "Green", "dye:green"},
|
||||
{"grey", "Grey", "dye:grey"},
|
||||
{"magenta", "Magenta", "dye:magenta"},
|
||||
{"orange", "Orange", "dye:orange"},
|
||||
{"pink", "Pink", "dye:pink"},
|
||||
{"red", "Red", "dye:red"},
|
||||
{"violet", "Violet", "dye:violet"},
|
||||
{"white", "White", "dye:white"},
|
||||
{"yellow", "Yellow", "dye:yellow"},
|
||||
{"cement", "", ""},
|
||||
{'black', 'Black', 'dye:black'},
|
||||
{'blue', 'Blue', 'dye:blue'},
|
||||
{'brown', 'Brown', 'dye:brown'},
|
||||
{'cyan', 'Cyan', 'dye:cyan'},
|
||||
{'dark_green', 'Dark Green', 'dye:dark_green'},
|
||||
{'dark_grey', 'Dark Grey', 'dye:dark_grey'},
|
||||
{'green', 'Green', 'dye:green'},
|
||||
{'grey', 'Grey', 'dye:grey'},
|
||||
{'magenta', 'Magenta', 'dye:magenta'},
|
||||
{'orange', 'Orange', 'dye:orange'},
|
||||
{'pink', 'Pink', 'dye:pink'},
|
||||
{'red', 'Red', 'dye:red'},
|
||||
{'violet', 'Violet', 'dye:violet'},
|
||||
{'white', 'White', 'dye:white'},
|
||||
{'yellow', 'Yellow', 'dye:yellow'},
|
||||
{'cement', '', ''},
|
||||
}
|
||||
|
||||
minetest.register_node('mylandscaping:machine', {
|
||||
description = 'concrete forms',
|
||||
description = 'Concrete Forms',
|
||||
drawtype = 'mesh',
|
||||
mesh = 'mylandscaping_cement_mixer.obj',
|
||||
tiles = {
|
||||
{name='mylandscaping_tex3.png'},{name='mylandscaping_tex1.png'},{name='default_gravel.png'},{name='mylandscaping_tex2.png'}},
|
||||
{name='mylandscaping_tex3.png'},{name='mylandscaping_tex1.png'},
|
||||
{name='default_gravel.png'},{name='mylandscaping_tex2.png'}},
|
||||
groups = {oddly_breakable_by_hand=2},
|
||||
paramtype = 'light',
|
||||
paramtype2 = 'facedir',
|
||||
@ -53,32 +54,49 @@ minetest.register_node('mylandscaping:machine', {
|
||||
can_dig = function(pos,player)
|
||||
local meta = minetest.get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
if player:get_player_name() == meta:get_string("owner") and
|
||||
inv:is_empty("input") and
|
||||
inv:is_empty("input") and
|
||||
inv:is_empty("output") then
|
||||
if player:get_player_name() == meta:get_string('owner') and
|
||||
inv:is_empty('input') and
|
||||
inv:is_empty('dye') and
|
||||
inv:is_empty('output') then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end,
|
||||
|
||||
|
||||
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||
local input = stack:get_name()
|
||||
if listname == 'input' then
|
||||
if input == 'mylandscaping:concrete' or input == 'mylandscaping:concrete_bag' then
|
||||
return 99
|
||||
else
|
||||
return 0
|
||||
end
|
||||
elseif listname == 'dye' then
|
||||
if minetest.get_item_group(input, 'dye') > 0 then
|
||||
return 99
|
||||
else
|
||||
return 0
|
||||
end
|
||||
elseif listname == 'output' then
|
||||
return 0
|
||||
end
|
||||
end,
|
||||
|
||||
after_place_node = function(pos, placer, itemstack)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("owner",placer:get_player_name())
|
||||
meta:set_string("infotext","Concrete Mixer (owned by "..placer:get_player_name()..")")
|
||||
meta:set_string('owner',placer:get_player_name())
|
||||
meta:set_string('infotext','Concrete Mixer (owned by '..placer:get_player_name()..')')
|
||||
end,
|
||||
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec", retaining_walls)
|
||||
meta:set_string("infotext", "Concrete Mixer")
|
||||
meta:set_string('formspec', retaining_walls)
|
||||
meta:set_string('infotext', 'Concrete Mixer')
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("input", 1)
|
||||
inv:set_size("output", 1)
|
||||
inv:set_size("dye", 1)
|
||||
inv:set_size('input', 1)
|
||||
inv:set_size('output', 1)
|
||||
inv:set_size('dye', 1)
|
||||
end,
|
||||
|
||||
on_receive_fields = function(pos, formname, fields, sender)
|
||||
@ -86,14 +104,11 @@ on_receive_fields = function(pos, formname, fields, sender)
|
||||
local inv = meta:get_inventory()
|
||||
if fields['retain'] then
|
||||
meta:set_string('formspec', retaining_walls)
|
||||
end
|
||||
if fields['patio'] then
|
||||
elseif fields['patio'] then
|
||||
meta:set_string('formspec', patio_pavers)
|
||||
end
|
||||
if fields['deco'] then
|
||||
elseif fields['deco'] then
|
||||
meta:set_string('formspec', deco_walls)
|
||||
end
|
||||
if fields['column'] then
|
||||
elseif fields['column'] then
|
||||
meta:set_string('formspec', columns)
|
||||
end
|
||||
|
||||
@ -102,151 +117,192 @@ local col = color_tab[i][1]
|
||||
local coldesc = color_tab[i][2]
|
||||
local dyecol = color_tab[i][3]
|
||||
|
||||
if fields["awall1"]
|
||||
or fields["awall2"]
|
||||
or fields["awall3"]
|
||||
or fields["awall4"]
|
||||
or fields["awall5"]
|
||||
if fields['awall1']
|
||||
or fields['awall2']
|
||||
or fields['awall3']
|
||||
or fields['awall4']
|
||||
or fields['awall5']
|
||||
then
|
||||
|
||||
if fields["awall1"] then
|
||||
if fields['awall1'] then
|
||||
make_ok = false
|
||||
anzahl = 2
|
||||
block = "mylandscaping:awall_left_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:awall_left_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["awall2"] then
|
||||
if fields['awall2'] then
|
||||
make_ok = false
|
||||
anzahl = 2
|
||||
block = "mylandscaping:awall_middle_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:awall_middle_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["awall3"] then
|
||||
if fields['awall3'] then
|
||||
make_ok = false
|
||||
anzahl = 2
|
||||
block = "mylandscaping:awall_right_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:awall_right_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["awall4"] then
|
||||
if fields['awall4'] then
|
||||
make_ok = false
|
||||
anzahl = 2
|
||||
block = "mylandscaping:awall_icorner_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:awall_icorner_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["awall5"] then
|
||||
if fields['awall5'] then
|
||||
make_ok = false
|
||||
anzahl = 2
|
||||
block = "mylandscaping:awall_ocorner_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:awall_ocorner_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
local instack = inv:get_stack("input", 1)
|
||||
local outstack = inv:get_stack("output", 1)
|
||||
local dyestack = inv:get_stack("dye", 1)
|
||||
----------------------------------------------------------------------
|
||||
|
||||
if instack:get_name()== "mylandscaping:concrete_bag" and
|
||||
dyestack:get_name()== dyecol then
|
||||
local instack = inv:get_stack('input', 1)
|
||||
local outstack = inv:get_stack('output', 1)
|
||||
local dyestack = inv:get_stack('dye', 1)
|
||||
---------------------------------------------------------------------
|
||||
if instack:get_name()== 'mylandscaping:concrete_bag' and dyestack:get_name()== dyecol
|
||||
or instack:get_name()== 'mylandscaping:concrete' and dyestack:get_name()== dyecol then
|
||||
material = col
|
||||
make_ok = true
|
||||
end
|
||||
if instack:get_name()== "myconcrete:concrete" and
|
||||
dyestack:get_name()== dyecol then
|
||||
material = col
|
||||
make_ok = true
|
||||
end
|
||||
----------------------------------------------------------------------
|
||||
---------------------------------------------------------------------
|
||||
if make_ok == true then
|
||||
local give = {}
|
||||
for i = 0, anzahl-1 do
|
||||
give[i+1]=inv:add_item("output",block..col)
|
||||
end
|
||||
if inv:room_for_item('output', block..col) then
|
||||
inv:add_item('output', block..col..' '..anzahl)
|
||||
instack:take_item()
|
||||
inv:set_stack("input",1,instack)
|
||||
if dyestack:get_name() == "dye:"..col then
|
||||
inv:set_stack('input',1,instack)
|
||||
if dyestack:get_name() == 'dye:'..col then
|
||||
dyestack:take_item()
|
||||
inv:set_stack("dye",1,dyestack)
|
||||
inv:set_stack('dye',1,dyestack)
|
||||
end
|
||||
end
|
||||
end
|
||||
--------------------------------------------------------------------------------
|
||||
if fields["fwall1"]
|
||||
or fields["fwall2"]
|
||||
or fields["fwall3"]
|
||||
or fields["fwall4"]
|
||||
end
|
||||
---------------------------------------------------------------------
|
||||
if fields['fwall1']
|
||||
or fields['fwall2']
|
||||
or fields['fwall3']
|
||||
or fields['fwall4']
|
||||
then
|
||||
|
||||
if fields["fwall1"] then
|
||||
if fields['fwall1'] then
|
||||
make_ok = false
|
||||
anzahl = 2
|
||||
block = "mylandscaping:fwall_left_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:fwall_left_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["fwall2"] then
|
||||
if fields['fwall2'] then
|
||||
make_ok = false
|
||||
anzahl = 2
|
||||
block = "mylandscaping:fwall_middle_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:fwall_middle_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["fwall3"] then
|
||||
if fields['fwall3'] then
|
||||
make_ok = false
|
||||
anzahl = 2
|
||||
block = "mylandscaping:fwall_right_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:fwall_right_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["fwall4"] then
|
||||
if fields['fwall4'] then
|
||||
make_ok = false
|
||||
anzahl = 2
|
||||
block = "mylandscaping:fwall_corner_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:fwall_corner_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
local instack = inv:get_stack("input", 1)
|
||||
local outstack = inv:get_stack("output", 1)
|
||||
local dyestack = inv:get_stack("dye", 1)
|
||||
----------------------------------------------------------------------
|
||||
|
||||
if instack:get_name()== "mylandscaping:concrete_bag" and
|
||||
dyestack:get_name()== dyecol then
|
||||
local instack = inv:get_stack('input', 1)
|
||||
local outstack = inv:get_stack('output', 1)
|
||||
local dyestack = inv:get_stack('dye', 1)
|
||||
---------------------------------------------------------------------
|
||||
if instack:get_name()== 'mylandscaping:concrete_bag' and dyestack:get_name()== dyecol
|
||||
or instack:get_name()== 'mylandscaping:concrete' and dyestack:get_name()== dyecol then
|
||||
material = col
|
||||
make_ok = true
|
||||
end
|
||||
if instack:get_name()== "myconcrete:concrete" and
|
||||
dyestack:get_name()== dyecol then
|
||||
material = col
|
||||
make_ok = true
|
||||
end
|
||||
----------------------------------------------------------------------
|
||||
---------------------------------------------------------------------
|
||||
if make_ok == true then
|
||||
local give = {}
|
||||
for i = 0, anzahl-1 do
|
||||
give[i+1]=inv:add_item("output",block..col)
|
||||
end
|
||||
if inv:room_for_item('output', block..col) then
|
||||
inv:add_item('output', block..col..' '..anzahl)
|
||||
instack:take_item()
|
||||
inv:set_stack("input",1,instack)
|
||||
if dyestack:get_name() == "dye:"..col then
|
||||
inv:set_stack('input',1,instack)
|
||||
if dyestack:get_name() == 'dye:'..col then
|
||||
dyestack:take_item()
|
||||
inv:set_stack("dye",1,dyestack)
|
||||
inv:set_stack('dye',1,dyestack)
|
||||
end
|
||||
end
|
||||
end
|
||||
--------------------------------------------------------------------------------
|
||||
end
|
||||
---------------------------------------------------------------------
|
||||
if fields['mwall1']
|
||||
or fields['mwall2']
|
||||
or fields['mwall3']
|
||||
then
|
||||
|
||||
if fields['mwall1'] then
|
||||
make_ok = false
|
||||
anzahl = 2
|
||||
block = 'mylandscaping:mwall_middle_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields['mwall2'] then
|
||||
make_ok = false
|
||||
anzahl = 2
|
||||
block = 'mylandscaping:mwall_icorner_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields['mwall3'] then
|
||||
make_ok = false
|
||||
anzahl = 2
|
||||
block = 'mylandscaping:mwall_ocorner_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
local instack = inv:get_stack('input', 1)
|
||||
local outstack = inv:get_stack('output', 1)
|
||||
local dyestack = inv:get_stack('dye', 1)
|
||||
---------------------------------------------------------------------
|
||||
if instack:get_name()== 'mylandscaping:concrete_bag' and dyestack:get_name()== dyecol
|
||||
or instack:get_name()== 'mylandscaping:concrete' and dyestack:get_name()== dyecol then
|
||||
material = col
|
||||
make_ok = true
|
||||
end
|
||||
---------------------------------------------------------------------
|
||||
if make_ok == true then
|
||||
local give = {}
|
||||
if inv:room_for_item('output', block..col) then
|
||||
inv:add_item('output', block..col..' '..anzahl)
|
||||
instack:take_item()
|
||||
inv:set_stack('input',1,instack)
|
||||
if dyestack:get_name() == 'dye:'..col then
|
||||
dyestack:take_item()
|
||||
inv:set_stack('dye',1,dyestack)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
---------------------------------------------------------------------
|
||||
--all columns here, possible decorative caps too.
|
||||
if fields['acolumn1']
|
||||
or fields['acolumn2']
|
||||
@ -262,278 +318,266 @@ or fields['column_dragon']
|
||||
or fields['column_suzanne']
|
||||
or fields['column_cross']
|
||||
then
|
||||
if fields["acolumn1"] then
|
||||
if fields['acolumn1'] then
|
||||
make_ok = false
|
||||
anzahl = 1
|
||||
block = "mylandscaping:awall_column_m_t_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:awall_column_m_t_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["acolumn2"] then
|
||||
if fields['acolumn2'] then
|
||||
make_ok = false
|
||||
anzahl = 1
|
||||
block = "mylandscaping:awall_column_ic_t_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:awall_column_ic_t_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["acolumn3"] then
|
||||
if fields['acolumn3'] then
|
||||
make_ok = false
|
||||
anzahl = 1
|
||||
block = "mylandscaping:awall_column_oc_t_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:awall_column_oc_t_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["fcolumn1"] then
|
||||
if fields['fcolumn1'] then
|
||||
make_ok = false
|
||||
anzahl = 1
|
||||
block = "mylandscaping:fwall_column_m_t_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:fwall_column_m_t_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["fcolumn2"] then
|
||||
if fields['fcolumn2'] then
|
||||
make_ok = false
|
||||
anzahl = 1
|
||||
block = "mylandscaping:fwall_column_ic_t_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:fwall_column_ic_t_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["fcolumn3"] then
|
||||
if fields['fcolumn3'] then
|
||||
make_ok = false
|
||||
anzahl = 1
|
||||
block = "mylandscaping:fwall_column_oc_t_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:fwall_column_oc_t_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["column_sphere"] then
|
||||
if fields['column_sphere'] then
|
||||
make_ok = false
|
||||
anzahl = 2
|
||||
block = "mylandscaping:column_t_sphere_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:column_t_sphere_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["column_dragon"] then
|
||||
if fields['column_dragon'] then
|
||||
make_ok = false
|
||||
anzahl = 1
|
||||
block = "mylandscaping:column_t_dragon_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:column_t_dragon_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["column_suzanne"] then
|
||||
if fields['column_suzanne'] then
|
||||
make_ok = false
|
||||
anzahl = 2
|
||||
block = "mylandscaping:column_t_suzanne_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:column_t_suzanne_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["column_cross"] then
|
||||
if fields['column_cross'] then
|
||||
make_ok = false
|
||||
anzahl = 2
|
||||
block = "mylandscaping:column_t_cross_"
|
||||
if inv:is_empty("input") then
|
||||
block = 'mylandscaping:column_t_cross_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
local instack = inv:get_stack("input", 1)
|
||||
local outstack = inv:get_stack("output", 1)
|
||||
local dyestack = inv:get_stack("dye", 1)
|
||||
----------------------------------------------------------------------
|
||||
local instack = inv:get_stack('input', 1)
|
||||
local outstack = inv:get_stack('output', 1)
|
||||
local dyestack = inv:get_stack('dye', 1)
|
||||
---------------------------------------------------------------------
|
||||
|
||||
if instack:get_name()== "mylandscaping:concrete_bag" and
|
||||
dyestack:get_name()== dyecol then
|
||||
material = col
|
||||
make_ok = true
|
||||
end
|
||||
if instack:get_name()== "myconcrete:concrete" and
|
||||
dyestack:get_name()== dyecol then
|
||||
if instack:get_name()== 'mylandscaping:concrete_bag' and dyestack:get_name()== dyecol
|
||||
or instack:get_name()== 'mylandscaping:concrete' and dyestack:get_name()== dyecol then
|
||||
material = col
|
||||
make_ok = true
|
||||
end
|
||||
if make_ok == true then
|
||||
local give = {}
|
||||
for i = 0, anzahl-1 do
|
||||
give[i+1]=inv:add_item("output",block..col)
|
||||
end
|
||||
if inv:room_for_item('output', block..col) then
|
||||
inv:add_item('output', block..col..' '..anzahl)
|
||||
instack:take_item()
|
||||
inv:set_stack("input",1,instack)
|
||||
if dyestack:get_name() == "dye:"..col then
|
||||
inv:set_stack('input',1,instack)
|
||||
if dyestack:get_name() == 'dye:'..col then
|
||||
dyestack:take_item()
|
||||
inv:set_stack("dye",1,dyestack)
|
||||
inv:set_stack('dye',1,dyestack)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if fields["patio1"]
|
||||
or fields["patio2"]
|
||||
or fields["patio3"]
|
||||
or fields["patio4"]
|
||||
or fields["patio5"]
|
||||
or fields["patio6"]
|
||||
or fields["patio7"]
|
||||
if fields['patio1']
|
||||
or fields['patio2']
|
||||
or fields['patio3']
|
||||
or fields['patio4']
|
||||
or fields['patio5']
|
||||
or fields['patio6']
|
||||
or fields['patio7']
|
||||
then
|
||||
|
||||
if fields["patio1"] then
|
||||
if fields['patio1'] then
|
||||
make_ok = false
|
||||
anzahl = 3
|
||||
stone = "mylandscaping:stone_square"
|
||||
if inv:is_empty("input") then
|
||||
stone = 'mylandscaping:stone_square'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["patio2"] then
|
||||
if fields['patio2'] then
|
||||
make_ok = false
|
||||
anzahl = 3
|
||||
stone = "mylandscaping:stone_square_sm"
|
||||
if inv:is_empty("input") then
|
||||
stone = 'mylandscaping:stone_square_sm'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["patio7"] then
|
||||
if fields['patio7'] then
|
||||
make_ok = false
|
||||
anzahl = 3
|
||||
stone = "mylandscaping:stone_square_xsm"
|
||||
if inv:is_empty("input") then
|
||||
stone = 'mylandscaping:stone_square_xsm'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["patio3"] then
|
||||
if fields['patio3'] then
|
||||
make_ok = false
|
||||
anzahl = 3
|
||||
stone = "mylandscaping:stone_pavers"
|
||||
if inv:is_empty("input") then
|
||||
stone = 'mylandscaping:stone_pavers'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["patio4"] then
|
||||
if fields['patio4'] then
|
||||
make_ok = false
|
||||
anzahl = 3
|
||||
stone = "mylandscaping:stone_ashlar"
|
||||
if inv:is_empty("input") then
|
||||
stone = 'mylandscaping:stone_ashlar'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["patio5"] then
|
||||
if fields['patio5'] then
|
||||
make_ok = false
|
||||
anzahl = 3
|
||||
stone = "mylandscaping:stone_flagstone"
|
||||
if inv:is_empty("input") then
|
||||
stone = 'mylandscaping:stone_flagstone'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["patio6"] then
|
||||
if fields['patio6'] then
|
||||
make_ok = false
|
||||
anzahl = 3
|
||||
stone = "mylandscaping:stone_pinwheel"
|
||||
if inv:is_empty("input") then
|
||||
stone = 'mylandscaping:stone_pinwheel'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
local instack = inv:get_stack("input", 1)
|
||||
local outstack = inv:get_stack("output", 1)
|
||||
local dyestack = inv:get_stack("dye", 1)
|
||||
local instack = inv:get_stack('input', 1)
|
||||
local outstack = inv:get_stack('output', 1)
|
||||
local dyestack = inv:get_stack('dye', 1)
|
||||
|
||||
if instack:get_name()== "mylandscaping:concrete_bag" and
|
||||
dyestack:get_name()== dyecol then
|
||||
if instack:get_name()== 'mylandscaping:concrete_bag' and dyestack:get_name()== dyecol
|
||||
or instack:get_name()== 'mylandscaping:concrete' and dyestack:get_name()== dyecol then
|
||||
make_ok = true
|
||||
|
||||
end
|
||||
if instack:get_name()== "myconcrete:concrete" and
|
||||
dyestack:get_name()== dyecol then
|
||||
make_ok = true
|
||||
|
||||
end
|
||||
----------------------------------------------------------------------
|
||||
---------------------------------------------------------------------
|
||||
if make_ok == true then
|
||||
local give = {}
|
||||
for i = 0, anzahl-1 do
|
||||
give[i+1]=inv:add_item("output",stone..col)
|
||||
end
|
||||
dyestack:take_item()
|
||||
inv:set_stack("dye",1,dyestack)
|
||||
if inv:room_for_item('output', stone..col) then
|
||||
inv:add_item('output', stone..col..' '..anzahl)
|
||||
instack:take_item()
|
||||
inv:set_stack("input",1,instack)
|
||||
inv:set_stack('input',1,instack)
|
||||
if dyestack:get_name() == 'dye:'..col then
|
||||
dyestack:take_item()
|
||||
inv:set_stack('dye',1,dyestack)
|
||||
end
|
||||
end
|
||||
--------------------------------------------------------------------------------
|
||||
if fields["deco1"]
|
||||
or fields["deco2"]
|
||||
or fields["deco3"]
|
||||
end
|
||||
end
|
||||
---------------------------------------------------------------------
|
||||
if fields['deco1']
|
||||
or fields['deco2']
|
||||
or fields['deco3']
|
||||
or fields['deco4']
|
||||
or fields['deco5']
|
||||
then
|
||||
|
||||
if fields["deco1"] then
|
||||
if fields['deco1'] then
|
||||
make_ok = false
|
||||
anzahl = 4
|
||||
deco = "mylandscaping:deco_wall_s_"
|
||||
if inv:is_empty("input") then
|
||||
deco = 'mylandscaping:deco_wall_s_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["deco2"] then
|
||||
if fields['deco2'] then
|
||||
make_ok = false
|
||||
anzahl = 4
|
||||
deco = "mylandscaping:deco_wall_f_"
|
||||
if inv:is_empty("input") then
|
||||
deco = 'mylandscaping:deco_wall_f_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["deco3"] then
|
||||
if fields['deco3'] then
|
||||
make_ok = false
|
||||
anzahl = 4
|
||||
deco = "mylandscaping:deco_wall_p_"
|
||||
if inv:is_empty("input") then
|
||||
deco = 'mylandscaping:deco_wall_p_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["deco4"] then
|
||||
if fields['deco4'] then
|
||||
make_ok = false
|
||||
anzahl = 4
|
||||
deco = "mylandscaping:deco_wall_r_"
|
||||
if inv:is_empty("input") then
|
||||
deco = 'mylandscaping:deco_wall_r_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
if fields["deco5"] then
|
||||
if fields['deco5'] then
|
||||
make_ok = false
|
||||
anzahl = 4
|
||||
deco = "mylandscaping:deco_column_"
|
||||
if inv:is_empty("input") then
|
||||
deco = 'mylandscaping:deco_column_'
|
||||
if inv:is_empty('input') then
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
local instack = inv:get_stack("input", 1)
|
||||
local outstack = inv:get_stack("output", 1)
|
||||
local dyestack = inv:get_stack("dye", 1)
|
||||
local instack = inv:get_stack('input', 1)
|
||||
local outstack = inv:get_stack('output', 1)
|
||||
local dyestack = inv:get_stack('dye', 1)
|
||||
|
||||
if instack:get_name()== "mylandscaping:concrete_bag" and
|
||||
dyestack:get_name()== dyecol then
|
||||
make_ok = true
|
||||
|
||||
end
|
||||
if instack:get_name()== "myconcrete:concrete" and
|
||||
dyestack:get_name()== dyecol then
|
||||
if instack:get_name()== 'mylandscaping:concrete_bag' and dyestack:get_name()== dyecol
|
||||
or instack:get_name()== 'mylandscaping:concrete' and dyestack:get_name()== dyecol then
|
||||
make_ok = true
|
||||
end
|
||||
----------------------------------------------------------------------
|
||||
---------------------------------------------------------------------
|
||||
if make_ok == true then
|
||||
local give = {}
|
||||
for i = 0, anzahl-1 do
|
||||
give[i+1]=inv:add_item("output",deco..col)
|
||||
end
|
||||
dyestack:take_item()
|
||||
inv:set_stack("dye",1,dyestack)
|
||||
if inv:room_for_item('output', deco..col) then
|
||||
inv:add_item('output', deco..col..' '..anzahl)
|
||||
instack:take_item()
|
||||
inv:set_stack("input",1,instack)
|
||||
inv:set_stack('input',1,instack)
|
||||
if dyestack:get_name() == 'dye:'..col then
|
||||
dyestack:take_item()
|
||||
inv:set_stack('dye',1,dyestack)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
118
mixer.lua
118
mixer.lua
@ -1,13 +1,11 @@
|
||||
|
||||
minetest.register_alias("myconcrete:concrete", "mylandscaping:concrete")
|
||||
|
||||
|
||||
minetest.register_node('mylandscaping:mixer', {
|
||||
description = 'concrete mixer',
|
||||
description = 'Concrete Mixer',
|
||||
drawtype = 'mesh',
|
||||
mesh = 'mylandscaping_crusher.obj',
|
||||
tiles = {
|
||||
{name='mylandscaping_tex1.png'},{name='mylandscaping_supports.png'},{name='mylandscaping_base.png'},{name='mylandscaping_hopper.png'},{name='mylandscaping_crusher.png'}},
|
||||
{name='mylandscaping_tex1.png'},{name='mylandscaping_supports.png'},
|
||||
{name='mylandscaping_base.png'},{name='mylandscaping_hopper.png'},
|
||||
{name='mylandscaping_crusher.png'}},
|
||||
groups = {oddly_breakable_by_hand=2},
|
||||
paramtype = 'light',
|
||||
paramtype2 = 'facedir',
|
||||
@ -27,11 +25,11 @@ minetest.register_node('mylandscaping:mixer', {
|
||||
can_dig = function(pos,player)
|
||||
local meta = minetest.get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
if player:get_player_name() == meta:get_string("owner") and
|
||||
inv:is_empty("cobble") and
|
||||
inv:is_empty("gravel") and
|
||||
inv:is_empty("concrete") and
|
||||
inv:is_empty("sand") then
|
||||
if player:get_player_name() == meta:get_string('owner') and
|
||||
inv:is_empty('cobble') and
|
||||
inv:is_empty('gravel') and
|
||||
inv:is_empty('concrete') and
|
||||
inv:is_empty('sand') then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
@ -41,69 +39,85 @@ end,
|
||||
after_place_node = function(pos, placer, itemstack)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local timer = minetest.get_node_timer(pos)
|
||||
meta:set_string("owner",placer:get_player_name())
|
||||
meta:set_string("infotext","Cement Mixer (owned by "..placer:get_player_name()..")")
|
||||
meta:set_string('owner',placer:get_player_name())
|
||||
meta:set_string('infotext','Cement Mixer (owned by '..placer:get_player_name()..')')
|
||||
timer:start(10)
|
||||
end,
|
||||
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec", "invsize[9,10;]"..
|
||||
"background[-0.15,-0.25;9.40,10.75;mylandscaping_background.png]"..
|
||||
meta:set_string('formspec', 'size[9,10;]'..
|
||||
'background[-0.15,-0.25;9.40,10.75;mylandscaping_background.png]'..
|
||||
--Gravel
|
||||
"label[0.5,1;Cobble]"..
|
||||
"label[0.5,1.5;Crusher]"..
|
||||
"label[2.5,2;Cobble]"..
|
||||
"list[current_name;cobble;2.5,1;1,1;]"..
|
||||
--"button[4,1;1,1;crush;Crush]"..
|
||||
"list[current_name;gravel;5.5,1;1,1;]"..
|
||||
"label[6.5,1;Gravel]"..
|
||||
|
||||
'label[0.5,1;Cobble]'..
|
||||
'label[0.5,1.5;Crusher]'..
|
||||
'label[2.5,2;Cobble]'..
|
||||
'list[context;cobble;2.5,1;1,1;]'..
|
||||
'list[context;gravel;5.5,1;1,1;]'..
|
||||
'label[6.5,1;Gravel]'..
|
||||
--Concrete
|
||||
"label[5,0.5;Concrete Mixer]"..
|
||||
"list[current_name;sand;5.5,2.5;1,1;]"..
|
||||
"label[6.5,2.5;Sand]"..
|
||||
--"button[5.5,3.5;1,1;mix;Mix]"..
|
||||
"list[current_name;concrete;5.5,4.5;1,1;]"..
|
||||
"label[6.5,4.5;Output]"..
|
||||
|
||||
'label[5,0.5;Concrete Mixer]'..
|
||||
'list[context;sand;5.5,2.5;1,1;]'..
|
||||
'label[6.5,2.5;Sand]'..
|
||||
'list[context;concrete;5.5,4.5;1,1;]'..
|
||||
'label[6.5,4.5;Output]'..
|
||||
--Players Inven
|
||||
"list[current_player;main;0.5,6;8,4;]")
|
||||
meta:set_string("infotext", "Concrete Mixer")
|
||||
'list[current_player;main;0.5,6;8,4;]')
|
||||
meta:set_string('infotext', 'Concrete Mixer')
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("cobble", 1)
|
||||
inv:set_size("gravel", 1)
|
||||
inv:set_size("concrete", 1)
|
||||
inv:set_size("sand", 1)
|
||||
inv:set_size('cobble', 1)
|
||||
inv:set_size('gravel', 1)
|
||||
inv:set_size('concrete', 1)
|
||||
inv:set_size('sand', 1)
|
||||
end,
|
||||
|
||||
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||
local input = stack:get_name()
|
||||
if listname == 'cobble' then
|
||||
if input == 'default:cobble' or minetest.get_item_group(input, 'ml') > 0 then
|
||||
return 99
|
||||
else
|
||||
return 0
|
||||
end
|
||||
elseif listname == 'gravel' then
|
||||
if input ~= 'default:gravel' then
|
||||
return 0
|
||||
else
|
||||
return 99
|
||||
end
|
||||
elseif listname == 'sand' then
|
||||
if minetest.get_item_group(input, 'sand') > 0 then
|
||||
return 99
|
||||
else
|
||||
return 0
|
||||
end
|
||||
elseif listname == 'concrete' then
|
||||
return 0
|
||||
end
|
||||
end,
|
||||
|
||||
on_timer = function(pos)
|
||||
local timer = minetest.get_node_timer(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local inv = meta:get_inventory()
|
||||
local cobble = inv:get_stack("cobble", 1)
|
||||
local gravel = inv:get_stack("gravel", 1)
|
||||
local sand = inv:get_stack("sand", 1)
|
||||
local cobble = inv:get_stack('cobble', 1)
|
||||
local gravel = inv:get_stack('gravel', 1)
|
||||
local sand = inv:get_stack('sand', 1)
|
||||
local cobble_inv= cobble:get_name()
|
||||
local sand_inv = sand:get_name()
|
||||
----------------------------------------------------------------------
|
||||
if cobble:get_name() == "default:cobble" or
|
||||
minetest.get_node_group(cobble_inv, 'ml') > 0 then
|
||||
inv:add_item("gravel","default:gravel")
|
||||
if cobble:get_name() == 'default:cobble' or minetest.get_item_group(cobble_inv, 'ml') > 0 then
|
||||
inv:add_item('gravel','default:gravel')
|
||||
cobble:take_item()
|
||||
inv:set_stack("cobble",1,cobble)
|
||||
inv:set_stack('cobble',1,cobble)
|
||||
end
|
||||
if gravel:get_name() == "default:gravel" and
|
||||
sand:get_name() == "default:sand" or
|
||||
sand:get_name() == "default:desert_sand" then
|
||||
inv:add_item("concrete","mylandscaping:concrete_bag")
|
||||
if gravel:get_name() == 'default:gravel' and minetest.get_item_group(sand_inv, 'sand') > 0 then
|
||||
inv:add_item('concrete','mylandscaping:concrete_bag')
|
||||
gravel:take_item()
|
||||
inv:set_stack("gravel",1,gravel)
|
||||
inv:set_stack('gravel',1,gravel)
|
||||
sand:take_item()
|
||||
inv:set_stack("sand",1,sand)
|
||||
inv:set_stack('sand',1,sand)
|
||||
end
|
||||
timer:start(10)
|
||||
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
|
3
mod.conf
3
mod.conf
@ -1 +1,4 @@
|
||||
name = mylandscaping
|
||||
description = This is a mod that lets you put up decorative walls around your gardens, and make pretty hardscapes.
|
||||
depends = default, bucket
|
||||
optional_depends = myconcrete
|
||||
|
210
models/mylandscaping_blockm_ic_b.obj
Normal file
210
models/mylandscaping_blockm_ic_b.obj
Normal file
@ -0,0 +1,210 @@
|
||||
# Blender v2.77 (sub 1) OBJ File: 'Madison_walls.blend'
|
||||
# www.blender.org
|
||||
o Madison_IC_B_Cube.032
|
||||
v 0.050000 0.500000 -0.050000
|
||||
v 0.050000 0.000000 -0.050000
|
||||
v -0.150000 0.500000 -0.050000
|
||||
v -0.150000 0.000000 -0.050000
|
||||
v 0.050000 0.500000 -0.400000
|
||||
v 0.050000 0.000000 -0.400000
|
||||
v -0.150000 0.500000 -0.400000
|
||||
v -0.150000 0.000000 -0.400000
|
||||
v -0.510000 -0.500000 -0.500000
|
||||
v -0.510000 0.500000 -0.500000
|
||||
v 0.150000 -0.500000 -0.500000
|
||||
v 0.150000 0.500000 -0.500000
|
||||
v -0.510000 -0.500000 -0.400000
|
||||
v -0.510000 0.500000 -0.400000
|
||||
v 0.150000 -0.500000 -0.400000
|
||||
v 0.150000 0.500000 -0.400000
|
||||
v -0.100000 -0.500000 -0.400000
|
||||
v -0.100000 0.000000 -0.400000
|
||||
v 0.100000 -0.500000 -0.400000
|
||||
v 0.100000 0.000000 -0.400000
|
||||
v -0.100000 -0.500000 -0.100000
|
||||
v -0.100000 0.000000 -0.100000
|
||||
v 0.100000 -0.500000 -0.100000
|
||||
v 0.100000 0.000000 -0.100000
|
||||
v 0.400000 -0.500000 0.510000
|
||||
v 0.400000 0.500000 0.510000
|
||||
v 0.400000 -0.500000 -0.150000
|
||||
v 0.400000 0.500000 -0.150000
|
||||
v 0.500000 -0.500000 0.510000
|
||||
v 0.500000 0.500000 0.510000
|
||||
v 0.500000 -0.500000 -0.150000
|
||||
v 0.500000 0.500000 -0.150000
|
||||
v 0.400000 0.500000 -0.050000
|
||||
v 0.400000 0.000000 -0.050000
|
||||
v 0.400000 0.500000 0.150000
|
||||
v 0.400000 0.000000 0.150000
|
||||
v -0.150000 0.500000 0.150000
|
||||
v -0.150000 0.000000 0.150000
|
||||
v -0.100000 -0.500000 0.100000
|
||||
v -0.100000 0.000000 0.100000
|
||||
v 0.400000 -0.500000 0.100000
|
||||
v 0.400000 0.000000 0.100000
|
||||
v 0.400000 -0.500000 -0.100000
|
||||
v 0.400000 0.000000 -0.100000
|
||||
v 0.050000 0.500000 0.150000
|
||||
v 0.050000 0.000000 0.150000
|
||||
v 0.100000 -0.500000 0.100000
|
||||
v 0.100000 0.000000 0.100000
|
||||
vt 0.5167 0.3204
|
||||
vt 0.5167 1.0001
|
||||
vt 0.0681 1.0001
|
||||
vt 0.0681 0.3204
|
||||
vt 0.0001 1.0001
|
||||
vt 0.0001 0.3204
|
||||
vt -0.4484 1.0001
|
||||
vt -0.4484 0.3204
|
||||
vt 0.9999 0.3403
|
||||
vt 0.9999 0.6801
|
||||
vt 0.9659 0.6801
|
||||
vt 0.9659 0.3403
|
||||
vt 0.0001 -0.1282
|
||||
vt 0.0681 -0.1282
|
||||
vt 0.0681 1.4487
|
||||
vt 0.0001 1.4487
|
||||
vt 0.5847 0.3204
|
||||
vt 0.5847 1.0001
|
||||
vt 0.1362 1.0001
|
||||
vt 0.1362 0.3204
|
||||
vt 0.0682 1.0001
|
||||
vt 0.0682 0.3204
|
||||
vt -0.3804 1.0001
|
||||
vt -0.3804 0.3204
|
||||
vt 0.9999 0.0001
|
||||
vt 0.9999 0.3400
|
||||
vt 0.9659 0.3400
|
||||
vt 0.9659 0.0001
|
||||
vt 0.0682 -0.1282
|
||||
vt 0.1362 -0.1282
|
||||
vt 0.1362 1.4487
|
||||
vt 0.0682 1.4487
|
||||
vt 0.6666 0.4626
|
||||
vt 0.8456 0.4626
|
||||
vt 0.8456 0.5649
|
||||
vt 0.6666 0.5649
|
||||
vt 0.0003 0.7177
|
||||
vt 0.2561 0.7177
|
||||
vt 0.2561 0.8968
|
||||
vt 0.0003 0.8968
|
||||
vt 0.4613 0.3590
|
||||
vt 0.4613 0.6148
|
||||
vt 0.2823 0.6148
|
||||
vt 0.2823 0.3590
|
||||
vt 0.3584 0.7177
|
||||
vt 0.3584 0.8968
|
||||
vt 0.8968 0.6148
|
||||
vt 0.8968 0.8706
|
||||
vt 0.7944 0.8706
|
||||
vt 0.7944 0.6148
|
||||
vt 0.5125 0.6142
|
||||
vt 0.5125 0.3584
|
||||
vt 0.6659 0.3584
|
||||
vt 0.6659 0.6142
|
||||
vt 0.4613 0.6154
|
||||
vt 0.4613 0.8712
|
||||
vt 0.3590 0.8712
|
||||
vt 0.3590 0.6154
|
||||
vt 0.6659 0.0003
|
||||
vt 0.6659 0.2561
|
||||
vt 0.5125 0.2561
|
||||
vt 0.5125 0.0003
|
||||
vt 0.5125 0.8712
|
||||
vt 0.6659 0.8712
|
||||
vt 0.6659 0.9735
|
||||
vt 0.5125 0.9735
|
||||
vt 0.7689 0.2567
|
||||
vt 0.9479 0.2567
|
||||
vt 0.9479 0.3590
|
||||
vt 0.7689 0.3590
|
||||
vt 0.1026 0.7171
|
||||
vt 0.1026 0.4613
|
||||
vt 0.2817 0.4613
|
||||
vt 0.2817 0.7171
|
||||
vt 0.9997 0.6148
|
||||
vt 0.9997 0.8706
|
||||
vt 0.8974 0.8706
|
||||
vt 0.8974 0.6148
|
||||
vt 0.6148 0.6148
|
||||
vt 0.6148 0.8706
|
||||
vt 0.5125 0.8706
|
||||
vt 0.5125 0.6148
|
||||
vt 0.0003 0.4613
|
||||
vt 0.0003 0.3590
|
||||
vt 0.1026 0.3590
|
||||
vt 0.0003 0.0003
|
||||
vt 0.2561 0.0003
|
||||
vt 0.2561 0.1026
|
||||
vt 0.0003 0.1026
|
||||
vt 0.3584 0.3584
|
||||
vt 0.3584 0.1026
|
||||
vt 0.5119 0.1026
|
||||
vt 0.5119 0.3584
|
||||
vt 0.7689 0.0003
|
||||
vt 0.7689 0.2561
|
||||
vt 0.6666 0.2561
|
||||
vt 0.6666 0.0003
|
||||
vt 0.7689 0.3596
|
||||
vt 0.9223 0.3596
|
||||
vt 0.9223 0.4619
|
||||
vt 0.7689 0.4619
|
||||
vt 0.3584 0.0003
|
||||
vt 0.2817 0.3590
|
||||
vt 0.7938 0.6148
|
||||
vt 0.7938 0.8706
|
||||
vt 0.6666 0.2567
|
||||
vt 0.6666 0.3590
|
||||
vt 0.5119 0.0003
|
||||
vt 0.6666 0.3596
|
||||
vt 0.6666 0.4619
|
||||
vt 0.9223 0.0003
|
||||
vt 0.9223 0.2561
|
||||
vn -0.0000 0.0000 -1.0000
|
||||
vn 1.0000 0.0000 -0.0000
|
||||
vn 0.0000 0.0000 1.0000
|
||||
vn -1.0000 0.0000 0.0000
|
||||
vn 0.0000 -1.0000 -0.0000
|
||||
vn 0.0000 1.0000 -0.0000
|
||||
g Madison_IC_B_Cube.032_Wood
|
||||
s off
|
||||
f 9/1/1 10/2/1 12/3/1 11/4/1
|
||||
f 11/4/2 12/3/2 16/5/2 15/6/2
|
||||
f 15/6/3 16/5/3 14/7/3 13/8/3
|
||||
f 13/9/4 14/10/4 10/11/4 9/12/4
|
||||
f 11/4/5 15/6/5 13/13/5 9/14/5
|
||||
f 16/5/6 12/3/6 10/15/6 14/16/6
|
||||
f 25/17/4 26/18/4 28/19/4 27/20/4
|
||||
f 27/20/1 28/19/1 32/21/1 31/22/1
|
||||
f 31/22/2 32/21/2 30/23/2 29/24/2
|
||||
f 29/25/3 30/26/3 26/27/3 25/28/3
|
||||
f 27/20/5 31/22/5 29/29/5 25/30/5
|
||||
f 32/21/6 28/19/6 26/31/6 30/32/6
|
||||
g Madison_IC_B_Cube.032_Stone
|
||||
f 6/33/5 2/34/5 4/35/5 8/36/5
|
||||
f 6/37/2 5/38/2 1/39/2 2/40/2
|
||||
f 4/41/4 3/42/4 7/43/4 8/44/4
|
||||
f 1/39/6 5/38/6 7/45/6 3/46/6
|
||||
f 2/47/3 1/48/3 3/49/3 4/50/3
|
||||
f 19/51/2 20/52/2 24/53/2 23/54/2
|
||||
f 23/55/3 24/56/3 22/57/3 21/58/3
|
||||
f 21/59/4 22/60/4 18/61/4 17/62/4
|
||||
f 19/63/5 23/64/5 21/65/5 17/66/5
|
||||
f 24/53/6 20/52/6 18/61/6 22/60/6
|
||||
f 2/67/5 34/68/5 36/69/5 46/70/5
|
||||
f 2/71/1 1/72/1 33/73/1 34/74/1
|
||||
f 38/75/4 37/76/4 3/77/4 4/78/4
|
||||
f 46/79/3 45/80/3 37/81/3 38/82/3
|
||||
f 1/72/6 3/83/6 37/84/6 45/85/6
|
||||
f 39/86/4 40/87/4 22/88/4 21/89/4
|
||||
f 23/90/1 24/91/1 44/92/1 43/93/1
|
||||
f 47/94/3 48/95/3 40/96/3 39/97/3
|
||||
f 23/98/5 43/99/5 41/100/5 47/101/5
|
||||
f 24/91/6 22/88/6 40/87/6 48/102/6
|
||||
f 33/73/6 1/72/6 45/85/6 35/103/6
|
||||
f 36/104/3 35/105/3 45/80/3 46/79/3
|
||||
f 4/106/5 2/67/5 46/70/5 38/107/5
|
||||
f 44/92/6 24/91/6 48/102/6 42/108/6
|
||||
f 21/109/5 23/98/5 47/101/5 39/110/5
|
||||
f 41/111/3 42/112/3 48/95/3 47/94/3
|
255
models/mylandscaping_blockm_ic_t.obj
Normal file
255
models/mylandscaping_blockm_ic_t.obj
Normal file
@ -0,0 +1,255 @@
|
||||
# Blender v2.77 (sub 1) OBJ File: 'Madison_walls.blend'
|
||||
# www.blender.org
|
||||
o Madison_IC_T_Cube.001
|
||||
v -0.050000 0.500000 0.050000
|
||||
v -0.050000 0.000000 0.050000
|
||||
v -0.250000 0.500000 0.050000
|
||||
v -0.250000 0.000000 0.050000
|
||||
v -0.050000 0.500000 -0.400000
|
||||
v -0.050000 0.000000 -0.400000
|
||||
v -0.250000 0.500000 -0.400000
|
||||
v -0.250000 0.000000 -0.400000
|
||||
v -0.510000 -0.500000 -0.500000
|
||||
v -0.510000 0.600000 -0.500000
|
||||
v 0.150000 -0.500000 -0.500000
|
||||
v 0.150000 0.600000 -0.500000
|
||||
v -0.510000 -0.500000 -0.400000
|
||||
v -0.510000 0.600000 -0.400000
|
||||
v 0.150000 -0.500000 -0.400000
|
||||
v 0.150000 0.600000 -0.400000
|
||||
v -0.200000 -0.500000 -0.400000
|
||||
v -0.200000 0.000000 -0.400000
|
||||
v 0.000000 -0.500000 -0.400000
|
||||
v 0.000000 0.000000 -0.400000
|
||||
v -0.200000 -0.500000 0.000000
|
||||
v -0.200000 0.000000 0.000000
|
||||
v 0.000000 -0.500000 0.000000
|
||||
v 0.000000 0.000000 0.000000
|
||||
v 0.400000 -0.500000 0.510000
|
||||
v 0.400000 0.600000 0.510000
|
||||
v 0.400000 -0.500000 -0.150000
|
||||
v 0.400000 0.600000 -0.150000
|
||||
v 0.500000 -0.500000 0.510000
|
||||
v 0.500000 0.600000 0.510000
|
||||
v 0.500000 -0.500000 -0.150000
|
||||
v 0.500000 0.600000 -0.150000
|
||||
v 0.400000 0.500000 0.050000
|
||||
v 0.400000 0.000000 0.050000
|
||||
v 0.400000 0.500000 0.250000
|
||||
v 0.400000 0.000000 0.250000
|
||||
v -0.250000 0.500000 0.250000
|
||||
v -0.250000 0.000000 0.250000
|
||||
v -0.200000 -0.500000 0.200000
|
||||
v -0.200000 0.000000 0.200000
|
||||
v 0.400000 -0.500000 0.200000
|
||||
v 0.400000 0.000000 0.200000
|
||||
v 0.400000 -0.500000 -0.000000
|
||||
v 0.400000 0.000000 -0.000000
|
||||
v -0.050000 0.500000 0.250000
|
||||
v -0.050000 0.000000 0.250000
|
||||
v 0.000000 -0.500000 0.200000
|
||||
v 0.000000 0.000000 0.200000
|
||||
v 0.000000 0.600000 0.510000
|
||||
v 0.000000 0.600000 0.000000
|
||||
v 0.400000 0.600000 0.510000
|
||||
v 0.400000 0.600000 0.000000
|
||||
v -0.510000 0.600000 0.510000
|
||||
v -0.510000 0.600000 0.000000
|
||||
v 0.000000 0.600000 -0.400000
|
||||
v -0.510000 0.600000 -0.400000
|
||||
v 0.000000 0.500000 0.510000
|
||||
v 0.000000 0.500000 0.000000
|
||||
v 0.400000 0.500000 0.000000
|
||||
v 0.400000 0.500000 0.510000
|
||||
v -0.510000 0.500000 0.510000
|
||||
v -0.510000 0.500000 0.000000
|
||||
v 0.000000 0.500000 -0.400000
|
||||
v -0.510000 0.500000 -0.400000
|
||||
vt 0.5156 0.0002
|
||||
vt 0.5156 0.7477
|
||||
vt 0.0671 0.7477
|
||||
vt 0.0671 0.0002
|
||||
vt -0.0009 0.7477
|
||||
vt -0.0009 0.0002
|
||||
vt -0.4494 0.7477
|
||||
vt -0.4494 0.0002
|
||||
vt 0.9999 0.3742
|
||||
vt 0.9999 0.7480
|
||||
vt 0.9659 0.7480
|
||||
vt 0.9659 0.3742
|
||||
vt -0.0009 -0.4483
|
||||
vt 0.0671 -0.4483
|
||||
vt 0.0671 1.1963
|
||||
vt -0.0009 1.1963
|
||||
vt 0.5834 0.0004
|
||||
vt 0.5832 0.7479
|
||||
vt 0.1346 0.7478
|
||||
vt 0.1349 0.0002
|
||||
vt 0.0667 0.7477
|
||||
vt 0.0669 0.0002
|
||||
vt -0.3818 0.7476
|
||||
vt -0.3816 0.0001
|
||||
vt 0.9999 0.0001
|
||||
vt 0.9999 0.3739
|
||||
vt 0.9659 0.3739
|
||||
vt 0.9659 0.0001
|
||||
vt 0.0671 -0.4483
|
||||
vt 0.1351 -0.4483
|
||||
vt 0.1345 1.1963
|
||||
vt 0.0665 1.1963
|
||||
vt 0.5314 0.0002
|
||||
vt 0.8302 0.0003
|
||||
vt 0.8301 0.1331
|
||||
vt 0.5314 0.1330
|
||||
vt 0.6162 0.3439
|
||||
vt 0.6162 0.8908
|
||||
vt 0.1336 0.8908
|
||||
vt 0.1336 0.3439
|
||||
vt 0.8300 0.4650
|
||||
vt 0.5312 0.4649
|
||||
vt 0.8300 0.5978
|
||||
vt 0.5312 0.5977
|
||||
vt 0.9631 0.5982
|
||||
vt 0.9631 0.9301
|
||||
vt 0.8303 0.9301
|
||||
vt 0.8303 0.5982
|
||||
vt 0.7454 0.0490
|
||||
vt 0.7454 0.6913
|
||||
vt 0.2315 0.6913
|
||||
vt 0.2315 0.0490
|
||||
vt 0.8571 0.0002
|
||||
vt 0.8571 0.3569
|
||||
vt 0.7144 0.3569
|
||||
vt 0.7144 0.0002
|
||||
vt 0.8567 0.5000
|
||||
vt 0.8567 0.8567
|
||||
vt 0.5713 0.8567
|
||||
vt 0.5713 0.5000
|
||||
vt 0.4287 0.8571
|
||||
vt 0.7140 0.8571
|
||||
vt 0.7140 0.9998
|
||||
vt 0.4287 0.9998
|
||||
vt 0.7454 0.9483
|
||||
vt 0.2315 0.9483
|
||||
vt 0.3190 0.2578
|
||||
vt 0.6792 0.1909
|
||||
vt 0.7029 0.3504
|
||||
vt 0.3869 0.4007
|
||||
vt 0.7242 0.1430
|
||||
vt 0.7242 0.6899
|
||||
vt 0.2416 0.6899
|
||||
vt 0.2416 0.1430
|
||||
vt 0.2937 0.4366
|
||||
vt 0.2722 0.6254
|
||||
vt 0.1722 0.7124
|
||||
vt 0.1722 0.3693
|
||||
vt 0.3825 0.6743
|
||||
vt 0.3162 0.8079
|
||||
vt 0.3336 0.4440
|
||||
vt 0.3336 0.8007
|
||||
vt 0.1909 0.8007
|
||||
vt 0.1909 0.4440
|
||||
vt 0.3231 0.9353
|
||||
vt 0.3231 0.3085
|
||||
vt 0.8245 0.3085
|
||||
vt 0.8245 0.9353
|
||||
vt 0.4763 0.4440
|
||||
vt 0.4763 0.8007
|
||||
vt 0.1429 0.8571
|
||||
vt 0.4282 0.8571
|
||||
vt 0.4282 0.9998
|
||||
vt 0.1429 0.9998
|
||||
vt 0.0724 0.3085
|
||||
vt 0.0724 0.0578
|
||||
vt 0.3231 0.0578
|
||||
vt 0.6609 0.8914
|
||||
vt 0.6980 0.7382
|
||||
vt 0.8245 0.0578
|
||||
vt 0.0002 0.8571
|
||||
vt 0.0002 0.9998
|
||||
vt 0.7616 0.4440
|
||||
vt 0.7616 0.8007
|
||||
vt 0.4361 0.9779
|
||||
vt 0.4361 0.5590
|
||||
vt 0.9691 0.5590
|
||||
vt 0.9691 0.9779
|
||||
vt 0.4361 0.0250
|
||||
vt 0.9691 0.0250
|
||||
vt 0.0181 0.5590
|
||||
vt 0.0181 0.0250
|
||||
vt 0.6800 0.1926
|
||||
vt 0.8628 0.4348
|
||||
vt 0.6704 0.5657
|
||||
vt 0.4901 0.3360
|
||||
vt 0.4784 0.6602
|
||||
vt 0.2942 0.5469
|
||||
vt 0.1332 0.4146
|
||||
vt 0.3160 0.1926
|
||||
vt 0.3316 0.9779
|
||||
vt 0.3316 0.5590
|
||||
vt 0.1005 0.4559
|
||||
vt 0.2658 0.5867
|
||||
vt 0.4732 0.7086
|
||||
vt 0.4361 0.6638
|
||||
vt 0.0181 0.6638
|
||||
vt 0.6989 0.6167
|
||||
vt 0.8962 0.4839
|
||||
vn -0.0000 0.0000 -1.0000
|
||||
vn 1.0000 0.0000 -0.0000
|
||||
vn 0.0000 0.0000 1.0000
|
||||
vn -1.0000 0.0000 0.0000
|
||||
vn 0.0000 -1.0000 -0.0000
|
||||
vn 0.0000 1.0000 -0.0000
|
||||
g Madison_IC_T_Cube.001_Wood
|
||||
s off
|
||||
f 9/1/1 10/2/1 12/3/1 11/4/1
|
||||
f 11/4/2 12/3/2 16/5/2 15/6/2
|
||||
f 15/6/3 16/5/3 14/7/3 13/8/3
|
||||
f 13/9/4 14/10/4 10/11/4 9/12/4
|
||||
f 11/4/5 15/6/5 13/13/5 9/14/5
|
||||
f 16/5/6 12/3/6 10/15/6 14/16/6
|
||||
f 25/17/4 26/18/4 28/19/4 27/20/4
|
||||
f 27/20/1 28/19/1 32/21/1 31/22/1
|
||||
f 31/22/2 32/21/2 30/23/2 29/24/2
|
||||
f 29/25/3 30/26/3 26/27/3 25/28/3
|
||||
f 27/20/5 31/22/5 29/29/5 25/30/5
|
||||
f 32/21/6 28/19/6 26/31/6 30/32/6
|
||||
g Madison_IC_T_Cube.001_Stone
|
||||
f 6/33/5 2/34/5 4/35/5 8/36/5
|
||||
f 6/37/2 5/38/2 1/39/2 2/40/2
|
||||
f 4/35/4 3/41/4 7/42/4 8/36/4
|
||||
f 1/43/6 5/44/6 7/42/6 3/41/6
|
||||
f 2/45/3 1/46/3 3/47/3 4/48/3
|
||||
f 19/49/2 20/50/2 24/51/2 23/52/2
|
||||
f 23/53/3 24/54/3 22/55/3 21/56/3
|
||||
f 21/57/4 22/58/4 18/59/4 17/60/4
|
||||
f 19/61/5 23/62/5 21/63/5 17/64/5
|
||||
f 24/51/6 20/50/6 18/65/6 22/66/6
|
||||
f 2/67/5 34/68/5 36/69/5 46/70/5
|
||||
f 2/71/1 1/72/1 33/73/1 34/74/1
|
||||
f 38/75/4 37/76/4 3/77/4 4/78/4
|
||||
f 46/70/3 45/79/3 37/76/3 38/75/3
|
||||
f 1/80/6 3/77/6 37/76/6 45/79/6
|
||||
f 39/81/4 40/82/4 22/83/4 21/84/4
|
||||
f 23/85/1 24/86/1 44/87/1 43/88/1
|
||||
f 47/89/3 48/90/3 40/82/3 39/81/3
|
||||
f 23/91/5 43/92/5 41/93/5 47/94/5
|
||||
f 24/86/6 22/95/6 40/96/6 48/97/6
|
||||
f 33/98/6 1/80/6 45/79/6 35/99/6
|
||||
f 36/69/3 35/99/3 45/79/3 46/70/3
|
||||
f 4/78/5 2/67/5 46/70/5 38/75/5
|
||||
f 44/87/6 24/86/6 48/97/6 42/100/6
|
||||
f 21/101/5 23/91/5 47/94/5 39/102/5
|
||||
f 41/103/3 42/104/3 48/90/3 47/89/3
|
||||
f 52/105/6 50/106/6 49/107/6 51/108/6
|
||||
f 49/107/6 50/106/6 54/109/6 53/110/6
|
||||
f 54/109/6 50/106/6 55/111/6 56/112/6
|
||||
f 59/113/5 60/114/5 57/115/5 58/116/5
|
||||
f 57/115/5 61/117/5 62/118/5 58/116/5
|
||||
f 62/118/5 64/119/5 63/120/5 58/116/5
|
||||
f 52/105/1 59/121/1 58/122/1 50/106/1
|
||||
f 56/123/4 64/119/4 62/118/4 54/124/4
|
||||
f 54/124/4 62/118/4 61/117/4 53/125/4
|
||||
f 50/106/2 58/126/2 63/127/2 55/111/2
|
||||
f 53/125/3 61/117/3 57/115/3 49/128/3
|
||||
f 49/128/3 57/115/3 60/114/3 51/129/3
|
116
models/mylandscaping_blockm_m_b.obj
Normal file
116
models/mylandscaping_blockm_m_b.obj
Normal file
@ -0,0 +1,116 @@
|
||||
# Blender v2.77 (sub 1) OBJ File: 'Madison_walls.blend'
|
||||
# www.blender.org
|
||||
o Madison_C_B.001_Cube.021
|
||||
v 0.400000 0.500000 -0.050000
|
||||
v 0.400000 0.000000 -0.050000
|
||||
v 0.400000 0.500000 0.150000
|
||||
v 0.400000 0.000000 0.150000
|
||||
v -0.400000 0.500000 -0.050000
|
||||
v -0.400000 0.000000 -0.050000
|
||||
v -0.400000 0.500000 0.150000
|
||||
v -0.400000 0.000000 0.150000
|
||||
v -0.500000 -0.500000 0.510000
|
||||
v -0.500000 0.500000 0.510000
|
||||
v -0.500000 -0.500000 -0.150000
|
||||
v -0.500000 0.500000 -0.150000
|
||||
v -0.400000 -0.500000 0.510000
|
||||
v -0.400000 0.500000 0.510000
|
||||
v -0.400000 -0.500000 -0.150000
|
||||
v -0.400000 0.500000 -0.150000
|
||||
v -0.400000 -0.500000 0.100000
|
||||
v -0.400000 0.000000 0.100000
|
||||
v -0.400000 -0.500000 -0.100000
|
||||
v -0.400000 0.000000 -0.100000
|
||||
v 0.400000 -0.500000 0.100000
|
||||
v 0.400000 0.000000 0.100000
|
||||
v 0.400000 -0.500000 -0.100000
|
||||
v 0.400000 0.000000 -0.100000
|
||||
v 0.400000 -0.500000 0.510000
|
||||
v 0.400000 0.500000 0.510000
|
||||
v 0.400000 -0.500000 -0.150000
|
||||
v 0.400000 0.500000 -0.150000
|
||||
v 0.500000 -0.500000 0.510000
|
||||
v 0.500000 0.500000 0.510000
|
||||
v 0.500000 -0.500000 -0.150000
|
||||
v 0.500000 0.500000 -0.150000
|
||||
vt 0.5178 0.3213
|
||||
vt 0.5178 1.0010
|
||||
vt 0.0692 1.0010
|
||||
vt 0.0692 0.3213
|
||||
vt 0.0012 1.0010
|
||||
vt 0.0012 0.3213
|
||||
vt -0.4474 1.0010
|
||||
vt -0.4474 0.3213
|
||||
vt 0.9999 0.0001
|
||||
vt 0.9999 0.3400
|
||||
vt 0.9659 0.3400
|
||||
vt 0.9659 0.0001
|
||||
vt 0.0012 -0.1273
|
||||
vt 0.0692 -0.1273
|
||||
vt 0.0692 1.4496
|
||||
vt 0.0012 1.4496
|
||||
vt 0.5853 0.3213
|
||||
vt 0.5853 1.0010
|
||||
vt 0.1367 1.0010
|
||||
vt 0.1367 0.3213
|
||||
vt 0.0687 1.0010
|
||||
vt 0.0687 0.3213
|
||||
vt -0.3799 1.0010
|
||||
vt -0.3799 0.3213
|
||||
vt 0.9999 0.3403
|
||||
vt 0.9999 0.6801
|
||||
vt 0.9659 0.6801
|
||||
vt 0.9659 0.3403
|
||||
vt 0.0687 -0.1273
|
||||
vt 0.1367 -0.1273
|
||||
vt 0.1367 1.4496
|
||||
vt 0.0687 1.4496
|
||||
vt 0.0117 0.7820
|
||||
vt 0.0117 0.2179
|
||||
vt 0.1512 0.2179
|
||||
vt 0.1512 0.7820
|
||||
vt 0.9885 0.7820
|
||||
vt 0.6396 0.7820
|
||||
vt 0.6396 0.2179
|
||||
vt 0.9885 0.2179
|
||||
vt 0.5001 0.2179
|
||||
vt 0.5001 0.7820
|
||||
vt 0.1236 0.9775
|
||||
vt 0.1236 0.6305
|
||||
vt 0.6788 0.6305
|
||||
vt 0.6788 0.9775
|
||||
vt 0.6788 0.1447
|
||||
vt 0.6788 0.4917
|
||||
vt 0.1236 0.4917
|
||||
vt 0.1236 0.1447
|
||||
vt 0.1236 0.0059
|
||||
vt 0.6788 0.0059
|
||||
vn -1.0000 0.0000 0.0000
|
||||
vn 0.0000 0.0000 -1.0000
|
||||
vn 1.0000 0.0000 0.0000
|
||||
vn 0.0000 0.0000 1.0000
|
||||
vn 0.0000 -1.0000 0.0000
|
||||
vn 0.0000 1.0000 0.0000
|
||||
g Madison_C_B.001_Cube.021_Wood
|
||||
s off
|
||||
f 9/1/1 10/2/1 12/3/1 11/4/1
|
||||
f 11/4/2 12/3/2 16/5/2 15/6/2
|
||||
f 15/6/3 16/5/3 14/7/3 13/8/3
|
||||
f 13/9/4 14/10/4 10/11/4 9/12/4
|
||||
f 11/4/5 15/6/5 13/13/5 9/14/5
|
||||
f 16/5/6 12/3/6 10/15/6 14/16/6
|
||||
f 25/17/1 26/18/1 28/19/1 27/20/1
|
||||
f 27/20/2 28/19/2 32/21/2 31/22/2
|
||||
f 31/22/3 32/21/3 30/23/3 29/24/3
|
||||
f 29/25/4 30/26/4 26/27/4 25/28/4
|
||||
f 27/20/5 31/22/5 29/29/5 25/30/5
|
||||
f 32/21/6 28/19/6 26/31/6 30/32/6
|
||||
g Madison_C_B.001_Cube.021_Stone
|
||||
f 6/33/5 2/34/5 4/35/5 8/36/5
|
||||
f 6/37/2 5/38/2 1/39/2 2/40/2
|
||||
f 4/35/4 3/41/4 7/42/4 8/36/4
|
||||
f 1/39/6 5/38/6 7/42/6 3/41/6
|
||||
f 19/43/2 20/44/2 24/45/2 23/46/2
|
||||
f 21/47/4 22/48/4 18/49/4 17/50/4
|
||||
f 19/51/5 23/52/5 21/47/5 17/50/5
|
||||
f 24/45/6 20/44/6 18/49/6 22/48/6
|
138
models/mylandscaping_blockm_m_t.obj
Normal file
138
models/mylandscaping_blockm_m_t.obj
Normal file
@ -0,0 +1,138 @@
|
||||
# Blender v2.77 (sub 1) OBJ File: 'Madison_walls.blend'
|
||||
# www.blender.org
|
||||
o Madison_C_T.002_Cube.019
|
||||
v 0.400000 0.500000 0.050000
|
||||
v 0.400000 -0.000000 0.050000
|
||||
v 0.400000 0.500000 0.250000
|
||||
v 0.400000 -0.000000 0.250000
|
||||
v -0.400000 0.500000 0.050000
|
||||
v -0.400000 -0.000000 0.050000
|
||||
v -0.400000 0.500000 0.250000
|
||||
v -0.400000 -0.000000 0.250000
|
||||
v -0.500000 -0.500000 0.510000
|
||||
v -0.500000 0.600000 0.510000
|
||||
v -0.500000 -0.500000 -0.150000
|
||||
v -0.500000 0.600000 -0.150000
|
||||
v -0.400000 -0.500000 0.510000
|
||||
v -0.400000 0.600000 0.510000
|
||||
v -0.400000 -0.500000 -0.150000
|
||||
v -0.400000 0.600000 -0.150000
|
||||
v -0.400000 -0.500000 0.200000
|
||||
v -0.400000 -0.000000 0.200000
|
||||
v -0.400000 -0.500000 0.000000
|
||||
v -0.400000 -0.000000 0.000000
|
||||
v 0.400000 -0.500000 0.200000
|
||||
v 0.400000 -0.000000 0.200000
|
||||
v 0.400000 -0.500000 0.000000
|
||||
v 0.400000 -0.000000 0.000000
|
||||
v 0.400000 -0.500000 0.510000
|
||||
v 0.400000 0.600000 0.510000
|
||||
v 0.400000 -0.500000 -0.150000
|
||||
v 0.400000 0.600000 -0.150000
|
||||
v 0.500000 -0.500000 0.510000
|
||||
v 0.500000 0.600000 0.510000
|
||||
v 0.500000 -0.500000 -0.150000
|
||||
v 0.500000 0.600000 -0.150000
|
||||
v -0.400000 0.600000 0.510000
|
||||
v -0.400000 0.600000 0.000000
|
||||
v 0.400000 0.600000 0.510000
|
||||
v 0.400000 0.600000 0.000000
|
||||
v -0.400000 0.500000 0.510000
|
||||
v -0.400000 0.500000 0.000000
|
||||
v 0.400000 0.500000 0.510000
|
||||
v 0.400000 0.500000 0.000000
|
||||
vt 0.5150 0.0003
|
||||
vt 0.5150 0.7479
|
||||
vt 0.0664 0.7479
|
||||
vt 0.0664 0.0003
|
||||
vt -0.0016 0.7479
|
||||
vt -0.0016 0.0003
|
||||
vt -0.4502 0.7479
|
||||
vt -0.4502 0.0003
|
||||
vt 0.9999 0.0001
|
||||
vt 0.9999 0.3740
|
||||
vt 0.9659 0.3740
|
||||
vt 0.9659 0.0001
|
||||
vt -0.0016 -0.4483
|
||||
vt 0.0664 -0.4483
|
||||
vt 0.0664 1.1965
|
||||
vt -0.0016 1.1965
|
||||
vt 0.5826 0.0003
|
||||
vt 0.5826 0.7479
|
||||
vt 0.1340 0.7479
|
||||
vt 0.1340 0.0003
|
||||
vt 0.0660 0.7479
|
||||
vt 0.0660 0.0003
|
||||
vt -0.3825 0.7479
|
||||
vt -0.3825 0.0003
|
||||
vt 0.9999 0.3743
|
||||
vt 0.9999 0.7481
|
||||
vt 0.9659 0.7481
|
||||
vt 0.9659 0.3743
|
||||
vt 0.0660 -0.4483
|
||||
vt 0.1340 -0.4483
|
||||
vt 0.1340 1.1965
|
||||
vt 0.0660 1.1965
|
||||
vt 0.0685 0.0395
|
||||
vt 0.5683 0.0395
|
||||
vt 0.5683 0.1645
|
||||
vt 0.0685 0.1645
|
||||
vt 0.0685 0.9141
|
||||
vt 0.0685 0.6017
|
||||
vt 0.5683 0.6017
|
||||
vt 0.5683 0.9141
|
||||
vt 0.5683 0.4768
|
||||
vt 0.0685 0.4768
|
||||
vt 0.3094 0.9265
|
||||
vt 0.3094 0.6142
|
||||
vt 0.8092 0.6142
|
||||
vt 0.8092 0.9265
|
||||
vt 0.8092 0.1769
|
||||
vt 0.8092 0.4892
|
||||
vt 0.3094 0.4892
|
||||
vt 0.3094 0.1769
|
||||
vt 0.3094 0.0520
|
||||
vt 0.8092 0.0520
|
||||
vt 0.6557 0.5000
|
||||
vt 0.0001 0.5000
|
||||
vt 0.0001 0.0820
|
||||
vt 0.6557 0.0820
|
||||
vt 0.6557 0.5820
|
||||
vt 0.6557 0.9999
|
||||
vt 0.0001 0.9999
|
||||
vt 0.0001 0.5820
|
||||
vt 0.0001 0.0001
|
||||
vt 0.6557 0.0001
|
||||
vn -1.0000 0.0000 0.0000
|
||||
vn 0.0000 0.0000 -1.0000
|
||||
vn 1.0000 0.0000 0.0000
|
||||
vn 0.0000 0.0000 1.0000
|
||||
vn 0.0000 -1.0000 0.0000
|
||||
vn 0.0000 1.0000 0.0000
|
||||
g Madison_C_T.002_Cube.019_Wood
|
||||
s off
|
||||
f 9/1/1 10/2/1 12/3/1 11/4/1
|
||||
f 11/4/2 12/3/2 16/5/2 15/6/2
|
||||
f 15/6/3 16/5/3 14/7/3 13/8/3
|
||||
f 13/9/4 14/10/4 10/11/4 9/12/4
|
||||
f 11/4/5 15/6/5 13/13/5 9/14/5
|
||||
f 16/5/6 12/3/6 10/15/6 14/16/6
|
||||
f 25/17/1 26/18/1 28/19/1 27/20/1
|
||||
f 27/20/2 28/19/2 32/21/2 31/22/2
|
||||
f 31/22/3 32/21/3 30/23/3 29/24/3
|
||||
f 29/25/4 30/26/4 26/27/4 25/28/4
|
||||
f 27/20/5 31/22/5 29/29/5 25/30/5
|
||||
f 32/21/6 28/19/6 26/31/6 30/32/6
|
||||
g Madison_C_T.002_Cube.019_Stone
|
||||
f 6/33/5 2/34/5 4/35/5 8/36/5
|
||||
f 6/37/2 5/38/2 1/39/2 2/40/2
|
||||
f 4/35/4 3/41/4 7/42/4 8/36/4
|
||||
f 1/39/6 5/38/6 7/42/6 3/41/6
|
||||
f 19/43/2 20/44/2 24/45/2 23/46/2
|
||||
f 21/47/4 22/48/4 18/49/4 17/50/4
|
||||
f 19/51/5 23/52/5 21/47/5 17/50/5
|
||||
f 24/45/6 20/44/6 18/49/6 22/48/6
|
||||
f 36/53/6 34/54/6 33/55/6 35/56/6
|
||||
f 40/57/5 39/58/5 37/59/5 38/60/5
|
||||
f 33/55/4 37/61/4 39/62/4 35/56/4
|
||||
f 36/53/2 40/57/2 38/60/2 34/54/2
|
183
models/mylandscaping_blockm_oc_b.obj
Normal file
183
models/mylandscaping_blockm_oc_b.obj
Normal file
@ -0,0 +1,183 @@
|
||||
# Blender v2.77 (sub 1) OBJ File: 'Madison_walls.blend'
|
||||
# www.blender.org
|
||||
o Madison_OC_B_Cube.030
|
||||
v 0.050000 0.500000 -0.050000
|
||||
v 0.050000 0.000000 -0.050000
|
||||
v -0.400000 0.500000 -0.050000
|
||||
v -0.400000 0.000000 -0.050000
|
||||
v -0.400000 0.000000 0.150000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v -0.500000 0.500000 0.500000
|
||||
v -0.500000 -0.500000 -0.150000
|
||||
v -0.500000 0.500000 -0.150000
|
||||
v -0.400000 -0.500000 0.500000
|
||||
v -0.400000 0.500000 0.150000
|
||||
v -0.400000 -0.500000 -0.150000
|
||||
v -0.400000 0.500000 -0.150000
|
||||
v -0.400000 -0.500000 0.100000
|
||||
v -0.400000 0.000000 0.100000
|
||||
v -0.400000 -0.500000 -0.100000
|
||||
v -0.400000 0.000000 -0.100000
|
||||
v -0.150000 0.500000 0.400000
|
||||
v 0.100000 -0.500000 -0.100000
|
||||
v 0.100000 0.000000 -0.100000
|
||||
v -0.400000 -0.500000 0.400000
|
||||
v -0.400000 0.500000 0.500000
|
||||
v 0.150000 -0.500000 0.400000
|
||||
v 0.150000 0.500000 0.400000
|
||||
v -0.400000 -0.500000 0.500000
|
||||
v -0.400000 0.500000 0.500000
|
||||
v 0.150000 -0.500000 0.500000
|
||||
v 0.150000 0.500000 0.500000
|
||||
v 0.050000 0.500000 0.400000
|
||||
v 0.050000 0.000000 0.400000
|
||||
v -0.400000 0.500000 0.400000
|
||||
v -0.150000 0.000000 0.400000
|
||||
v 0.050000 0.500000 0.150000
|
||||
v 0.050000 0.000000 0.150000
|
||||
v -0.150000 0.500000 0.150000
|
||||
v -0.150000 0.000000 0.150000
|
||||
v -0.100000 -0.500000 0.100000
|
||||
v -0.100000 0.000000 0.100000
|
||||
v 0.100000 -0.500000 0.100000
|
||||
v 0.100000 0.000000 0.100000
|
||||
v -0.100000 -0.500000 0.400000
|
||||
v -0.100000 0.000000 0.400000
|
||||
v 0.100000 -0.500000 0.400000
|
||||
v 0.100000 0.000000 0.400000
|
||||
v -0.100000 0.000000 -0.100000
|
||||
v -0.100000 -0.500000 -0.100000
|
||||
v -0.150000 0.500000 -0.050000
|
||||
v -0.150000 0.000000 -0.050000
|
||||
vt 0.5167 0.3202
|
||||
vt 0.5167 0.9999
|
||||
vt 0.0681 0.9999
|
||||
vt 0.0681 0.3202
|
||||
vt 0.0001 0.9999
|
||||
vt 0.0001 0.3202
|
||||
vt -0.4485 0.9999
|
||||
vt -0.4485 0.3202
|
||||
vt 0.9999 0.0001
|
||||
vt 0.9999 0.3400
|
||||
vt 0.9659 0.3400
|
||||
vt 0.9659 0.0001
|
||||
vt 0.0001 -0.1284
|
||||
vt 0.0681 -0.1284
|
||||
vt 0.0681 1.4485
|
||||
vt 0.0001 1.4485
|
||||
vt 0.5846 0.3202
|
||||
vt 0.5846 0.9999
|
||||
vt 0.1360 0.9999
|
||||
vt 0.1360 0.3202
|
||||
vt 0.0680 0.9999
|
||||
vt 0.0680 0.3202
|
||||
vt -0.3805 0.9999
|
||||
vt -0.3805 0.3202
|
||||
vt 0.9999 0.3403
|
||||
vt 0.9999 0.6801
|
||||
vt 0.9659 0.6801
|
||||
vt 0.9659 0.3403
|
||||
vt 0.0680 -0.1284
|
||||
vt 0.1360 -0.1284
|
||||
vt 0.1360 1.4485
|
||||
vt 0.0680 1.4485
|
||||
vt 0.4264 0.0865
|
||||
vt 0.6012 0.0000
|
||||
vt 0.7047 0.1578
|
||||
vt 0.5059 0.3178
|
||||
vt 0.7083 0.1184
|
||||
vt 0.7083 0.6554
|
||||
vt 0.4935 0.6554
|
||||
vt 0.4935 0.1184
|
||||
vt 0.4321 0.9116
|
||||
vt 0.1477 0.8908
|
||||
vt 0.1914 0.3503
|
||||
vt 0.9767 0.6554
|
||||
vt 0.9767 0.8702
|
||||
vt 0.7083 0.8702
|
||||
vt 0.2787 0.6554
|
||||
vt 0.2787 0.1184
|
||||
vt 0.1256 0.3136
|
||||
vt 0.6138 0.3136
|
||||
vt 0.6138 0.5088
|
||||
vt 0.1256 0.5088
|
||||
vt 0.6138 0.7041
|
||||
vt 0.1256 0.7041
|
||||
vt 0.4712 0.8391
|
||||
vt 0.4712 0.1049
|
||||
vt 0.9117 0.1049
|
||||
vt 0.9117 0.8391
|
||||
vt 0.5881 0.3128
|
||||
vt 0.7610 0.4857
|
||||
vt 0.5881 0.6585
|
||||
vt 0.4152 0.4857
|
||||
vt 0.6138 0.0207
|
||||
vt 0.8091 0.0207
|
||||
vt 0.8091 0.3136
|
||||
vt 0.9035 0.3092
|
||||
vt 0.7937 0.4614
|
||||
vt 0.0102 0.6554
|
||||
vt 0.0102 0.1184
|
||||
vt 0.3288 0.0535
|
||||
vt 0.1559 0.2264
|
||||
vt 0.6647 0.9532
|
||||
vt 0.2787 0.8702
|
||||
vt 0.0102 0.8702
|
||||
vt 0.8091 0.5088
|
||||
vt 0.6138 0.9970
|
||||
vt 0.1256 0.9970
|
||||
vt 0.0306 0.8391
|
||||
vt 0.0306 0.1049
|
||||
vt 0.3288 0.9178
|
||||
vt 0.1559 0.7450
|
||||
vt 0.8091 0.7041
|
||||
vt 0.8091 0.9970
|
||||
vt 0.4935 0.8702
|
||||
vt 0.9767 0.1184
|
||||
vt 0.1477 0.1384
|
||||
vt 0.1256 0.0207
|
||||
vn -1.0000 0.0000 0.0000
|
||||
vn 0.0000 0.0000 -1.0000
|
||||
vn 1.0000 0.0000 0.0000
|
||||
vn 0.0000 0.0000 1.0000
|
||||
vn 0.0000 -1.0000 0.0000
|
||||
vn 0.0000 1.0000 0.0000
|
||||
g Madison_OC_B_Cube.030_Wood
|
||||
s off
|
||||
f 6/1/1 7/2/1 9/3/1 8/4/1
|
||||
f 8/4/2 9/3/2 13/5/2 12/6/2
|
||||
f 12/6/3 13/5/3 22/7/3 10/8/3
|
||||
f 10/9/4 22/10/4 7/11/4 6/12/4
|
||||
f 8/4/5 12/6/5 10/13/5 6/14/5
|
||||
f 13/5/6 9/3/6 7/15/6 22/16/6
|
||||
f 21/17/2 31/18/2 24/19/2 23/20/2
|
||||
f 23/20/3 24/19/3 28/21/3 27/22/3
|
||||
f 27/22/4 28/21/4 26/23/4 25/24/4
|
||||
f 25/25/1 26/26/1 31/27/1 21/28/1
|
||||
f 23/20/5 27/22/5 25/29/5 21/30/5
|
||||
f 28/21/6 24/19/6 31/31/6 26/32/6
|
||||
g Madison_OC_B_Cube.030_Stone
|
||||
f 48/33/5 2/34/5 34/35/5 36/36/5
|
||||
f 48/37/2 47/38/2 1/39/2 2/40/2
|
||||
f 36/36/4 35/41/4 11/42/4 5/43/4
|
||||
f 47/38/6 3/44/6 11/45/6 35/46/6
|
||||
f 2/40/3 1/39/3 33/47/3 34/48/3
|
||||
f 46/49/2 45/50/2 20/51/2 19/52/2
|
||||
f 19/52/3 20/51/3 40/53/3 39/54/3
|
||||
f 37/55/4 38/56/4 15/57/4 14/58/4
|
||||
f 46/59/5 19/60/5 39/61/5 37/62/5
|
||||
f 45/50/6 17/63/6 15/64/6 38/65/6
|
||||
f 34/35/5 30/66/5 32/67/5 36/36/5
|
||||
f 34/48/3 33/47/3 29/68/3 30/69/3
|
||||
f 16/70/5 46/59/5 37/62/5 14/71/5
|
||||
f 32/67/1 18/72/1 35/41/1 36/36/1
|
||||
f 29/68/6 33/47/6 35/73/6 18/74/6
|
||||
f 20/51/6 45/50/6 38/65/6 40/75/6
|
||||
f 39/54/3 40/53/3 44/76/3 43/77/3
|
||||
f 41/78/1 42/79/1 38/56/1 37/55/1
|
||||
f 39/61/5 43/80/5 41/81/5 37/62/5
|
||||
f 44/76/6 40/53/6 38/82/6 42/83/6
|
||||
f 1/39/6 47/38/6 35/46/6 33/84/6
|
||||
f 4/85/2 3/44/2 47/38/2 48/37/2
|
||||
f 4/86/5 48/33/5 36/36/5 5/43/5
|
||||
f 16/87/2 17/63/2 45/50/2 46/49/2
|
179
models/mylandscaping_blockm_oc_t.obj
Normal file
179
models/mylandscaping_blockm_oc_t.obj
Normal file
@ -0,0 +1,179 @@
|
||||
# Blender v2.77 (sub 1) OBJ File: 'Madison_walls.blend'
|
||||
# www.blender.org
|
||||
o Madison_OC_T_Cube.031
|
||||
v -0.050000 0.500000 0.050000
|
||||
v -0.050000 0.000000 0.050000
|
||||
v -0.400000 0.500000 0.050000
|
||||
v -0.400000 0.000000 0.050000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v -0.500000 0.600000 0.500000
|
||||
v -0.500000 -0.500000 -0.150000
|
||||
v -0.500000 0.600000 -0.150000
|
||||
v -0.400000 -0.500000 0.500000
|
||||
v -0.400000 -0.500000 -0.150000
|
||||
v -0.400000 0.600000 -0.150000
|
||||
v -0.400000 -0.500000 0.100000
|
||||
v -0.400000 0.000000 0.100000
|
||||
v -0.400000 -0.500000 0.000000
|
||||
v -0.400000 0.000000 0.000000
|
||||
v 0.000000 -0.500000 0.000000
|
||||
v 0.000000 0.000000 0.000000
|
||||
v -0.400000 -0.500000 0.400000
|
||||
v -0.400000 0.600000 0.500000
|
||||
v 0.150000 -0.500000 0.400000
|
||||
v 0.150000 0.600000 0.400000
|
||||
v -0.400000 -0.500000 0.500000
|
||||
v -0.400000 0.600000 0.500000
|
||||
v 0.150000 -0.500000 0.500000
|
||||
v 0.150000 0.600000 0.500000
|
||||
v -0.050000 0.500000 0.400000
|
||||
v -0.050000 0.000000 0.400000
|
||||
v -0.400000 0.600000 0.400000
|
||||
v -0.100000 -0.500000 0.100000
|
||||
v -0.100000 0.000000 0.100000
|
||||
v -0.000000 -0.500000 0.100000
|
||||
v -0.000000 0.000000 0.100000
|
||||
v -0.100000 -0.500000 0.400000
|
||||
v -0.100000 0.000000 0.400000
|
||||
v -0.000000 -0.500000 0.400000
|
||||
v -0.000000 0.000000 0.400000
|
||||
v -0.100000 0.000000 0.000000
|
||||
v -0.100000 -0.500000 0.000000
|
||||
v 0.100000 0.600000 -0.100000
|
||||
v 0.100000 0.600000 0.400000
|
||||
v -0.400000 0.600000 0.400000
|
||||
v -0.400000 0.600000 -0.100000
|
||||
v -0.400000 0.500000 -0.100000
|
||||
v 0.100000 0.500000 -0.100000
|
||||
v -0.400000 0.500000 0.400000
|
||||
v 0.100000 0.500000 0.400000
|
||||
v -0.400000 0.000000 0.100000
|
||||
v -0.400000 -0.500000 0.000000
|
||||
v -0.400000 0.000000 0.000000
|
||||
v -0.100000 0.000000 0.400000
|
||||
v -0.000000 -0.500000 0.400000
|
||||
v -0.000000 0.000000 0.400000
|
||||
vt 0.5169 0.0002
|
||||
vt 0.5169 0.7479
|
||||
vt 0.0683 0.7479
|
||||
vt 0.0683 0.0002
|
||||
vt 0.0003 0.7479
|
||||
vt 0.0003 0.0002
|
||||
vt -0.4482 0.7479
|
||||
vt -0.4482 0.0002
|
||||
vt 0.9999 0.3743
|
||||
vt 0.9999 0.7481
|
||||
vt 0.9659 0.7481
|
||||
vt 0.9659 0.3743
|
||||
vt 0.0003 -0.4483
|
||||
vt 0.0683 -0.4483
|
||||
vt 0.0683 1.1964
|
||||
vt 0.0003 1.1964
|
||||
vt 0.5847 0.0002
|
||||
vt 0.5847 0.7479
|
||||
vt 0.1362 0.7479
|
||||
vt 0.1362 0.0002
|
||||
vt 0.0682 0.7479
|
||||
vt 0.0682 0.0002
|
||||
vt -0.3804 0.7479
|
||||
vt -0.3804 0.0002
|
||||
vt 0.9999 0.0001
|
||||
vt 0.9999 0.3740
|
||||
vt 0.9659 0.3740
|
||||
vt 0.9659 0.0001
|
||||
vt 0.0682 -0.4483
|
||||
vt 0.1362 -0.4483
|
||||
vt 0.1362 1.1964
|
||||
vt 0.0682 1.1964
|
||||
vt 0.4029 0.4956
|
||||
vt 0.9466 0.4956
|
||||
vt 0.9466 0.9913
|
||||
vt 0.4029 0.9913
|
||||
vt 0.6563 0.6411
|
||||
vt 0.1387 0.6411
|
||||
vt 0.1387 0.5376
|
||||
vt 0.6563 0.5376
|
||||
vt 0.1387 0.4341
|
||||
vt 0.6563 0.4341
|
||||
vt 0.3872 0.0333
|
||||
vt 0.3872 0.4497
|
||||
vt 0.1374 0.4497
|
||||
vt 0.1374 0.0333
|
||||
vt 0.6513 0.1562
|
||||
vt 0.7603 0.1562
|
||||
vt 0.7603 0.2652
|
||||
vt 0.6513 0.2652
|
||||
vt 0.1387 0.9517
|
||||
vt 0.0351 0.9517
|
||||
vt 0.0351 0.6411
|
||||
vt 0.3244 0.1562
|
||||
vt 0.3244 0.2652
|
||||
vt 0.0351 0.5376
|
||||
vt 0.1387 0.1235
|
||||
vt 0.6563 0.1235
|
||||
vt 0.6371 0.0333
|
||||
vt 0.6371 0.4497
|
||||
vt 0.7603 0.5921
|
||||
vt 0.6513 0.5921
|
||||
vt 0.0351 0.4341
|
||||
vt 0.0351 0.1235
|
||||
vt 0.6563 0.9517
|
||||
vt 0.2065 0.7923
|
||||
vt 0.2065 0.0592
|
||||
vt 0.9257 0.0592
|
||||
vt 0.9257 0.7923
|
||||
vt 0.9534 0.1479
|
||||
vt 0.9534 0.8657
|
||||
vt 0.2355 0.8657
|
||||
vt 0.2355 0.1479
|
||||
vt 0.9257 0.9389
|
||||
vt 0.2065 0.9389
|
||||
vt 0.0627 0.7923
|
||||
vt 0.0627 0.0592
|
||||
vt 0.4029 0.0000
|
||||
vt 0.9466 0.0000
|
||||
vn -1.0000 0.0000 0.0000
|
||||
vn 0.0000 0.0000 -1.0000
|
||||
vn 1.0000 0.0000 0.0000
|
||||
vn 0.0000 0.0000 1.0000
|
||||
vn 0.0000 -1.0000 0.0000
|
||||
vn 0.0000 1.0000 0.0000
|
||||
g Madison_OC_T_Cube.031_Wood
|
||||
s off
|
||||
f 5/1/1 6/2/1 8/3/1 7/4/1
|
||||
f 7/4/2 8/3/2 11/5/2 10/6/2
|
||||
f 10/6/3 11/5/3 19/7/3 9/8/3
|
||||
f 9/9/4 19/10/4 6/11/4 5/12/4
|
||||
f 7/4/5 10/6/5 9/13/5 5/14/5
|
||||
f 11/5/6 8/3/6 6/15/6 19/16/6
|
||||
f 18/17/2 28/18/2 21/19/2 20/20/2
|
||||
f 20/20/3 21/19/3 25/21/3 24/22/3
|
||||
f 24/22/4 25/21/4 23/23/4 22/24/4
|
||||
f 22/25/1 23/26/1 28/27/1 18/28/1
|
||||
f 20/20/5 24/22/5 22/29/5 18/30/5
|
||||
f 25/21/6 21/19/6 28/31/6 23/32/6
|
||||
g Madison_OC_T_Cube.031_Stone
|
||||
f 2/33/3 1/34/3 26/35/3 27/36/3
|
||||
f 38/37/2 37/38/2 17/39/2 16/40/2
|
||||
f 16/40/3 17/39/3 32/41/3 31/42/3
|
||||
f 29/43/4 30/44/4 13/45/4 12/46/4
|
||||
f 38/47/5 16/48/5 31/49/5 29/50/5
|
||||
f 37/38/6 15/51/6 13/52/6 30/53/6
|
||||
f 14/54/5 38/47/5 29/50/5 12/55/5
|
||||
f 17/39/6 37/38/6 30/53/6 32/56/6
|
||||
f 31/42/3 32/41/3 36/57/3 35/58/3
|
||||
f 33/59/1 34/60/1 30/44/1 29/43/1
|
||||
f 31/49/5 35/61/5 33/62/5 29/50/5
|
||||
f 36/57/6 32/41/6 30/63/6 34/64/6
|
||||
f 14/65/2 15/51/2 37/38/2 38/37/2
|
||||
f 39/66/6 42/67/6 41/68/6 40/69/6
|
||||
f 44/70/5 46/71/5 45/72/5 43/73/5
|
||||
f 40/69/3 46/74/3 44/75/3 39/66/3
|
||||
f 39/66/2 44/76/2 43/77/2 42/67/2
|
||||
f 4/78/2 3/79/2 1/34/2 2/33/2
|
||||
l 51 35
|
||||
l 36 52
|
||||
l 47 13
|
||||
l 15 49
|
||||
l 14 48
|
||||
l 34 50
|
@ -2,13 +2,14 @@ I got sick of overwriting the wrong files, here's the breakdown of the file name
|
||||
|
||||
mylandscaping = name of mod, duh
|
||||
*_block1 = block style
|
||||
*_*_L = L, R, M, C, F [Left, Right, Middle, Corner, Full]
|
||||
*_*_L = L, R, M, C, F [Left, Right, Middle, OCorner, ICorner, Full]
|
||||
*_*_*_T = T, B [Top, Bottom]
|
||||
|
||||
Left block is leftmost in a wall
|
||||
Right block is rightmost in a wall
|
||||
Middle block is two full blocks, offset on top
|
||||
Corner block is inside corner
|
||||
OCorner block is outside corner
|
||||
ICorner block is inside corner
|
||||
Full block is full on bottom, and two halves on top, only takes up one node. [not used much]
|
||||
|
||||
Columns don't follow same scheme, rather they use this.
|
||||
|
@ -9,13 +9,10 @@ This is a Minetest mod that adds retaining walls and column nodes.
|
||||
- https://forum.minetest.net/viewtopic.php?f=11&t=12094
|
||||
|
||||
## Licensing
|
||||
- WTFPL
|
||||
- Code: MIT
|
||||
- Graphics/Models: CC-by-SA 4.0 Nathan Salapat
|
||||
|
||||
## Dependencies
|
||||
- default
|
||||
- bucket
|
||||
- myconcrete?
|
||||
|
||||
#
|
||||
Please Note:
|
||||
If you don't want all the blocks showing in creative inventory modify the walls.lua file and change the first line to say visible = 0, (this is the default setting.)
|
||||
|
13
recipes.lua
13
recipes.lua
@ -1,5 +1,5 @@
|
||||
minetest.register_craft({
|
||||
output = 'mylandscaping:machine 1',
|
||||
output = 'mylandscaping:machine',
|
||||
recipe = {
|
||||
{'default:shovel_steel', 'bucket:bucket_water', ''},
|
||||
{'default:steel_ingot', 'mylandscaping:concrete_bag', 'default:steel_ingot'},
|
||||
@ -8,7 +8,7 @@ minetest.register_craft({
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'mylandscaping:mixer 1',
|
||||
output = 'mylandscaping:mixer',
|
||||
recipe = {
|
||||
{'default:pick_steel', 'default:paper', 'default:chest'},
|
||||
{'group:stick', 'default:paper', 'group:stick'},
|
||||
@ -16,6 +16,15 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'mylandscaping:concrete',
|
||||
recipe = {
|
||||
{'', '', ''},
|
||||
{'', '', ''},
|
||||
{'', '', ''},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craftitem('mylandscaping:concrete_bag', {
|
||||
description = 'Bag of Concrete Mix',
|
||||
inventory_image = 'mylandscaping_cement_bag.png',
|
||||
|
1
settingtypes.txt
Normal file
1
settingtypes.txt
Normal file
@ -0,0 +1 @@
|
||||
mylandscaping.creative (Display retaining wall blocks in creative inventory?) bool false
|
139
stones.lua
139
stones.lua
@ -1,32 +1,32 @@
|
||||
local stone_cbox = {
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
||||
}
|
||||
}
|
||||
local sstone_cbox = {
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.4375, 0.5},
|
||||
}
|
||||
}
|
||||
|
||||
local sq_cbox = {
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {
|
||||
{-0.4375, -0.5, -0.4375, 0.4375, -0.3125, 0.4375},
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
||||
}
|
||||
}
|
||||
local s_sq_cbox = {
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {
|
||||
{-0.4375, -0.5, -0.4375, 0.4375, 0.5, 0.4375},
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.4375, 0.5},
|
||||
}
|
||||
}
|
||||
local smsq_cbox = {
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {
|
||||
{-0.4375, -0.5, -0.4375, -0.0625, -0.3125, -0.0625},
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
||||
@ -36,7 +36,7 @@ local smsq_cbox = {
|
||||
}
|
||||
}
|
||||
local s_smsq_cbox = {
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {
|
||||
{-0.4375, -0.5, -0.4375, -0.0625, 0.5, -0.0625},
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.4375, 0.5},
|
||||
@ -46,7 +46,7 @@ local s_smsq_cbox = {
|
||||
}
|
||||
}
|
||||
local xsmsq_cbox = {
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {
|
||||
{-0.4375, -0.5, -0.4375, -0.1875, -0.3125, -0.1875},
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
||||
@ -61,7 +61,7 @@ local xsmsq_cbox = {
|
||||
}
|
||||
}
|
||||
local s_xsmsq_cbox = {
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {
|
||||
{-0.4375, -0.5, -0.4375, -0.1875, 0.5, -0.1875},
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.4375, 0.5},
|
||||
@ -76,7 +76,7 @@ local s_xsmsq_cbox = {
|
||||
}
|
||||
}
|
||||
local paver_cbox = {
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {
|
||||
{-0.5, -0.5, 0.3125, -0.3125, -0.3125, 0.5},
|
||||
{-0.25, -0.5, 0.3125, -0.0625, -0.3125, 0.5},
|
||||
@ -92,7 +92,7 @@ local paver_cbox = {
|
||||
}
|
||||
}
|
||||
local spaver_cbox = {
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {
|
||||
{-0.5, -0.5, 0.3125, -0.3125, 0.5, 0.5},
|
||||
{-0.25, -0.5, 0.3125, -0.0625, 0.5, 0.5},
|
||||
@ -108,7 +108,7 @@ local spaver_cbox = {
|
||||
}
|
||||
}
|
||||
local ashlar_cbox = {
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {
|
||||
{-0.5, -0.5, 0.375, -0.375, -0.3125, 0.5},
|
||||
{-0.5, -0.5, 0.1875, -0.375, -0.3125, 0.3125},
|
||||
@ -133,7 +133,7 @@ local ashlar_cbox = {
|
||||
}
|
||||
}
|
||||
local sashlar_cbox = {
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {
|
||||
{-0.5, -0.5, 0.375, -0.375, 0.5, 0.5},
|
||||
{-0.5, -0.5, 0.1875, -0.375, 0.5, 0.3125},
|
||||
@ -158,7 +158,7 @@ local sashlar_cbox = {
|
||||
}
|
||||
}
|
||||
local flag_cbox = {
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {
|
||||
{-0.5, -0.5, 0.0625, -0.0625, -0.3125, 0.5},
|
||||
{-0.5, -0.5, -0.1875, -0.25, -0.3125, 0},
|
||||
@ -172,7 +172,7 @@ local flag_cbox = {
|
||||
}
|
||||
}
|
||||
local sflag_cbox = {
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {
|
||||
{-0.5, -0.5, 0.0625, -0.0625, 0.5, 0.5},
|
||||
{-0.5, -0.5, -0.1875, -0.25, 0.5, 0},
|
||||
@ -186,7 +186,7 @@ local sflag_cbox = {
|
||||
}
|
||||
}
|
||||
local pin_cbox = {
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.125, -0.25, -0.3125, 0.5},
|
||||
{-0.5, -0.5, -0.4375, 0.125, -0.3125, -0.1875},
|
||||
@ -197,7 +197,7 @@ local pin_cbox = {
|
||||
}
|
||||
}
|
||||
local spin_cbox = {
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.125, -0.25, 0.5, 0.5},
|
||||
{-0.5, -0.5, -0.4375, 0.125, 0.5, -0.1875},
|
||||
@ -208,16 +208,14 @@ local spin_cbox = {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
local stone_types = { --style, desc, img1, img2
|
||||
{"square", "Square", "concrete", "square",sq_cbox,s_sq_cbox},
|
||||
{"square_sm", "Small Square", "concrete", "square_sm",smsq_cbox,s_smsq_cbox},
|
||||
{"square_xsm", "Extra Small Square", "concrete", "square_xsm",xsmsq_cbox,s_xsmsq_cbox},
|
||||
{"pavers", "Paver", "concrete", "pavers",paver_cbox,spaver_cbox},
|
||||
{"ashlar", "Ashlar", "concrete", "ashlar",ashlar_cbox,sashlar_cbox},
|
||||
{"flagstone", "Flagstone", "concrete", "flagstone",flag_cbox,sflag_cbox},
|
||||
{"pinwheel", "Pinwheel", "concrete", "pinwheel",pin_cbox,spin_cbox},
|
||||
{'square', 'Square', 'concrete', 'square',sq_cbox,s_sq_cbox},
|
||||
{'square_sm', 'Small Square', 'concrete', 'square_sm',smsq_cbox,s_smsq_cbox},
|
||||
{'square_xsm', 'Extra Small Square', 'concrete', 'square_xsm',xsmsq_cbox,s_xsmsq_cbox},
|
||||
{'pavers', 'Paver', 'concrete', 'pavers',paver_cbox,spaver_cbox},
|
||||
{'ashlar', 'Ashlar', 'concrete', 'ashlar',ashlar_cbox,sashlar_cbox},
|
||||
{'flagstone', 'Flagstone', 'concrete', 'flagstone',flag_cbox,sflag_cbox},
|
||||
{'pinwheel', 'Pinwheel', 'concrete', 'pinwheel',pin_cbox,spin_cbox},
|
||||
}
|
||||
for i in ipairs (stone_types) do
|
||||
local style = stone_types[i][1]
|
||||
@ -226,82 +224,79 @@ for i in ipairs (stone_types) do
|
||||
local img2 = stone_types[i][4]
|
||||
local cbox = stone_types[i][5]
|
||||
local scbox = stone_types[i][6]
|
||||
|
||||
local color_tab = {
|
||||
{"black", "Black", "^[colorize:black:150"},
|
||||
{"blue", "Blue", "^[colorize:#0404B4:100"},
|
||||
{"brown", "Brown", "^[colorize:#190B07:100"},
|
||||
{"cyan", "Cyan", "^[colorize:cyan:100"},
|
||||
{"dark_green", "Dark Green", "^[colorize:#071907:150"},
|
||||
{"dark_grey", "Dark Grey", "^[colorize:black:150"},
|
||||
{"green", "Green", "^[colorize:green:100"},
|
||||
{"grey", "Grey", "^[colorize:black:100"},
|
||||
{"magenta", "Magenta", "^[colorize:magenta:100"},
|
||||
{"orange", "Orange", "^[colorize:orange:100"},
|
||||
{"pink", "Pink", "^[colorize:#FE2E9A:100"},
|
||||
{"red", "Red", "^[colorize:#B40404:100"},
|
||||
{"violet", "Violet", "^[colorize:#2F0B3A:100"},
|
||||
{"white", "White", "^[colorize:white:100"},
|
||||
{"yellow", "Yellow", "^[colorize:yellow:100"},
|
||||
{"cement", "Concrete", ""},
|
||||
{'black', 'Black', '^[multiply:#2c2c2c'},
|
||||
{'blue', 'Blue', '^[multiply:#0041f4'},
|
||||
{'brown', 'Brown', '^[multiply:#6c3800'},
|
||||
{'cyan', 'Cyan', '^[multiply:cyan'},
|
||||
{'dark_green', 'Dark Green', '^[multiply:#2b7b00'},
|
||||
{'dark_grey', 'Dark Grey', '^[multiply:#464646'},
|
||||
{'green', 'Green', '^[multiply:#67eb1c'},
|
||||
{'grey', 'Grey', '^[multiply:#818181'},
|
||||
{'magenta', 'Magenta', '^[multiply:#d80481'},
|
||||
{'orange', 'Orange', '^[multiply:#e0601a'},
|
||||
{'pink', 'Pink', '^[multiply:#ffa5a5'},
|
||||
{'red', 'Red', '^[multiply:#c91818'},
|
||||
{'violet', 'Violet', '^[multiply:#480680'},
|
||||
{'white', 'White', '^[multiply:white'},
|
||||
{'yellow', 'Yellow', '^[multiply:#fcf611'},
|
||||
{'cement', 'Concrete', ''},
|
||||
}
|
||||
|
||||
for i in ipairs (color_tab) do
|
||||
local col = color_tab[i][1]
|
||||
local coldesc = color_tab[i][2]
|
||||
local alpha = color_tab[i][3]
|
||||
|
||||
minetest.register_alias("mylandscaping:stone_"..style,"mylandscaping:stone_"..style.."cement")
|
||||
minetest.register_alias('mylandscaping:stone_'..style,'mylandscaping:stone_'..style..'cement')
|
||||
|
||||
minetest.register_node("mylandscaping:stone_"..style..col,{
|
||||
description = desc.." Patio Stone"..coldesc,
|
||||
drawtype = "nodebox",
|
||||
minetest.register_node('mylandscaping:stone_'..style..col,{
|
||||
description = desc..' Patio Stone '..coldesc,
|
||||
drawtype = 'nodebox',
|
||||
tiles = {
|
||||
"mylandscaping_"..img1..".png^mylandscaping_"..img2..".png"..alpha,
|
||||
"mylandscaping_"..img1..".png"..alpha,
|
||||
"mylandscaping_"..img1..".png"..alpha,
|
||||
"mylandscaping_"..img1..".png"..alpha,
|
||||
"mylandscaping_"..img1..".png"..alpha,
|
||||
"mylandscaping_"..img1..".png"..alpha,
|
||||
'mylandscaping_'..img1..'.png^mylandscaping_'..img2..'.png'..alpha,
|
||||
'mylandscaping_'..img1..'.png'..alpha,
|
||||
'mylandscaping_'..img1..'.png'..alpha,
|
||||
'mylandscaping_'..img1..'.png'..alpha,
|
||||
'mylandscaping_'..img1..'.png'..alpha,
|
||||
'mylandscaping_'..img1..'.png'..alpha,
|
||||
},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2, not_in_creative_inventory=1, ml=1,},
|
||||
paramtype = 'light',
|
||||
groups = {cracky = 2, not_in_creative_inventory=ml_visible, ml=1,},
|
||||
node_box = cbox,
|
||||
selection_box = stone_cbox,
|
||||
collision_box = stone_cbox,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||
|
||||
local nodeu = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name
|
||||
|
||||
if nodeu == "default:sand" or
|
||||
nodeu == "default:desert_sand" then
|
||||
minetest.set_node({x=pos.x, y=pos.y-1, z=pos.z},{name = "mylandscaping:stone_"..style.."_sand"..col})
|
||||
minetest.set_node(pos,{name = "air"})
|
||||
if minetest.get_item_group(nodeu, 'sand') > 0 then
|
||||
minetest.set_node({x=pos.x, y=pos.y-1, z=pos.z},{name = 'mylandscaping:stone_'..style..'_sand'..col})
|
||||
minetest.set_node(pos,{name = 'air'})
|
||||
end
|
||||
end,
|
||||
|
||||
})
|
||||
minetest.register_node("mylandscaping:stone_"..style.."_sand"..col,{
|
||||
description = desc.." Patio Stone in Sand "..coldesc,
|
||||
drawtype = "nodebox",
|
||||
minetest.register_node('mylandscaping:stone_'..style..'_sand'..col,{
|
||||
description = desc..' Patio Stone in Sand '..coldesc,
|
||||
drawtype = 'nodebox',
|
||||
tiles = {
|
||||
"mylandscaping_"..img1..".png^mylandscaping_"..img2..".png"..alpha,
|
||||
"mylandscaping_"..img1..".png"..alpha,
|
||||
"mylandscaping_"..img1..".png"..alpha,
|
||||
"mylandscaping_"..img1..".png"..alpha,
|
||||
"mylandscaping_"..img1..".png"..alpha,
|
||||
"mylandscaping_"..img1..".png"..alpha,
|
||||
'mylandscaping_'..img1..'.png^mylandscaping_'..img2..'.png'..alpha,
|
||||
'mylandscaping_'..img1..'.png'..alpha,
|
||||
'mylandscaping_'..img1..'.png'..alpha,
|
||||
'mylandscaping_'..img1..'.png'..alpha,
|
||||
'mylandscaping_'..img1..'.png'..alpha,
|
||||
'mylandscaping_'..img1..'.png'..alpha,
|
||||
},
|
||||
drop = "mylandscaping:stone_"..style,
|
||||
paramtype = "light",
|
||||
drop = 'mylandscaping:stone_'..style,
|
||||
paramtype = 'light',
|
||||
groups = {cracky = 2, not_in_creative_inventory = 1},
|
||||
node_box = scbox,
|
||||
selection_box = sstone_cbox,
|
||||
collision_box = sstone_cbox,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||
minetest.set_node(pos,{name = "default:sand"})
|
||||
minetest.set_node(pos,{name = 'default:silver_sand'})
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 401 B |
BIN
textures/mylandscaping_madison_stone.png
Normal file
BIN
textures/mylandscaping_madison_stone.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
BIN
textures/mylandscaping_madison_wood.png
Normal file
BIN
textures/mylandscaping_madison_wood.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.7 KiB |
45
toppers.lua
45
toppers.lua
@ -1,48 +1,47 @@
|
||||
local block_type1 = { -- desc2, obj, texture
|
||||
{"Sphere", "sphere", 'concrete'},
|
||||
{"Suzanne", "suzanne", 'concrete'},
|
||||
{'Sphere', 'sphere', 'concrete'},
|
||||
{'Suzanne', 'suzanne', 'concrete'},
|
||||
{'Dragon', 'dragon', 'dragon'},
|
||||
{'Cross', 'cross', 'concrete'},
|
||||
}
|
||||
|
||||
for i in ipairs (block_type1) do
|
||||
local desc2 = block_type1[i][1]
|
||||
local obj = block_type1[i][2]
|
||||
local tex = block_type1[i][3]
|
||||
|
||||
local color_tab = {
|
||||
{"black", "Black", "^[colorize:black:150"},
|
||||
{"blue", "Blue", "^[colorize:#0404B4:100"},
|
||||
{"brown", "Brown", "^[colorize:#190B07:100"},
|
||||
{"cyan", "Cyan", "^[colorize:cyan:100"},
|
||||
{"dark_green", "Dark Green", "^[colorize:#071907:150"},
|
||||
{"dark_grey", "Dark Grey", "^[colorize:black:150"},
|
||||
{"green", "Green", "^[colorize:green:100"},
|
||||
{"grey", "Grey", "^[colorize:black:100"},
|
||||
{"magenta", "Magenta", "^[colorize:magenta:100"},
|
||||
{"orange", "Orange", "^[colorize:orange:100"},
|
||||
{"pink", "Pink", "^[colorize:#FE2E9A:100"},
|
||||
{"red", "Red", "^[colorize:#B40404:100"},
|
||||
{"violet", "Violet", "^[colorize:#2F0B3A:100"},
|
||||
{"white", "White", "^[colorize:white:100"},
|
||||
{"yellow", "Yellow", "^[colorize:yellow:100"},
|
||||
{"cement", "Concrete", ""},
|
||||
{'black', 'Black', '^[multiply:#2c2c2c'},
|
||||
{'blue', 'Blue', '^[multiply:#0041f4'},
|
||||
{'brown', 'Brown', '^[multiply:#6c3800'},
|
||||
{'cyan', 'Cyan', '^[multiply:cyan'},
|
||||
{'dark_green', 'Dark Green', '^[multiply:#2b7b00'},
|
||||
{'dark_grey', 'Dark Grey', '^[multiply:#464646'},
|
||||
{'green', 'Green', '^[multiply:#67eb1c'},
|
||||
{'grey', 'Grey', '^[multiply:#818181'},
|
||||
{'magenta', 'Magenta', '^[multiply:#d80481'},
|
||||
{'orange', 'Orange', '^[multiply:#e0601a'},
|
||||
{'pink', 'Pink', '^[multiply:#ffa5a5'},
|
||||
{'red', 'Red', '^[multiply:#c91818'},
|
||||
{'violet', 'Violet', '^[multiply:#480680'},
|
||||
{'white', 'White', '^[multiply:white'},
|
||||
{'yellow', 'Yellow', '^[multiply:#fcf611'},
|
||||
{'cement', 'Concrete', ''},
|
||||
}
|
||||
|
||||
for i in ipairs (color_tab) do
|
||||
local col = color_tab[i][1]
|
||||
local coldesc = color_tab[i][2]
|
||||
local alpha = color_tab[i][3]
|
||||
|
||||
minetest.register_node('mylandscaping:column_t_'..obj.."_"..col, {
|
||||
minetest.register_node('mylandscaping:column_t_'..obj..'_'..col, {
|
||||
description = desc2..' topper',
|
||||
drawtype = 'mesh',
|
||||
mesh = 'mylandscaping_column_t_'..obj..'.obj',
|
||||
tiles = {name='mylandscaping_'..tex..'.png'..alpha},
|
||||
groups = {cracky=2, not_in_creative_inventory=visible, ml=1},
|
||||
groups = {cracky=2, not_in_creative_inventory=ml_visible, ml=1},
|
||||
paramtype = 'light',
|
||||
paramtype2 = 'facedir',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1,26 +1,26 @@
|
||||
local colbox_type1 = { --top blocks
|
||||
type = "fixed",
|
||||
fixed = {{-.49, -.5, 0.05, .5, .6, .52}}
|
||||
type = 'fixed',
|
||||
fixed = {{-.49, -.5, 0.05, .5, .5, .52}}
|
||||
}
|
||||
local colbox_type2 = { --outside corner columns
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {{-.2, -.5, -.2, .5, .5, .5}}
|
||||
}
|
||||
local colbox_type3 = { --bottom blocks
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {{-.5, -.5, -.16, .5, .5, .25}}
|
||||
}
|
||||
local colbox_type4 = { --inside corner
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {{-.5, -.5, 0, .5, .5, .5},
|
||||
{0, -.5, -.5, .5, .5, .5}}
|
||||
}
|
||||
local colbox_type5 = { --inside corner column
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {{-.5, -.5, -.5, .5, .5, .5},}
|
||||
}
|
||||
local colbox_type6 = { --middle column
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {{-.5, -.5, -.3, .5, .5, .5},}
|
||||
}
|
||||
|
||||
@ -30,22 +30,22 @@ local colbox_type7 = { --outside corner
|
||||
}
|
||||
|
||||
local block_type1 = { -- desc2, typ, obj, colbox, drops, grup
|
||||
{"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", {ml=1,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", {ml=1,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 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 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}},
|
||||
{"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", {ml=1,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 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}},
|
||||
{'Adaridge Left', 'left', 'blocka_l_t', colbox_type1, 'left', {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Adaridge Middle', 'middle', 'blocka_m_t', colbox_type1, 'middle', {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Adaridge Right', 'right', 'blocka_r_t', colbox_type1, 'right', {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Adaridge Inside Corner', 'icorner', 'blocka_ic_t', colbox_type4, 'icorner', {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Adaridge Outside Corner', 'ocorner', 'blocka_oc_t', colbox_type2, 'ocorner', {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Hax0r', 'bleft', 'blocka_l_b', colbox_type3, 'left', {not_in_creative_inventory=1}},
|
||||
{'Hax0r', 'bmiddle', 'blocka_m_b', colbox_type3, 'middle', {not_in_creative_inventory=1}},
|
||||
{'Hax0r', 'bright', 'blocka_r_b', colbox_type3, 'right', {not_in_creative_inventory=1}},
|
||||
{'Hax0r', 'bicorner', 'blocka_ic_b', colbox_type4, 'icorner', {not_in_creative_inventory=1}},
|
||||
{'Hax0r', 'bocorner', 'blocka_oc_b', colbox_type2, 'ocorner', {not_in_creative_inventory=1}},
|
||||
{'Adaridge Column (IC)', 'column_ic_t', 'columna_ic_t', colbox_type5, 'column_ic_t', {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Adaridge Column (OC)', 'column_oc_t', 'columna_oc_t', colbox_type2, 'column_oc_t', {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Adaridge Column (M)', 'column_m_t', 'columna_m_t', colbox_type6, 'column_m_t', {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Hax0r', 'bcolumn_ic_t', 'columna_ic_b', colbox_type5, 'column_ic_b', {not_in_creative_inventory=1}},
|
||||
{'Hax0r', 'bcolumn_oc_t', 'columna_oc_b', colbox_type2, 'column_oc_b', {not_in_creative_inventory=1}},
|
||||
{'Hax0r', 'bcolumn_m_t', 'columna_m_b', colbox_type6, 'column_m_b', {not_in_creative_inventory=1}},
|
||||
}
|
||||
for i in ipairs (block_type1) do
|
||||
local desc2 = block_type1[i][1]
|
||||
@ -54,39 +54,38 @@ for i in ipairs (block_type1) do
|
||||
local colbox = block_type1[i][4]
|
||||
local drops = block_type1[i][5]
|
||||
local grup = block_type1[i][6]
|
||||
|
||||
local color_tab = {
|
||||
{"black", "Black", "^[colorize:black:150"},
|
||||
{"blue", "Blue", "^[colorize:#0404B4:100"},
|
||||
{"brown", "Brown", "^[colorize:#190B07:100"},
|
||||
{"cyan", "Cyan", "^[colorize:cyan:100"},
|
||||
{"dark_green", "Dark Green", "^[colorize:#071907:150"},
|
||||
{"dark_grey", "Dark Grey", "^[colorize:black:150"},
|
||||
{"green", "Green", "^[colorize:green:100"},
|
||||
{"grey", "Grey", "^[colorize:black:100"},
|
||||
{"magenta", "Magenta", "^[colorize:magenta:100"},
|
||||
{"orange", "Orange", "^[colorize:orange:100"},
|
||||
{"pink", "Pink", "^[colorize:#FE2E9A:100"},
|
||||
{"red", "Red", "^[colorize:#B40404:100"},
|
||||
{"violet", "Violet", "^[colorize:#2F0B3A:100"},
|
||||
{"white", "White", "^[colorize:white:100"},
|
||||
{"yellow", "Yellow", "^[colorize:yellow:100"},
|
||||
{"cement", "Concrete", ""},
|
||||
{'black', 'Black', '^[multiply:#2c2c2c'},
|
||||
{'blue', 'Blue', '^[multiply:#0041f4'},
|
||||
{'brown', 'Brown', '^[multiply:#6c3800'},
|
||||
{'cyan', 'Cyan', '^[multiply:cyan'},
|
||||
{'dark_green', 'Dark Green', '^[multiply:#2b7b00'},
|
||||
{'dark_grey', 'Dark Grey', '^[multiply:#464646'},
|
||||
{'green', 'Green', '^[multiply:#67eb1c'},
|
||||
{'grey', 'Grey', '^[multiply:#818181'},
|
||||
{'magenta', 'Magenta', '^[multiply:#d80481'},
|
||||
{'orange', 'Orange', '^[multiply:#e0601a'},
|
||||
{'pink', 'Pink', '^[multiply:#ffa5a5'},
|
||||
{'red', 'Red', '^[multiply:#c91818'},
|
||||
{'violet', 'Violet', '^[multiply:#480680'},
|
||||
{'white', 'White', '^[multiply:white'},
|
||||
{'yellow', 'Yellow', '^[multiply:#fcf611'},
|
||||
{'cement', 'Concrete', ''},
|
||||
}
|
||||
for i in ipairs (color_tab) do
|
||||
local col = color_tab[i][1]
|
||||
local coldesc = color_tab[i][2]
|
||||
local alpha = color_tab[i][3]
|
||||
|
||||
minetest.register_node('mylandscaping:awall_'..typ.."_"..col, {
|
||||
description = desc2.." "..coldesc,
|
||||
minetest.register_node('mylandscaping:awall_'..typ..'_'..col, {
|
||||
description = desc2..' '..coldesc,
|
||||
drawtype = 'mesh',
|
||||
mesh = 'mylandscaping_'..obj..'.obj',
|
||||
tiles = {name='mylandscaping_adaridge_tex.png'..alpha},
|
||||
groups = grup,
|
||||
paramtype = 'light',
|
||||
paramtype2 = 'facedir',
|
||||
drop = 'mylandscaping:awall_'..drops.."_"..col,
|
||||
drop = 'mylandscaping:awall_'..drops..'_'..col,
|
||||
selection_box = colbox,
|
||||
collision_box = colbox,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
@ -95,28 +94,21 @@ after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||
local nodeu = minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z})
|
||||
local nodea = minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z})
|
||||
local node = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z})
|
||||
if nodeu.name == "mylandscaping:awall_"..typ.."_"..col then
|
||||
minetest.set_node(pos,{name="mylandscaping:awall_"..typ.."_"..col,param2=nodeu.param2})
|
||||
minetest.set_node({x=pos.x,y=pos.y-1,z=pos.z},{name="mylandscaping:awall_b"..typ.."_"..col,param2=nodeu.param2})
|
||||
if nodeu.name == 'mylandscaping:awall_'..typ..'_'..col then
|
||||
minetest.swap_node(pos,{name='mylandscaping:awall_'..typ..'_'..col,param2=nodeu.param2})
|
||||
minetest.swap_node({x=pos.x,y=pos.y-1,z=pos.z},{name='mylandscaping:awall_b'..typ..'_'..col,param2=nodeu.param2})
|
||||
end
|
||||
if nodea.name == "mylandscaping:awall_"..typ..col then
|
||||
minetest.set_node(pos,{name="mylandscaping:awall_b"..typ.."_"..col,param2=node.param2})
|
||||
if nodea.name == 'mylandscaping:awall_'..typ..'_'..col then
|
||||
minetest.swap_node(pos,{name='mylandscaping:awall_b'..typ..'_'..col,param2=nodea.param2})
|
||||
end
|
||||
end,
|
||||
|
||||
after_destruct = function(pos, oldnode)
|
||||
local node = minetest.get_node(pos).name
|
||||
local nodeu = minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z})
|
||||
local nodea = minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z})
|
||||
|
||||
if nodeu.name == "mylandscaping:awall_b"..typ.."_"..col and
|
||||
nodea.name == "air" then
|
||||
minetest.set_node({x=pos.x,y=pos.y-1,z=pos.z},{name="mylandscaping:awall_"..typ.."_"..col,param2=nodeu.param2})
|
||||
if nodeu.name == 'mylandscaping:awall_b'..typ..'_'..col then
|
||||
minetest.swap_node({x=pos.x,y=pos.y-1,z=pos.z},{name='mylandscaping:awall_'..typ..'_'..col,param2=nodeu.param2})
|
||||
end
|
||||
|
||||
end,
|
||||
|
||||
})
|
||||
|
||||
end
|
||||
end
|
||||
|
@ -8,35 +8,34 @@ local colbox_type2 = { --wall
|
||||
}
|
||||
|
||||
local block_type1 = { -- desc2, obj, colbox, grup,
|
||||
{"Deco Wall Scalloped", "wall_s", colbox_type2, {ml=1,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, {ml=1,cracky=2,not_in_creative_inventory=visible}},
|
||||
{'Deco Wall Random Top', 'wall_r', colbox_type2, {ml=1,cracky=2,not_in_creative_inventory=visible}},
|
||||
{"Deco Wall Column", "column", colbox_type1, {ml=1,cracky=2,not_in_creative_inventory=visible}},
|
||||
{"Deco Wall Scalloped", "wall_s", colbox_type2, {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{"Deco Wall Flat Top", "wall_f", colbox_type2, {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Deco Wall Peaked Top', 'wall_p', colbox_type2, {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Deco Wall Random Top', 'wall_r', colbox_type2, {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{"Deco Wall Column", "column", colbox_type1, {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
}
|
||||
for i in ipairs (block_type1) do
|
||||
local desc2 = block_type1[i][1]
|
||||
local obj = block_type1[i][2]
|
||||
local colbox = block_type1[i][3]
|
||||
local grup = block_type1[i][4]
|
||||
|
||||
local color_tab = {
|
||||
{"black", "Black", "^[colorize:black:150"},
|
||||
{"blue", "Blue", "^[colorize:#0404B4:100"},
|
||||
{"brown", "Brown", "^[colorize:#190B07:100"},
|
||||
{"cyan", "Cyan", "^[colorize:cyan:100"},
|
||||
{"dark_green", "Dark Green", "^[colorize:#071907:150"},
|
||||
{"dark_grey", "Dark Grey", "^[colorize:black:150"},
|
||||
{"green", "Green", "^[colorize:green:100"},
|
||||
{"grey", "Grey", "^[colorize:black:100"},
|
||||
{"magenta", "Magenta", "^[colorize:magenta:100"},
|
||||
{"orange", "Orange", "^[colorize:orange:100"},
|
||||
{"pink", "Pink", "^[colorize:#FE2E9A:100"},
|
||||
{"red", "Red", "^[colorize:#B40404:100"},
|
||||
{"violet", "Violet", "^[colorize:#2F0B3A:100"},
|
||||
{"white", "White", "^[colorize:white:100"},
|
||||
{"yellow", "Yellow", "^[colorize:yellow:100"},
|
||||
{"cement", "Concrete", ""},
|
||||
{'black', 'Black', '^[multiply:#2c2c2c'},
|
||||
{'blue', 'Blue', '^[multiply:#0041f4'},
|
||||
{'brown', 'Brown', '^[multiply:#6c3800'},
|
||||
{'cyan', 'Cyan', '^[multiply:cyan'},
|
||||
{'dark_green', 'Dark Green', '^[multiply:#2b7b00'},
|
||||
{'dark_grey', 'Dark Grey', '^[multiply:#464646'},
|
||||
{'green', 'Green', '^[multiply:#67eb1c'},
|
||||
{'grey', 'Grey', '^[multiply:#818181'},
|
||||
{'magenta', 'Magenta', '^[multiply:#d80481'},
|
||||
{'orange', 'Orange', '^[multiply:#e0601a'},
|
||||
{'pink', 'Pink', '^[multiply:#ffa5a5'},
|
||||
{'red', 'Red', '^[multiply:#c91818'},
|
||||
{'violet', 'Violet', '^[multiply:#480680'},
|
||||
{'white', 'White', '^[multiply:white'},
|
||||
{'yellow', 'Yellow', '^[multiply:#fcf611'},
|
||||
{'cement', 'Concrete', ''},
|
||||
}
|
||||
for i in ipairs (color_tab) do
|
||||
local col = color_tab[i][1]
|
||||
|
@ -1,44 +1,44 @@
|
||||
local colbox_type1 = { --top blocks
|
||||
type = "fixed",
|
||||
fixed = {{-.49, -.5, 0.05, .5, .6, .52}}
|
||||
type = 'fixed',
|
||||
fixed = {{-.49, -.5, 0.05, .5, .5, .52}}
|
||||
}
|
||||
local colbox_type2 = { --columns
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {{-.2, -.5, -.2, .5, .5, .5}}
|
||||
}
|
||||
local colbox_type3 = { --bottom blocks
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {{-.5, -.5, -.16, .5, .5, .25}}
|
||||
}
|
||||
local colbox_type4 = { --corner
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {{-.5, -.5, 0, .5, .5, .5},
|
||||
{0, -.5, -.5, .5, .5, .5}}
|
||||
}
|
||||
local colbox_type5 = { --corner
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {{-.5, -.5, -.5, .5, .5, .5},}
|
||||
}
|
||||
local colbox_type6 = { --corner
|
||||
type = "fixed",
|
||||
type = 'fixed',
|
||||
fixed = {{-.5, -.5, -.3, .5, .5, .5},}
|
||||
}
|
||||
|
||||
local block_type1 = { -- desc2, typ, obj, colbox, drops, grup
|
||||
{"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", {ml=1,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", {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 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 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", {ml=1,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", {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 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}},
|
||||
{'Freeport Left', 'left', 'blockf_l_t', colbox_type1, 'left', {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Freeport Middle', 'middle', 'blockf_m_t', colbox_type1, 'middle', {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Freeport Right', 'right', 'blockf_r_t', colbox_type1, 'right', {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Freeport Inside Corner', 'corner', 'blockf_c_t', colbox_type4, 'corner', {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Hax0r', 'bleft', 'blockf_l_b', colbox_type3, 'left', {not_in_creative_inventory=1}},
|
||||
{'Hax0r', 'bmiddle', 'blockf_m_b', colbox_type3, 'middle', {not_in_creative_inventory=1}},
|
||||
{'Hax0r', 'bright', 'blockf_r_b', colbox_type3, 'right', {not_in_creative_inventory=1}},
|
||||
{'Hax0r', 'bcorner', 'blockf_c_b', colbox_type4, 'corner', {not_in_creative_inventory=1}},
|
||||
{'Freeport Column (IC)', 'column_ic_t', 'columnf_ic_t', colbox_type5, 'column_ic_t', {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Freeport Column (OC)', 'column_oc_t', 'columnf_oc_t', colbox_type2, 'column_oc_t', {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Freeport Column (M)', 'column_m_t', 'columnf_m_t', colbox_type6, 'column_m_t', {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Hax0r', 'bcolumn_ic_t', 'columnf_ic_b', colbox_type5, 'column_ic_b', {not_in_creative_inventory=1}},
|
||||
{'Hax0r', 'bcolumn_oc_t', 'columnf_oc_b', colbox_type2, 'column_oc_b', {not_in_creative_inventory=1}},
|
||||
{'Hax0r', 'bcolumn_m_t', 'columnf_m_b', colbox_type6, 'column_m_b', {not_in_creative_inventory=1}},
|
||||
}
|
||||
for i in ipairs (block_type1) do
|
||||
local desc2 = block_type1[i][1]
|
||||
@ -47,69 +47,61 @@ for i in ipairs (block_type1) do
|
||||
local colbox = block_type1[i][4]
|
||||
local drops = block_type1[i][5]
|
||||
local grup = block_type1[i][6]
|
||||
|
||||
local color_tab = {
|
||||
{"black", "Black", "^[colorize:black:150"},
|
||||
{"blue", "Blue", "^[colorize:#0404B4:100"},
|
||||
{"brown", "Brown", "^[colorize:#190B07:100"},
|
||||
{"cyan", "Cyan", "^[colorize:cyan:100"},
|
||||
{"dark_green", "Dark Green", "^[colorize:#071907:150"},
|
||||
{"dark_grey", "Dark Grey", "^[colorize:black:150"},
|
||||
{"green", "Green", "^[colorize:green:100"},
|
||||
{"grey", "Grey", "^[colorize:black:100"},
|
||||
{"magenta", "Magenta", "^[colorize:magenta:100"},
|
||||
{"orange", "Orange", "^[colorize:orange:100"},
|
||||
{"pink", "Pink", "^[colorize:#FE2E9A:100"},
|
||||
{"red", "Red", "^[colorize:#B40404:100"},
|
||||
{"violet", "Violet", "^[colorize:#2F0B3A:100"},
|
||||
{"white", "White", "^[colorize:white:100"},
|
||||
{"yellow", "Yellow", "^[colorize:yellow:100"},
|
||||
{"cement", "Concrete", ""},
|
||||
{'black', 'Black', '^[multiply:#2c2c2c'},
|
||||
{'blue', 'Blue', '^[multiply:#0041f4'},
|
||||
{'brown', 'Brown', '^[multiply:#6c3800'},
|
||||
{'cyan', 'Cyan', '^[multiply:cyan'},
|
||||
{'dark_green', 'Dark Green', '^[multiply:#2b7b00'},
|
||||
{'dark_grey', 'Dark Grey', '^[multiply:#464646'},
|
||||
{'green', 'Green', '^[multiply:#67eb1c'},
|
||||
{'grey', 'Grey', '^[multiply:#818181'},
|
||||
{'magenta', 'Magenta', '^[multiply:#d80481'},
|
||||
{'orange', 'Orange', '^[multiply:#e0601a'},
|
||||
{'pink', 'Pink', '^[multiply:#ffa5a5'},
|
||||
{'red', 'Red', '^[multiply:#c91818'},
|
||||
{'violet', 'Violet', '^[multiply:#480680'},
|
||||
{'white', 'White', '^[multiply:white'},
|
||||
{'yellow', 'Yellow', '^[multiply:#fcf611'},
|
||||
{'cement', 'Concrete', ''},
|
||||
}
|
||||
for i in ipairs (color_tab) do
|
||||
local col = color_tab[i][1]
|
||||
local coldesc = color_tab[i][2]
|
||||
local alpha = color_tab[i][3]
|
||||
|
||||
minetest.register_node('mylandscaping:fwall_'..typ.."_"..col, {
|
||||
description = desc2.." "..coldesc,
|
||||
minetest.register_node('mylandscaping:fwall_'..typ..'_'..col, {
|
||||
description = desc2..' '..coldesc,
|
||||
drawtype = 'mesh',
|
||||
mesh = 'mylandscaping_'..obj..'.obj',
|
||||
tiles = {{name='mylandscaping_block_smooth.png'..alpha}, {name='mylandscaping_block_split.png'..alpha}},
|
||||
groups = grup,
|
||||
paramtype = 'light',
|
||||
paramtype2 = 'facedir',
|
||||
drop = 'mylandscaping:fwall_'..drops.."_"..col,
|
||||
drop = 'mylandscaping:fwall_'..drops..'_'..col,
|
||||
selection_box = colbox,
|
||||
collision_box = colbox,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||
after_place_node = function(pos, placer, itemstack)
|
||||
local nodeu = minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z})
|
||||
local nodea = minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z})
|
||||
local node = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z})
|
||||
if nodeu.name == "mylandscaping:fwall_"..typ.."_"..col then
|
||||
minetest.set_node(pos,{name="mylandscaping:fwall_"..typ.."_"..col,param2=nodeu.param2})
|
||||
minetest.set_node({x=pos.x,y=pos.y-1,z=pos.z},{name="mylandscaping:fwall_b"..typ.."_"..col,param2=nodeu.param2})
|
||||
if nodeu.name == 'mylandscaping:fwall_'..typ..'_'..col then
|
||||
minetest.swap_node(pos,{name='mylandscaping:fwall_'..typ..'_'..col,param2=nodeu.param2})
|
||||
minetest.swap_node({x=pos.x,y=pos.y-1,z=pos.z},{name='mylandscaping:fwall_b'..typ..'_'..col,param2=nodeu.param2})
|
||||
end
|
||||
if nodea.name == "mylandscaping:fwall_"..typ..col then
|
||||
minetest.set_node(pos,{name="mylandscaping:fwall_b"..typ.."_"..col,param2=node.param2})
|
||||
if nodea.name == 'mylandscaping:fwall_'..typ..'_'..col then
|
||||
minetest.swap_node(pos,{name='mylandscaping:fwall_b'..typ..'_'..col,param2=nodea.param2})
|
||||
end
|
||||
end,
|
||||
|
||||
after_destruct = function(pos, oldnode)
|
||||
local node = minetest.get_node(pos).name
|
||||
local nodeu = minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z})
|
||||
local nodea = minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z})
|
||||
|
||||
if nodeu.name == "mylandscaping:fwall_b"..typ.."_"..col and
|
||||
nodea.name == "air" then
|
||||
minetest.set_node({x=pos.x,y=pos.y-1,z=pos.z},{name="mylandscaping:fwall_"..typ.."_"..col,param2=nodeu.param2})
|
||||
if nodeu.name == 'mylandscaping:fwall_b'..typ..'_'..col then
|
||||
minetest.swap_node({x=pos.x,y=pos.y-1,z=pos.z},{name='mylandscaping:fwall_'..typ..'_'..col,param2=nodeu.param2})
|
||||
end
|
||||
|
||||
end,
|
||||
|
||||
})
|
||||
|
||||
end
|
||||
end
|
||||
|
@ -0,0 +1,100 @@
|
||||
local colbox_type1 = { --top blocks
|
||||
type = 'fixed',
|
||||
fixed = {-.5, -.5, -.2, .5, .5, .5}
|
||||
}
|
||||
local colbox_type2 = { --bottom blocks
|
||||
type = 'fixed',
|
||||
fixed = {-.5, -.5, -.2, .5, .5, .5}
|
||||
}
|
||||
local colbox_type3 = { --top inside corner
|
||||
type = 'fixed',
|
||||
fixed = {{-.2, -.5, -.5, .5, .5, .5},
|
||||
{-.5, -.5, -.2, .5, .5, .5}}
|
||||
}
|
||||
local colbox_type4 = { --bottom inside corner
|
||||
type = 'fixed',
|
||||
fixed = {{-.2, -.5, -.5, .5, .5, .5},
|
||||
{-.5, -.5, -.2, .5, .5, .5}}
|
||||
}
|
||||
local colbox_type5 = { --top outside corner
|
||||
type = 'fixed',
|
||||
fixed = {-.2, -.5, -.2, .5, .5, .5}
|
||||
}
|
||||
local colbox_type6 = { --bottom outside corner
|
||||
type = 'fixed',
|
||||
fixed = {-.2, -.5, -.2, .5, .5, .5}
|
||||
}
|
||||
|
||||
local block_type1 = { -- desc2, typ, obj, colbox, drops, grup
|
||||
{'Madison Middle', 'middle', 'blockm_m_t', colbox_type1, 'middle', {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Hax0r', 'bmiddle', 'blockm_m_b', colbox_type2, 'middle', {not_in_creative_inventory=1}},
|
||||
{'Madison Inside Corner', 'icorner', 'blockm_ic_t', colbox_type3, 'icorner', {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Hax0r', 'bicorner', 'blockm_ic_b', colbox_type4, 'icorner', {not_in_creative_inventory=1}},
|
||||
{'Madison Outside Corner', 'ocorner', 'blockm_oc_t', colbox_type5, 'ocorner', {ml=1,cracky=2,not_in_creative_inventory=ml_visible}},
|
||||
{'Hax0r', 'bocorner', 'blockm_oc_b', colbox_type6, 'ocorner', {not_in_creative_inventory=1}},
|
||||
}
|
||||
|
||||
for i in ipairs (block_type1) do
|
||||
local desc2 = block_type1[i][1]
|
||||
local typ = block_type1[i][2]
|
||||
local obj = block_type1[i][3]
|
||||
local colbox = block_type1[i][4]
|
||||
local drops = block_type1[i][5]
|
||||
local grup = block_type1[i][6]
|
||||
local color_tab = {
|
||||
{'black', 'Black', '^[multiply:#2c2c2c'},
|
||||
{'blue', 'Blue', '^[multiply:#0041f4'},
|
||||
{'brown', 'Brown', '^[multiply:#6c3800'},
|
||||
{'cyan', 'Cyan', '^[multiply:cyan'},
|
||||
{'dark_green', 'Dark Green', '^[multiply:#2b7b00'},
|
||||
{'dark_grey', 'Dark Grey', '^[multiply:#464646'},
|
||||
{'green', 'Green', '^[multiply:#67eb1c'},
|
||||
{'grey', 'Grey', '^[multiply:#818181'},
|
||||
{'magenta', 'Magenta', '^[multiply:#d80481'},
|
||||
{'orange', 'Orange', '^[multiply:#e0601a'},
|
||||
{'pink', 'Pink', '^[multiply:#ffa5a5'},
|
||||
{'red', 'Red', '^[multiply:#c91818'},
|
||||
{'violet', 'Violet', '^[multiply:#480680'},
|
||||
{'white', 'White', '^[multiply:white'},
|
||||
{'yellow', 'Yellow', '^[multiply:#fcf611'},
|
||||
{'cement', 'Concrete', ''},
|
||||
}
|
||||
for i in ipairs (color_tab) do
|
||||
local col = color_tab[i][1]
|
||||
local coldesc = color_tab[i][2]
|
||||
local alpha = color_tab[i][3]
|
||||
|
||||
minetest.register_node('mylandscaping:mwall_'..typ..'_'..col, {
|
||||
description = desc2..' '..coldesc,
|
||||
drawtype = 'mesh',
|
||||
mesh = 'mylandscaping_'..obj..'.obj',
|
||||
tiles = {{name='mylandscaping_madison_wood.png'}, {name='mylandscaping_madison_stone.png'..alpha}},
|
||||
groups = grup,
|
||||
paramtype = 'light',
|
||||
paramtype2 = 'facedir',
|
||||
drop = 'mylandscaping:mwall_'..drops..'_'..col,
|
||||
selection_box = colbox,
|
||||
collision_box = colbox,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||
local nodeu = minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z})
|
||||
local nodea = minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z})
|
||||
if nodeu.name == 'mylandscaping:mwall_'..typ..'_'..col then
|
||||
minetest.swap_node(pos,{name='mylandscaping:mwall_'..typ..'_'..col,param2=nodeu.param2})
|
||||
minetest.swap_node({x=pos.x,y=pos.y-1,z=pos.z},{name='mylandscaping:mwall_b'..typ..'_'..col,param2=nodeu.param2})
|
||||
end
|
||||
if nodea.name == 'mylandscaping:mwall_'..typ..'_'..col then
|
||||
minetest.swap_node(pos,{name='mylandscaping:mwall_b'..typ..'_'..col,param2=nodea.param2})
|
||||
end
|
||||
end,
|
||||
|
||||
after_destruct = function(pos, oldnode)
|
||||
local nodeu = minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z})
|
||||
if nodeu.name == 'mylandscaping:mwall_b'..typ..'_'..col then
|
||||
minetest.swap_node({x=pos.x,y=pos.y-1,z=pos.z},{name='mylandscaping:mwall_'..typ..'_'..col,param2=nodeu.param2})
|
||||
end
|
||||
end,
|
||||
})
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user