Code cleanup
parent
78b252a6c0
commit
f8492d47f4
|
@ -5,7 +5,6 @@ minetest.register_node("mybricks:brick_"..mat, {
|
||||||
description = desc.." Brick",
|
description = desc.." Brick",
|
||||||
drawtype = drawtype,
|
drawtype = drawtype,
|
||||||
tiles = {
|
tiles = {
|
||||||
|
|
||||||
image.."^mybricks_pattern13.png",
|
image.."^mybricks_pattern13.png",
|
||||||
image.."^mybricks_pattern13.png^[transformR90",
|
image.."^mybricks_pattern13.png^[transformR90",
|
||||||
image.."^mybricks_pattern1.png",
|
image.."^mybricks_pattern1.png",
|
||||||
|
@ -24,7 +23,6 @@ minetest.register_node("mybricks:smbrick_"..mat, {
|
||||||
description = desc.." Small Brick",
|
description = desc.." Small Brick",
|
||||||
drawtype = drawtype,
|
drawtype = drawtype,
|
||||||
tiles = {
|
tiles = {
|
||||||
|
|
||||||
image.."^mybricks_pattern11.png",
|
image.."^mybricks_pattern11.png",
|
||||||
image.."^mybricks_pattern12.png",
|
image.."^mybricks_pattern12.png",
|
||||||
image.."^mybricks_pattern9.png",
|
image.."^mybricks_pattern9.png",
|
||||||
|
@ -43,7 +41,6 @@ minetest.register_node("mybricks:tbrick_"..mat, {
|
||||||
description = desc.." Tiny Brick",
|
description = desc.." Tiny Brick",
|
||||||
drawtype = drawtype,
|
drawtype = drawtype,
|
||||||
tiles = {
|
tiles = {
|
||||||
|
|
||||||
image.."^mybricks_pattern14.png",
|
image.."^mybricks_pattern14.png",
|
||||||
image.."^mybricks_pattern15.png",
|
image.."^mybricks_pattern15.png",
|
||||||
image.."^mybricks_pattern10.png^[transformFX",
|
image.."^mybricks_pattern10.png^[transformFX",
|
||||||
|
@ -127,13 +124,10 @@ minetest.register_node("mybricks:brick_vsplit_"..mat, {
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
minetest.register_node("mybricks:brickw_"..mat, {
|
minetest.register_node("mybricks:brickw_"..mat, {
|
||||||
description = desc.." Brick",
|
description = desc.." Brick",
|
||||||
drawtype = drawtype,
|
drawtype = drawtype,
|
||||||
tiles = {
|
tiles = {
|
||||||
|
|
||||||
image.."^mybricks_pattern13_w.png",
|
image.."^mybricks_pattern13_w.png",
|
||||||
image.."^mybricks_pattern13_w.png^[transformR90",
|
image.."^mybricks_pattern13_w.png^[transformR90",
|
||||||
image.."^mybricks_pattern1_w.png",
|
image.."^mybricks_pattern1_w.png",
|
||||||
|
@ -152,7 +146,6 @@ minetest.register_node("mybricks:smbrickw_"..mat, {
|
||||||
description = desc.." Small Brick",
|
description = desc.." Small Brick",
|
||||||
drawtype = drawtype,
|
drawtype = drawtype,
|
||||||
tiles = {
|
tiles = {
|
||||||
|
|
||||||
image.."^mybricks_pattern11_w.png",
|
image.."^mybricks_pattern11_w.png",
|
||||||
image.."^mybricks_pattern12_w.png",
|
image.."^mybricks_pattern12_w.png",
|
||||||
image.."^mybricks_pattern9_w.png",
|
image.."^mybricks_pattern9_w.png",
|
||||||
|
@ -171,7 +164,6 @@ minetest.register_node("mybricks:tbrickw_"..mat, {
|
||||||
description = desc.." Tiny Brick",
|
description = desc.." Tiny Brick",
|
||||||
drawtype = drawtype,
|
drawtype = drawtype,
|
||||||
tiles = {
|
tiles = {
|
||||||
|
|
||||||
image.."^mybricks_pattern14_w.png",
|
image.."^mybricks_pattern14_w.png",
|
||||||
image.."^mybricks_pattern15_w.png",
|
image.."^mybricks_pattern15_w.png",
|
||||||
image.."^mybricks_pattern10_w.png",
|
image.."^mybricks_pattern10_w.png",
|
||||||
|
@ -254,4 +246,5 @@ minetest.register_node("mybricks:brick_vsplitw_"..mat, {
|
||||||
groups = mygroups,
|
groups = mygroups,
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
15
init.lua
15
init.lua
|
@ -1,21 +1,16 @@
|
||||||
mybricks = {}
|
mybricks = {}
|
||||||
|
|
||||||
dofile(minetest.get_modpath("mybricks").."/bricks.lua")
|
dofile(minetest.get_modpath("mybricks").."/bricks.lua")
|
||||||
dofile(minetest.get_modpath("mybricks").."/machine.lua")
|
dofile(minetest.get_modpath("mybricks").."/machine.lua")
|
||||||
dofile(minetest.get_modpath("mybricks").."/register.lua")
|
dofile(minetest.get_modpath("mybricks").."/register.lua")
|
||||||
|
|
||||||
|
if minetest.get_modpath("hardenedclay") then
|
||||||
local mod_hardenedclay = minetest.get_modpath("hardenedclay")
|
|
||||||
local mod_ores = minetest.get_modpath("ores")
|
|
||||||
|
|
||||||
if mod_hardenedclay then
|
|
||||||
dofile(minetest.get_modpath("mybricks").."/hardenedclay.lua")
|
dofile(minetest.get_modpath("mybricks").."/hardenedclay.lua")
|
||||||
|
end
|
||||||
|
|
||||||
end
|
if minetest.get_modpath("ores") then
|
||||||
|
|
||||||
if mod_ores then
|
|
||||||
dofile(minetest.get_modpath("mybricks").."/ores.lua")
|
dofile(minetest.get_modpath("mybricks").."/ores.lua")
|
||||||
|
end
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
722
machine.lua
722
machine.lua
|
@ -38,395 +38,353 @@ minetest.register_node("mybricks:machine", {
|
||||||
},
|
},
|
||||||
|
|
||||||
after_place_node = function(pos, placer)
|
after_place_node = function(pos, placer)
|
||||||
local meta = minetest.get_meta(pos);
|
local meta = minetest.get_meta(pos);
|
||||||
meta:set_string("owner", (placer:get_player_name() or ""));
|
meta:set_string("owner", (placer:get_player_name() or ""));
|
||||||
meta:set_string("infotext", "Brick Machine (owned by " .. (placer:get_player_name() or "") .. ")");
|
meta:set_string("infotext", "Brick Machine (owned by " .. (placer:get_player_name() or "") .. ")");
|
||||||
end,
|
end,
|
||||||
|
|
||||||
can_dig = function(pos,player)
|
can_dig = function(pos,player)
|
||||||
local meta = minetest.get_meta(pos);
|
local meta = minetest.get_meta(pos);
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
if player:get_player_name() == meta:get_string("owner") and
|
if player:get_player_name() == meta:get_string("owner") and
|
||||||
inv:is_empty("ingot") and
|
inv:is_empty("ingot") and
|
||||||
inv:is_empty("res") then
|
inv:is_empty("res") then
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_string("formspec", "invsize[10,11;]"..
|
meta:set_string("formspec", "invsize[10,11;]"..
|
||||||
"background[-0.15,-0.25;10.40,11.75;mybricks_background.png]"..
|
"background[-0.15,-0.25;10.40,11.75;mybricks_background.png]"..
|
||||||
"list[current_name;ingot;7,2;1,1;]"..
|
"list[current_name;ingot;7,2;1,1;]"..
|
||||||
"list[current_name;res;7,4;1,1;]"..
|
"list[current_name;res;7,4;1,1;]"..
|
||||||
"label[7,1.5;Input:]"..
|
"label[7,1.5;Input:]"..
|
||||||
"label[7,3.5;Output:]"..
|
"label[7,3.5;Output:]"..
|
||||||
"label[0,0;Choose Brick Stye:]"..
|
"label[0,0;Choose Brick Stye:]"..
|
||||||
"image_button[1,1;1,1;mybricks_mach1.png;brick; ]"..
|
"image_button[1,1;1,1;mybricks_mach1.png;brick; ]"..
|
||||||
"image_button[1,2;1,1;mybricks_mach8.png;smbrick; ]"..
|
"image_button[1,2;1,1;mybricks_mach8.png;smbrick; ]"..
|
||||||
"image_button[1,3;1,1;mybricks_mach7.png;tbrick; ]"..
|
"image_button[1,3;1,1;mybricks_mach7.png;tbrick; ]"..
|
||||||
"image_button[2.5,1;1,1;mybricks_mach4.png;tile; ]"..
|
"image_button[2.5,1;1,1;mybricks_mach4.png;tile; ]"..
|
||||||
"image_button[2.5,2;1,1;mybricks_mach2.png;square; ]"..
|
"image_button[2.5,2;1,1;mybricks_mach2.png;square; ]"..
|
||||||
"image_button[2.5,3;1,1;mybricks_mach3.png;square_sm; ]"..
|
"image_button[2.5,3;1,1;mybricks_mach3.png;square_sm; ]"..
|
||||||
"image_button[4,1;1,1;mybricks_mach5.png;split; ]"..
|
"image_button[4,1;1,1;mybricks_mach5.png;split; ]"..
|
||||||
"image_button[4,2;1,1;mybricks_mach6.png;vsplit; ]"..
|
"image_button[4,2;1,1;mybricks_mach6.png;vsplit; ]"..
|
||||||
"image_button[1,4;1,1;mybricks_mach9.png;brickw; ]"..
|
"image_button[1,4;1,1;mybricks_mach9.png;brickw; ]"..
|
||||||
"image_button[1,5;1,1;mybricks_mach10.png;smbrickw; ]"..
|
"image_button[1,5;1,1;mybricks_mach10.png;smbrickw; ]"..
|
||||||
"image_button[1,6;1,1;mybricks_mach11.png;tbrickw; ]"..
|
"image_button[1,6;1,1;mybricks_mach11.png;tbrickw; ]"..
|
||||||
"image_button[2.5,4;1,1;mybricks_mach12.png;tilew; ]"..
|
"image_button[2.5,4;1,1;mybricks_mach12.png;tilew; ]"..
|
||||||
"image_button[2.5,5;1,1;mybricks_mach13.png;squarew; ]"..
|
"image_button[2.5,5;1,1;mybricks_mach13.png;squarew; ]"..
|
||||||
"image_button[2.5,6;1,1;mybricks_mach14.png;square_smw; ]"..
|
"image_button[2.5,6;1,1;mybricks_mach14.png;square_smw; ]"..
|
||||||
"image_button[4,4;1,1;mybricks_mach15.png;splitw; ]"..
|
"image_button[4,4;1,1;mybricks_mach15.png;splitw; ]"..
|
||||||
"image_button[4,5;1,1;mybricks_mach16.png;vsplitw; ]"..
|
"image_button[4,5;1,1;mybricks_mach16.png;vsplitw; ]"..
|
||||||
"list[current_player;main;1,7;8,4;]")
|
"list[current_player;main;1,7;8,4;]")
|
||||||
meta:set_string("infotext", "Brick Machine")
|
meta:set_string("infotext", "Brick Machine")
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
inv:set_size("ingot", 1)
|
inv:set_size("ingot", 1)
|
||||||
inv:set_size("res", 1)
|
inv:set_size("res", 1)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
on_receive_fields = function(pos, formname, fields, sender)
|
on_receive_fields = function(pos, formname, fields, sender)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
|
|
||||||
if fields["brick"]
|
if fields["brick"]
|
||||||
or fields["smbrick"]
|
or fields["smbrick"]
|
||||||
or fields["tbrick"]
|
or fields["tbrick"]
|
||||||
or fields["square"]
|
or fields["square"]
|
||||||
or fields["square_sm"]
|
or fields["square_sm"]
|
||||||
or fields["tile"]
|
or fields["tile"]
|
||||||
or fields["split"]
|
or fields["split"]
|
||||||
or fields["vsplit"]
|
or fields["vsplit"]
|
||||||
or fields["brickw"]
|
or fields["brickw"]
|
||||||
or fields["smbrickw"]
|
or fields["smbrickw"]
|
||||||
or fields["tbrickw"]
|
or fields["tbrickw"]
|
||||||
or fields["squarew"]
|
or fields["squarew"]
|
||||||
or fields["square_smw"]
|
or fields["square_smw"]
|
||||||
or fields["tilew"]
|
or fields["tilew"]
|
||||||
or fields["splitw"]
|
or fields["splitw"]
|
||||||
or fields["vsplitw"]
|
or fields["vsplitw"]
|
||||||
then
|
then
|
||||||
|
|
||||||
if fields["brick"] then
|
if fields["brick"] then
|
||||||
make_ok = "0"
|
make_ok = "0"
|
||||||
anzahl = "1"
|
anzahl = "1"
|
||||||
shape = "mybricks:brick_"
|
shape = "mybricks:brick_"
|
||||||
if inv:is_empty("ingot") then
|
if inv:is_empty("ingot") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if fields["smbrick"] then
|
if fields["smbrick"] then
|
||||||
make_ok = "0"
|
make_ok = "0"
|
||||||
anzahl = "1"
|
anzahl = "1"
|
||||||
shape = "mybricks:smbrick_"
|
shape = "mybricks:smbrick_"
|
||||||
if inv:is_empty("ingot") then
|
if inv:is_empty("ingot") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if fields["tbrick"] then
|
if fields["tbrick"] then
|
||||||
make_ok = "0"
|
make_ok = "0"
|
||||||
anzahl = "1"
|
anzahl = "1"
|
||||||
shape = "mybricks:tbrick_"
|
shape = "mybricks:tbrick_"
|
||||||
if inv:is_empty("ingot") then
|
if inv:is_empty("ingot") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if fields["square"] then
|
if fields["square"] then
|
||||||
make_ok = "0"
|
make_ok = "0"
|
||||||
anzahl = "1"
|
anzahl = "1"
|
||||||
shape = "mybricks:brick_square_"
|
shape = "mybricks:brick_square_"
|
||||||
if inv:is_empty("ingot") then
|
if inv:is_empty("ingot") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if fields["square_sm"] then
|
if fields["square_sm"] then
|
||||||
make_ok = "0"
|
make_ok = "0"
|
||||||
anzahl = "1"
|
anzahl = "1"
|
||||||
shape = "mybricks:brick_square_sm_"
|
shape = "mybricks:brick_square_sm_"
|
||||||
if inv:is_empty("ingot") then
|
if inv:is_empty("ingot") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if fields["tile"] then
|
if fields["tile"] then
|
||||||
make_ok = "0"
|
make_ok = "0"
|
||||||
anzahl = "1"
|
anzahl = "1"
|
||||||
shape = "mybricks:brick_tile_"
|
shape = "mybricks:brick_tile_"
|
||||||
if inv:is_empty("ingot") then
|
if inv:is_empty("ingot") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if fields["split"] then
|
if fields["split"] then
|
||||||
make_ok = "0"
|
make_ok = "0"
|
||||||
anzahl = "1"
|
anzahl = "1"
|
||||||
shape = "mybricks:brick_split_"
|
shape = "mybricks:brick_split_"
|
||||||
if inv:is_empty("ingot") then
|
if inv:is_empty("ingot") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if fields["vsplit"] then
|
if fields["vsplit"] then
|
||||||
make_ok = "0"
|
make_ok = "0"
|
||||||
anzahl = "1"
|
anzahl = "1"
|
||||||
shape = "mybricks:brick_vsplit_"
|
shape = "mybricks:brick_vsplit_"
|
||||||
if inv:is_empty("ingot") then
|
if inv:is_empty("ingot") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if fields["brickw"] then
|
if fields["brickw"] then
|
||||||
make_ok = "0"
|
make_ok = "0"
|
||||||
anzahl = "1"
|
anzahl = "1"
|
||||||
shape = "mybricks:brickw_"
|
shape = "mybricks:brickw_"
|
||||||
if inv:is_empty("ingot") then
|
if inv:is_empty("ingot") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if fields["smbrickw"] then
|
if fields["smbrickw"] then
|
||||||
make_ok = "0"
|
make_ok = "0"
|
||||||
anzahl = "1"
|
anzahl = "1"
|
||||||
shape = "mybricks:smbrickw_"
|
shape = "mybricks:smbrickw_"
|
||||||
if inv:is_empty("ingot") then
|
if inv:is_empty("ingot") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if fields["tbrickw"] then
|
if fields["tbrickw"] then
|
||||||
make_ok = "0"
|
make_ok = "0"
|
||||||
anzahl = "1"
|
anzahl = "1"
|
||||||
shape = "mybricks:tbrickw_"
|
shape = "mybricks:tbrickw_"
|
||||||
if inv:is_empty("ingot") then
|
if inv:is_empty("ingot") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if fields["squarew"] then
|
if fields["squarew"] then
|
||||||
make_ok = "0"
|
make_ok = "0"
|
||||||
anzahl = "1"
|
anzahl = "1"
|
||||||
shape = "mybricks:brick_squarew_"
|
shape = "mybricks:brick_squarew_"
|
||||||
if inv:is_empty("ingot") then
|
if inv:is_empty("ingot") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if fields["square_smw"] then
|
if fields["square_smw"] then
|
||||||
make_ok = "0"
|
make_ok = "0"
|
||||||
anzahl = "1"
|
anzahl = "1"
|
||||||
shape = "mybricks:brick_squarew_sm_"
|
shape = "mybricks:brick_squarew_sm_"
|
||||||
if inv:is_empty("ingot") then
|
if inv:is_empty("ingot") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if fields["tilew"] then
|
if fields["tilew"] then
|
||||||
make_ok = "0"
|
make_ok = "0"
|
||||||
anzahl = "1"
|
anzahl = "1"
|
||||||
shape = "mybricks:brick_tilew_"
|
shape = "mybricks:brick_tilew_"
|
||||||
if inv:is_empty("ingot") then
|
if inv:is_empty("ingot") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if fields["splitw"] then
|
if fields["splitw"] then
|
||||||
make_ok = "0"
|
make_ok = "0"
|
||||||
anzahl = "1"
|
anzahl = "1"
|
||||||
shape = "mybricks:brick_splitw_"
|
shape = "mybricks:brick_splitw_"
|
||||||
if inv:is_empty("ingot") then
|
if inv:is_empty("ingot") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if fields["vsplitw"] then
|
if fields["vsplitw"] then
|
||||||
make_ok = "0"
|
make_ok = "0"
|
||||||
anzahl = "1"
|
anzahl = "1"
|
||||||
shape = "mybricks:brick_vsplitw_"
|
shape = "mybricks:brick_vsplitw_"
|
||||||
if inv:is_empty("ingot") then
|
if inv:is_empty("ingot") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local ingotstack = inv:get_stack("ingot", 1)
|
local ingotstack = inv:get_stack("ingot", 1)
|
||||||
local resstack = inv:get_stack("res", 1)
|
local resstack = inv:get_stack("res", 1)
|
||||||
----------------------------------------------------------------------------------
|
|
||||||
--register nodes
|
local mat_tab = {
|
||||||
----------------------------------------------------------------------------------
|
{"default:leaves", "default_leaves"},
|
||||||
|
{"default:jungleleaves", "default_jungleleaves"},
|
||||||
local mat_tab = {
|
{"default:pine_needles", "default_pine_needles"},
|
||||||
{"default:leaves", "default_leaves"},
|
{"default:clay", "default_clay"},
|
||||||
{"default:jungleleaves", "default_jungleleaves"},
|
{"default:coalblock", "default_coal_block"},
|
||||||
{"default:pine_needles", "default_pine_needles"},
|
{"default:cobble", "default_cobble"},
|
||||||
--{"default:brick", "default_brick"},
|
{"default:desert_cobble", "default_desert_cobble"},
|
||||||
--{"default:bronzeblock", "default_bronze_block"},
|
{"default:desert_stone", "default_desert_stone"},
|
||||||
--{"default:cactus", "default_cactus"},
|
{"default:dirt", "default_dirt"},
|
||||||
{"default:clay", "default_clay"},
|
{"default:glass", "default_glass"},
|
||||||
{"default:coalblock", "default_coal_block"},
|
{"default:gravel", "default_gravel"},
|
||||||
{"default:cobble", "default_cobble"},
|
{"default:junglewood", "default_junglewood"},
|
||||||
--{"default:copperblock", "default_copper_block"},
|
{"default:mossycobble", "default_mossycobble"},
|
||||||
{"default:desert_cobble", "default_desert_cobble"},
|
{"default:obsidian", "default_obsidian"},
|
||||||
--{"default:desert_sand", "default_desert_sand"},
|
{"default:pine_wood", "default_pine_wood"},
|
||||||
{"default:desert_stone", "default_desert_stone"},
|
{"default:aspen_wood", "default_aspen_wood"},
|
||||||
--{"default:diamondblock", "default_diamond_block"},
|
{"default:acacia_wood", "default_acacia_wood"},
|
||||||
{"default:dirt", "default_dirt"},
|
{"default:sandstone", "default_sandstone"},
|
||||||
{"default:glass", "default_glass"},
|
{"default:stone", "default_stone"},
|
||||||
--{"default:goldblock", "default_gold_block"},
|
{"default:wood", "default_wood"},
|
||||||
{"default:gravel", "default_gravel"},
|
{"farming:straw", "farming_straw"},
|
||||||
--{"default:ice", "default_ice"},
|
{"wool:black", "wool_black"},
|
||||||
--{"default:jungletree", "default_jungletree"},
|
{"wool:blue", "wool_blue"},
|
||||||
{"default:junglewood", "default_junglewood"},
|
{"wool:brown", "wool_brown"},
|
||||||
--{"default:lava_source", "default_lava"},
|
{"wool:cyan", "wool_cyan"},
|
||||||
--{"default:mese", "default_mese"},
|
{"wool:dark_green", "wool_dark_green"},
|
||||||
{"default:mossycobble", "default_mossycobble"},
|
{"wool:dark_grey", "wool_dark_grey"},
|
||||||
{"default:obsidian", "default_obsidian"},
|
{"wool:green", "wool_green"},
|
||||||
--{"default:obsidian_glass", "default_obsidian_glass"},
|
{"wool:grey", "wool_grey"},
|
||||||
--{"default:obsidianbrick", "default_obsidian_brick"},
|
{"wool:magenta", "wool_magenta"},
|
||||||
--{"default:pine_tree", "default_pine_tree"},
|
{"wool:orange", "wool_orange"},
|
||||||
{"default:pine_wood", "default_pine_wood"},
|
{"wool:pink", "wool_pink"},
|
||||||
{"default:aspen_wood", "default_aspen_wood"},
|
{"wool:red", "wool_red"},
|
||||||
{"default:acacia_wood", "default_acacia_wood"},
|
{"wool:violet", "wool_violet"},
|
||||||
--{"default:sand", "default_sand"},
|
{"wool:white", "wool_white"},
|
||||||
{"default:sandstone", "default_sandstone"},
|
{"wool:yellow", "wool_yellow"},
|
||||||
--{"default:sandstonebrick", "default_sandstone_brick"},
|
|
||||||
--{"default:snowblock", "default_snow"},
|
{"bat_blocks:bat_cobble", "bat_cobble"},
|
||||||
--{"default:steelblock", "default_steel_block"},
|
{"bat_blocks:bat_cobble_white", "bat_cobble_white"},
|
||||||
{"default:stone", "default_stone"},
|
{"bat_blocks:bat_cobble_tan", "bat_cobble_tan"},
|
||||||
--{"default:stonebrick", "default_stone_brick"},
|
{"bat_blocks:bat_pavers", "bat_pavers"},
|
||||||
--{"default:tree", "default_tree"},
|
{"bat_blocks:bat_block", "bat_block"},
|
||||||
--{"default:water_source", "default_water"},
|
{"bat_blocks:bat_tile", "bat_tile"},
|
||||||
{"default:wood", "default_wood"},
|
{"bat_blocks:bat_diag", "bat_diag"},
|
||||||
{"farming:straw", "farming_straw"},
|
{"bat_blocks:bat_x", "bat_x_block"},
|
||||||
{"wool:black", "wool_black"},
|
{"bat_blocks:bat_brick", "bat_brick"},
|
||||||
{"wool:blue", "wool_blue"},
|
{"bat_blocks:bat_smbrick", "bat_smbrick"},
|
||||||
{"wool:brown", "wool_brown"},
|
|
||||||
{"wool:cyan", "wool_cyan"},
|
{"castle:dungeon_stone", "dungeon_stone"},
|
||||||
{"wool:dark_green", "wool_dark_green"},
|
{"castle:pavement", "pavement_brick"},
|
||||||
{"wool:dark_grey", "wool_dark_grey"},
|
{"castle:rubble", "rubble"},
|
||||||
{"wool:green", "wool_green"},
|
{"castle:roofslate", "slate"},
|
||||||
{"wool:grey", "wool_grey"},
|
{"castle:stonewall", "stonewall"},
|
||||||
{"wool:magenta", "wool_magenta"},
|
|
||||||
{"wool:orange", "wool_orange"},
|
{"moreblocks:cactus_brick", "cactus_brick"},
|
||||||
{"wool:pink", "wool_pink"},
|
{"moreblocks:cactus_checker", "cactus_checker"},
|
||||||
{"wool:red", "wool_red"},
|
{"moreblocks:coal_stone_bricks", "coal_stone_bricks"},
|
||||||
{"wool:violet", "wool_violet"},
|
{"moreblocks:circle_stone_bricks", "circle_stone_bricks"},
|
||||||
{"wool:white", "wool_white"},
|
{"moreblocks:iron_checker", "iron_checker"},
|
||||||
{"wool:yellow", "wool_yellow"},
|
{"moreblocks:iron_stone_bricks", "iron_stone_bricks"},
|
||||||
|
{"moreblocks:plankstone", "plankstone"},
|
||||||
--Batmod
|
{"moreblocks:stone_tile", "stone_tile"},
|
||||||
|
{"moreblocks:wood_tile_center", "wood_tile_center"},
|
||||||
{"bat_blocks:bat_cobble", "bat_cobble"},
|
{"moreblocks:wood_tile_full", "wood_tile_full"},
|
||||||
{"bat_blocks:bat_cobble_white", "bat_cobble_white"},
|
|
||||||
{"bat_blocks:bat_cobble_tan", "bat_cobble_tan"},
|
{"moretrees:apple_planks", "apple_tree"},
|
||||||
{"bat_blocks:bat_pavers", "bat_pavers"},
|
{"moretrees:beech_planks", "beech"},
|
||||||
{"bat_blocks:bat_block", "bat_block"},
|
{"moretrees:oak_planks", "oak"},
|
||||||
{"bat_blocks:bat_tile", "bat_tile"},
|
{"moretrees:sequoia_planks", "sequoia"},
|
||||||
{"bat_blocks:bat_diag", "bat_diag"},
|
{"moretrees:birch_planks", "birch"},
|
||||||
{"bat_blocks:bat_x", "bat_x_block"},
|
{"moretrees:palm_planks", "palm"},
|
||||||
{"bat_blocks:bat_brick", "bat_brick"},
|
{"moretrees:spruce_planks", "spruce"},
|
||||||
{"bat_blocks:bat_smbrick", "bat_smbrick"},
|
{"moretrees:willow_planks", "willow"},
|
||||||
|
{"moretrees:rubber_tree_planks", "rubber_tree"},
|
||||||
--castle
|
{"moretrees:fir_planks", "fir"},
|
||||||
|
|
||||||
{"castle:dungeon_stone", "dungeon_stone"},
|
{"hardenedclay:hardened_clay", "hardened_clay"},
|
||||||
{"castle:pavement", "pavement_brick"},
|
{"hardenedclay:hardened_clay_white", "hardened_clay_white"},
|
||||||
{"castle:rubble", "rubble"},
|
{"hardenedclay:hardened_clay_black", "hardened_clay_black"},
|
||||||
{"castle:roofslate", "slate"},
|
{"hardenedclay:hardened_clay_light_blue", "hardened_clay_light_blue"},
|
||||||
{"castle:stonewall", "stonewall"},
|
{"hardenedclay:hardened_clay_green", "hardened_clay_green"},
|
||||||
|
{"hardenedclay:hardened_clay_red", "hardened_clay_red"},
|
||||||
--moreblocks
|
{"hardenedclay:hardened_clay_light_grey", "hardened_clay_light_grey"},
|
||||||
|
{"hardenedclay:hardened_clay_violet", "hardened_clay_violet"},
|
||||||
{"moreblocks:cactus_brick", "cactus_brick"},
|
{"hardenedclay:hardened_clay_lime", "hardened_clay_lime"},
|
||||||
{"moreblocks:cactus_checker", "cactus_checker"},
|
{"hardenedclay:hardened_clay_magenta", "hardened_clay_magenta"},
|
||||||
{"moreblocks:coal_stone_bricks", "coal_stone_bricks"},
|
{"hardenedclay:hardened_clay_orange", "hardened_clay_orange"},
|
||||||
{"moreblocks:circle_stone_bricks", "circle_stone_bricks"},
|
{"hardenedclay:hardened_clay_brown", "hardened_clay_brown"},
|
||||||
{"moreblocks:iron_checker", "iron_checker"},
|
{"hardenedclay:hardened_clay_blue", "hardened_clay_blue"},
|
||||||
{"moreblocks:iron_stone_bricks", "iron_stone_bricks"},
|
{"hardenedclay:hardened_clay_yellow", "hardened_clay_yellow"},
|
||||||
{"moreblocks:plankstone", "plankstone"},
|
{"hardenedclay:hardened_clay_pink", "hardened_clay_pink"},
|
||||||
{"moreblocks:stone_tile", "stone_tile"},
|
{"hardenedclay:hardened_clay_cyan", "hardened_clay_cyan"},
|
||||||
{"moreblocks:wood_tile_center", "wood_tile_center"},
|
{"hardenedclay:hardened_clay_grey", "hardened_clay_grey"},
|
||||||
{"moreblocks:wood_tile_full", "wood_tile_full"},
|
|
||||||
|
{"ores:slate", "slate"},
|
||||||
--moretrees
|
{"ores:silt", "silt"},
|
||||||
|
{"ores:shale", "shale"},
|
||||||
{"moretrees:apple_planks", "apple_tree"},
|
{"ores:schist", "schist"},
|
||||||
{"moretrees:beech_planks", "beech"},
|
{"ores:redsandstone", "redsandstone"},
|
||||||
{"moretrees:oak_planks", "oak"},
|
{"ores:gneiss", "gneiss"},
|
||||||
{"moretrees:sequoia_planks", "sequoia"},
|
{"ores:basalt", "basalt"},
|
||||||
{"moretrees:birch_planks", "birch"},
|
{"ores:granite", "granite"},
|
||||||
{"moretrees:palm_planks", "palm"},
|
{"ores:marble", "marble"},
|
||||||
{"moretrees:spruce_planks", "spruce"},
|
}
|
||||||
{"moretrees:willow_planks", "willow"},
|
|
||||||
{"moretrees:rubber_tree_planks","rubber_tree"},
|
for i in ipairs (mat_tab) do
|
||||||
{"moretrees:fir_planks", "fir"},
|
local titem = mat_tab[i][1]
|
||||||
|
local tmat = mat_tab[i][2]
|
||||||
--hardened clay
|
|
||||||
|
if ingotstack:get_name()==titem then
|
||||||
{"hardenedclay:hardened_clay" , "hardened_clay"},
|
mater = tmat
|
||||||
{"hardenedclay:hardened_clay_white" , "hardened_clay_white"},
|
make_ok = "1"
|
||||||
{"hardenedclay:hardened_clay_black" , "hardened_clay_black"},
|
end
|
||||||
{"hardenedclay:hardened_clay_light_blue" , "hardened_clay_light_blue"},
|
end
|
||||||
{"hardenedclay:hardened_clay_green" , "hardened_clay_green"},
|
|
||||||
{"hardenedclay:hardened_clay_red" , "hardened_clay_red"},
|
if sender:get_player_name() == meta:get_string("owner") and
|
||||||
{"hardenedclay:hardened_clay_light_grey" , "hardened_clay_light_grey"},
|
make_ok == "1" then
|
||||||
{"hardenedclay:hardened_clay_violet" , "hardened_clay_violet"},
|
local give = {}
|
||||||
{"hardenedclay:hardened_clay_lime" , "hardened_clay_lime"},
|
for i = 0, anzahl-1 do
|
||||||
{"hardenedclay:hardened_clay_magenta" , "hardened_clay_magenta"},
|
give[i+1]=inv:add_item("res",shape..mater)
|
||||||
{"hardenedclay:hardened_clay_orange" , "hardened_clay_orange"},
|
end
|
||||||
{"hardenedclay:hardened_clay_brown" , "hardened_clay_brown"},
|
ingotstack:take_item()
|
||||||
{"hardenedclay:hardened_clay_blue" , "hardened_clay_blue"},
|
inv:set_stack("ingot",1,ingotstack)
|
||||||
{"hardenedclay:hardened_clay_yellow" , "hardened_clay_yellow"},
|
|
||||||
{"hardenedclay:hardened_clay_pink" , "hardened_clay_pink"},
|
|
||||||
{"hardenedclay:hardened_clay_cyan" , "hardened_clay_cyan"},
|
|
||||||
{"hardenedclay:hardened_clay_grey" , "hardened_clay_grey"},
|
|
||||||
--Ores
|
|
||||||
|
|
||||||
{"ores:slate", "slate"},
|
|
||||||
{"ores:silt", "silt"},
|
|
||||||
{"ores:shale", "shale"},
|
|
||||||
{"ores:schist", "schist"},
|
|
||||||
{"ores:redsandstone", "redsandstone"},
|
|
||||||
{"ores:gneiss", "gneiss"},
|
|
||||||
{"ores:basalt", "basalt"},
|
|
||||||
{"ores:granite", "granite"},
|
|
||||||
{"ores:marble", "marble"},
|
|
||||||
|
|
||||||
}
|
|
||||||
for i in ipairs (mat_tab) do
|
|
||||||
local titem = mat_tab[i][1]
|
|
||||||
local tmat = mat_tab[i][2]
|
|
||||||
|
|
||||||
if ingotstack:get_name()==titem then
|
|
||||||
mater = tmat
|
|
||||||
make_ok = "1"
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
end
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
|
|
||||||
if sender:get_player_name() == meta:get_string("owner") and
|
|
||||||
make_ok == "1" then
|
|
||||||
local give = {}
|
|
||||||
for i = 0, anzahl-1 do
|
|
||||||
give[i+1]=inv:add_item("res",shape..mater)
|
|
||||||
end
|
end
|
||||||
ingotstack:take_item()
|
|
||||||
inv:set_stack("ingot",1,ingotstack)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
--Craft
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'mybricks:machine',
|
output = 'mybricks:machine',
|
||||||
recipe = {
|
recipe = {
|
||||||
|
|
18
ores.lua
18
ores.lua
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"slate",
|
"slate",
|
||||||
"Slate",
|
"Slate",
|
||||||
"ores_slate.png",
|
"ores_slate.png",
|
||||||
|
@ -8,7 +8,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"ores:slate",
|
"ores:slate",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"silt",
|
"silt",
|
||||||
"Silt",
|
"Silt",
|
||||||
"ores_silt.png",
|
"ores_silt.png",
|
||||||
|
@ -16,7 +16,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"ores:silt",
|
"ores:silt",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"shale",
|
"shale",
|
||||||
"Shale",
|
"Shale",
|
||||||
"ores_shale.png",
|
"ores_shale.png",
|
||||||
|
@ -24,7 +24,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"ores:shale",
|
"ores:shale",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"schist",
|
"schist",
|
||||||
"Schist",
|
"Schist",
|
||||||
"ores_schist.png",
|
"ores_schist.png",
|
||||||
|
@ -32,7 +32,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"ores:schist",
|
"ores:schist",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"redsandstone",
|
"redsandstone",
|
||||||
"Red Sandstone",
|
"Red Sandstone",
|
||||||
"ores_redsandstone.png",
|
"ores_redsandstone.png",
|
||||||
|
@ -40,7 +40,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"ores:redsandstone",
|
"ores:redsandstone",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"gneiss",
|
"gneiss",
|
||||||
"Gneiss",
|
"Gneiss",
|
||||||
"ores_gneiss.png",
|
"ores_gneiss.png",
|
||||||
|
@ -48,7 +48,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"ores:gneiss",
|
"ores:gneiss",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"basalt",
|
"basalt",
|
||||||
"Basalt",
|
"Basalt",
|
||||||
"ores_basalt.png",
|
"ores_basalt.png",
|
||||||
|
@ -56,7 +56,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"ores:basalt",
|
"ores:basalt",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"granite",
|
"granite",
|
||||||
"Granite",
|
"Granite",
|
||||||
"ores_granite.png",
|
"ores_granite.png",
|
||||||
|
@ -64,7 +64,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"ores:granite",
|
"ores:granite",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"marble",
|
"marble",
|
||||||
"Marble",
|
"Marble",
|
||||||
"ores_marble.png",
|
"ores_marble.png",
|
||||||
|
|
353
register.lua
353
register.lua
|
@ -1,5 +1,5 @@
|
||||||
---[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"default_sandstone",
|
"default_sandstone",
|
||||||
"Sandstone",
|
"Sandstone",
|
||||||
"default_sandstone.png",
|
"default_sandstone.png",
|
||||||
|
@ -7,19 +7,8 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"default:sandstone",
|
"default:sandstone",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
--]]
|
|
||||||
--[[
|
mybricks.register_block(
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_desert_sand",
|
|
||||||
"Desert Sand",
|
|
||||||
"default_desert_sand.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:desert_sand",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
---[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_clay",
|
"default_clay",
|
||||||
"Clay",
|
"Clay",
|
||||||
"default_clay.png",
|
"default_clay.png",
|
||||||
|
@ -27,9 +16,8 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"default:clay",
|
"default:clay",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
--]]
|
|
||||||
---[[
|
mybricks.register_block(
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_cobble",
|
"default_cobble",
|
||||||
"Cobble",
|
"Cobble",
|
||||||
"default_cobble.png",
|
"default_cobble.png",
|
||||||
|
@ -37,9 +25,8 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"default:cobble",
|
"default:cobble",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
--]]
|
|
||||||
---[[
|
mybricks.register_block(
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_stone",
|
"default_stone",
|
||||||
"Stone",
|
"Stone",
|
||||||
"default_stone.png",
|
"default_stone.png",
|
||||||
|
@ -47,29 +34,8 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"default:stone",
|
"default:stone",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
--]]
|
|
||||||
--[[
|
mybricks.register_block(
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_cactus",
|
|
||||||
"Cactus",
|
|
||||||
"default_cactus_side.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:cactus",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
--[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_sand",
|
|
||||||
"Sand",
|
|
||||||
"default_sand.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:sand",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
---[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_desert_stone",
|
"default_desert_stone",
|
||||||
"Desert Stone",
|
"Desert Stone",
|
||||||
"default_desert_stone.png",
|
"default_desert_stone.png",
|
||||||
|
@ -77,9 +43,8 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"default:desert_stone",
|
"default:desert_stone",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
--]]
|
|
||||||
---[[
|
mybricks.register_block(
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_wood",
|
"default_wood",
|
||||||
"Wood",
|
"Wood",
|
||||||
"default_wood.png",
|
"default_wood.png",
|
||||||
|
@ -87,9 +52,8 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"default:wood",
|
"default:wood",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
--]]
|
|
||||||
---[[
|
mybricks.register_block(
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_pine_wood",
|
"default_pine_wood",
|
||||||
"Pine Wood",
|
"Pine Wood",
|
||||||
"default_pine_wood.png",
|
"default_pine_wood.png",
|
||||||
|
@ -97,9 +61,8 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"default:pine_wood",
|
"default:pine_wood",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
--]]
|
|
||||||
---[[
|
mybricks.register_block(
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_aspen_wood",
|
"default_aspen_wood",
|
||||||
"Aspen Wood",
|
"Aspen Wood",
|
||||||
"default_aspen_wood.png",
|
"default_aspen_wood.png",
|
||||||
|
@ -107,9 +70,8 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"default:aspen_wood",
|
"default:aspen_wood",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
--]]
|
|
||||||
---[[
|
mybricks.register_block(
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_acacia_wood",
|
"default_acacia_wood",
|
||||||
"Acacia Wood",
|
"Acacia Wood",
|
||||||
"default_acacia_wood.png",
|
"default_acacia_wood.png",
|
||||||
|
@ -117,9 +79,8 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"default:acacia_wood",
|
"default:acacia_wood",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
--]]
|
|
||||||
---[[
|
mybricks.register_block(
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_dirt",
|
"default_dirt",
|
||||||
"Dirt",
|
"Dirt",
|
||||||
"default_dirt.png",
|
"default_dirt.png",
|
||||||
|
@ -127,29 +88,8 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"default:dirt",
|
"default:dirt",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
--]]
|
|
||||||
--[[
|
mybricks.register_block(
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_brick",
|
|
||||||
"Brick",
|
|
||||||
"default_brick.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:brick",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
--[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_bronze_block",
|
|
||||||
"Bronze Block",
|
|
||||||
"default_bronze_block.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:bronzeblock",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
---[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_coal_block",
|
"default_coal_block",
|
||||||
"Coal Block",
|
"Coal Block",
|
||||||
"default_coal_block.png",
|
"default_coal_block.png",
|
||||||
|
@ -157,19 +97,8 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"default:coalblock",
|
"default:coalblock",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
--]]
|
|
||||||
--[[
|
mybricks.register_block(
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_copper_block",
|
|
||||||
"Copper Block",
|
|
||||||
"default_copper_block.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:copperblock",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
---[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_desert_cobble",
|
"default_desert_cobble",
|
||||||
"Desert Cobble",
|
"Desert Cobble",
|
||||||
"default_desert_cobble.png",
|
"default_desert_cobble.png",
|
||||||
|
@ -177,19 +106,8 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"default:desert_cobble",
|
"default:desert_cobble",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
--]]
|
|
||||||
--[[
|
mybricks.register_block(
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_diamond_block",
|
|
||||||
"Diamond Block",
|
|
||||||
"default_diamond_block.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:diamondblock",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
---[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_glass",
|
"default_glass",
|
||||||
"Glass",
|
"Glass",
|
||||||
"default_glass.png",
|
"default_glass.png",
|
||||||
|
@ -197,19 +115,8 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"default:glass",
|
"default:glass",
|
||||||
"glasslike"
|
"glasslike"
|
||||||
)
|
)
|
||||||
--]]
|
|
||||||
--[[
|
mybricks.register_block(
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_gold_block",
|
|
||||||
"Gold Block",
|
|
||||||
"default_gold_block.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:goldblock",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
---[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_gravel",
|
"default_gravel",
|
||||||
"Gravel",
|
"Gravel",
|
||||||
"default_gravel.png",
|
"default_gravel.png",
|
||||||
|
@ -217,29 +124,8 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"default:gravel",
|
"default:gravel",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
--]]
|
|
||||||
--[[
|
mybricks.register_block(
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_ice",
|
|
||||||
"Ice",
|
|
||||||
"default_ice.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:ice",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
--[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_jungletree",
|
|
||||||
"Jungle Tree",
|
|
||||||
"default_jungletree.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:jungletree",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
---[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_junglewood",
|
"default_junglewood",
|
||||||
"Jungle Wood",
|
"Jungle Wood",
|
||||||
"default_junglewood.png",
|
"default_junglewood.png",
|
||||||
|
@ -247,29 +133,8 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"default:junglewood",
|
"default:junglewood",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
--]]
|
|
||||||
--[[
|
mybricks.register_block(
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_lava",
|
|
||||||
"Lava",
|
|
||||||
"default_lava.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:lava_source",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
--[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_mese",
|
|
||||||
"Mese",
|
|
||||||
"default_mese_block.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:mese",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
---[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_mossycobble",
|
"default_mossycobble",
|
||||||
"Mossy Cobble",
|
"Mossy Cobble",
|
||||||
"default_mossycobble.png",
|
"default_mossycobble.png",
|
||||||
|
@ -277,9 +142,8 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"default:mossycobble",
|
"default:mossycobble",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
--]]
|
|
||||||
---[[
|
mybricks.register_block(
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_obsidian",
|
"default_obsidian",
|
||||||
"Obsidian",
|
"Obsidian",
|
||||||
"default_obsidian.png",
|
"default_obsidian.png",
|
||||||
|
@ -287,119 +151,8 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"default:obsidian",
|
"default:obsidian",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
--]]
|
|
||||||
--[[
|
mybricks.register_block(
|
||||||
mybricks.register_block(--material, description, image, groups, craft item, drawtype
|
|
||||||
"default_obsidian_glass",
|
|
||||||
"Obsidian Glass",
|
|
||||||
"default_obsidian_glass.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:obsidian_glass",
|
|
||||||
"glasslike"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
--[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_obsidian_brick",
|
|
||||||
"Obsidian Brick",
|
|
||||||
"default_obsidian_brick.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:obsidianbrick",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
--[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_pine_tree",
|
|
||||||
"Pine Tree",
|
|
||||||
"default_pine_tree.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:pine_tree",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
--[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_aspen_tree",
|
|
||||||
"Aspen Tree",
|
|
||||||
"default_aspen_tree.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:aspen_tree",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
--[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_acacia_tree",
|
|
||||||
"Acacia Tree",
|
|
||||||
"default_acacia_tree.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:acacia_tree",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
--[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_sandstone_brick",
|
|
||||||
"Sandstone Brick",
|
|
||||||
"default_sandstone_brick.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:sandstonebrick",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
--[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_snow",
|
|
||||||
"Snow",
|
|
||||||
"default_snow.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:snowblock",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
--[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_steel_block",
|
|
||||||
"Steel Block",
|
|
||||||
"default_steel_block.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:steelblock",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
--[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_stone_brick",
|
|
||||||
"Stone Brick",
|
|
||||||
"default_stone_brick.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:stonebrick",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
--[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_tree",
|
|
||||||
"Tree",
|
|
||||||
"default_tree.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:tree",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
--[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"default_water",
|
|
||||||
"Water",
|
|
||||||
"default_water.png",
|
|
||||||
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
|
|
||||||
"default:water_source",
|
|
||||||
"normal"
|
|
||||||
)
|
|
||||||
--]]
|
|
||||||
---[[
|
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"farming_straw",
|
"farming_straw",
|
||||||
"Straw",
|
"Straw",
|
||||||
"farming_straw.png",
|
"farming_straw.png",
|
||||||
|
@ -407,14 +160,10 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"farming:straw",
|
"farming:straw",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
--]]
|
|
||||||
|
|
||||||
|
|
||||||
-----------------------------------------------------------------------------------------------------
|
|
||||||
--wool
|
--wool
|
||||||
|
|
||||||
|
mybricks.register_block(
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
|
||||||
"wool_white",
|
"wool_white",
|
||||||
"White Wool",
|
"White Wool",
|
||||||
"wool_white.png",
|
"wool_white.png",
|
||||||
|
@ -422,7 +171,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"wool:white",
|
"wool:white",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"wool_black",
|
"wool_black",
|
||||||
"Black Wool",
|
"Black Wool",
|
||||||
"wool_black.png",
|
"wool_black.png",
|
||||||
|
@ -430,7 +179,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"wool:black",
|
"wool:black",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"wool_blue",
|
"wool_blue",
|
||||||
"Blue Wool",
|
"Blue Wool",
|
||||||
"wool_blue.png",
|
"wool_blue.png",
|
||||||
|
@ -438,7 +187,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"wool:blue",
|
"wool:blue",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"wool_brown",
|
"wool_brown",
|
||||||
"Brown Wool",
|
"Brown Wool",
|
||||||
"wool_brown.png",
|
"wool_brown.png",
|
||||||
|
@ -446,7 +195,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"wool:brown",
|
"wool:brown",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"wool_cyan",
|
"wool_cyan",
|
||||||
"Cyan Wool",
|
"Cyan Wool",
|
||||||
"wool_cyan.png",
|
"wool_cyan.png",
|
||||||
|
@ -454,7 +203,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"wool:cyan",
|
"wool:cyan",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"wool_dark_green",
|
"wool_dark_green",
|
||||||
"Dark Green Wool",
|
"Dark Green Wool",
|
||||||
"wool_dark_green.png",
|
"wool_dark_green.png",
|
||||||
|
@ -462,7 +211,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"wool:dark_green",
|
"wool:dark_green",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"wool_dark_grey",
|
"wool_dark_grey",
|
||||||
"Dark Grey Wool",
|
"Dark Grey Wool",
|
||||||
"wool_dark_grey.png",
|
"wool_dark_grey.png",
|
||||||
|
@ -470,7 +219,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"wool:dark_grey",
|
"wool:dark_grey",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"wool_green",
|
"wool_green",
|
||||||
"Green Wool",
|
"Green Wool",
|
||||||
"wool_green.png",
|
"wool_green.png",
|
||||||
|
@ -478,7 +227,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"wool:green",
|
"wool:green",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"wool_grey",
|
"wool_grey",
|
||||||
"Grey Wool",
|
"Grey Wool",
|
||||||
"wool_grey.png",
|
"wool_grey.png",
|
||||||
|
@ -486,7 +235,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"wool:grey",
|
"wool:grey",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"wool_magenta",
|
"wool_magenta",
|
||||||
"Magenta Wool",
|
"Magenta Wool",
|
||||||
"wool_magenta.png",
|
"wool_magenta.png",
|
||||||
|
@ -494,7 +243,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"wool:magenta",
|
"wool:magenta",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"wool_orange",
|
"wool_orange",
|
||||||
"Orange Wool",
|
"Orange Wool",
|
||||||
"wool_orange.png",
|
"wool_orange.png",
|
||||||
|
@ -502,7 +251,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"wool:orange",
|
"wool:orange",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"wool_pink",
|
"wool_pink",
|
||||||
"Pink Wool",
|
"Pink Wool",
|
||||||
"wool_pink.png",
|
"wool_pink.png",
|
||||||
|
@ -510,7 +259,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"wool:pink",
|
"wool:pink",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"wool_red",
|
"wool_red",
|
||||||
"Red Wool",
|
"Red Wool",
|
||||||
"wool_red.png",
|
"wool_red.png",
|
||||||
|
@ -518,7 +267,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"wool:red",
|
"wool:red",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"wool_violet",
|
"wool_violet",
|
||||||
"Violet Wool",
|
"Violet Wool",
|
||||||
"wool_violet.png",
|
"wool_violet.png",
|
||||||
|
@ -526,7 +275,7 @@ mybricks.register_block(--material, description, image, groups, craft item
|
||||||
"wool:violet",
|
"wool:violet",
|
||||||
"normal"
|
"normal"
|
||||||
)
|
)
|
||||||
mybricks.register_block(--material, description, image, groups, craft item
|
mybricks.register_block(
|
||||||
"wool_yellow",
|
"wool_yellow",
|
||||||
"Yellow Wool",
|
"Yellow Wool",
|
||||||
"wool_yellow.png",
|
"wool_yellow.png",
|
||||||
|
|
Loading…
Reference in New Issue