First Upload

This commit is contained in:
DonBatman 2015-03-23 20:03:44 -07:00
commit 8c51887c0a
22 changed files with 1107 additions and 0 deletions

1
depends.txt Normal file
View File

@ -0,0 +1 @@
default

12
init.lua Normal file
View File

@ -0,0 +1,12 @@
myholeinthewall = {}
dofile(minetest.get_modpath("myholeinthewall").."/nodes.lua")
dofile(minetest.get_modpath("myholeinthewall").."/machine.lua")
dofile(minetest.get_modpath("myholeinthewall").."/register.lua")

436
machine.lua Normal file
View File

@ -0,0 +1,436 @@
local material = {}
local shape = {}
local make_ok = {}
local anzahl = {}
minetest.register_node("myholeinthewall:machine", {
description = "Hole Machine",
tiles = {"myholeinthewall_sand.png"
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky=2},
node_box = {
type = "fixed",
fixed = {
{-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5}, -- NodeBox1
{0.375, -0.5, -0.5, 0.5, 0.5, -0.375}, -- NodeBox2
{-0.5, -0.5, -0.5, -0.375, 0.5, -0.375}, -- NodeBox3
{-0.5, -0.5, -0.5, 0.5, 0.0625, 0.5}, -- NodeBox4
{-0.5, -0.5, 0.375, -0.375, 0.5, 0.5}, -- NodeBox5
{0.375, -0.5, 0.375, 0.5, 0.5, 0.5}, -- NodeBox6
{-0.0625, 0.0625, -0.25, 0, 0.1875, 0.25}, -- NodeBox7
{-0.0625, 0.0625, -0.125, 0, 0.25, 0.125}, -- NodeBox8
}
},
after_place_node = function(pos, placer)
local meta = minetest.env:get_meta(pos);
meta:set_string("owner", (placer:get_player_name() or ""));
meta:set_string("infotext", "Hole Machine is empty (owned by " .. (placer:get_player_name() or "") .. ")");
end,
can_dig = function(pos,player)
local meta = minetest.env:get_meta(pos);
local inv = meta:get_inventory()
if not inv:is_empty("ingot") then
return false
elseif not inv:is_empty("res") then
return false
end
return true
end,
on_construct = function(pos)
local meta = minetest.env:get_meta(pos)
meta:set_string("formspec", "invsize[8,9;]"..
"background[-0.15,-0.25;8.40,9.75;myholeinthewall_background.png]"..
"list[current_name;ingot;5.5,1;1,1;]"..
"list[current_name;res;5.5,3;1,1;]"..
"label[5.5,0.5;Input:]"..
"label[5.5,2.5;Output:]"..
"label[0,0;Choose Hole:]"..
-- Column 1
"image_button[1,1;1,1;myholeinthewall_mach1.png;diamond; ]"..
"image_button[1,2;1,1;myholeinthewall_mach2.png;diamondr; ]"..
"image_button[1,3;1,1;myholeinthewall_mach3.png;x; ]"..
-- Column 2
"image_button[2.5,1;1,1;myholeinthewall_mach4.png;cross; ]"..
"image_button[2.5,2;1,1;myholeinthewall_mach5.png;crossi; ]"..
"image_button[2.5,3;1,1;myholeinthewall_mach6.png;o; ]"..
"list[current_player;main;0,5;8,4;]")
meta:set_string("infotext", "Brick Machine")
local inv = meta:get_inventory()
inv:set_size("ingot", 1)
inv:set_size("res", 1)
end,
on_receive_fields = function(pos, formname, fields, sender)
local meta = minetest.env:get_meta(pos)
local inv = meta:get_inventory()
if fields["diamond"]
or fields["diamondr"]
or fields["x"]
or fields["cross"]
or fields["crossi"]
or fields["o"]
then
if fields["diamond"] then
make_ok = "0"
anzahl = "1"
shape = "myholeinthewall:diamond_"
if inv:is_empty("ingot") then
return
end
end
if fields["diamondr"] then
make_ok = "0"
anzahl = "1"
shape = "myholeinthewall:diamond_rough_"
if inv:is_empty("ingot") then
return
end
end
if fields["x"] then
make_ok = "0"
anzahl = "1"
shape = "myholeinthewall:x_"
if inv:is_empty("ingot") then
return
end
end
if fields["cross"] then
make_ok = "0"
anzahl = "1"
shape = "myholeinthewall:cross_"
if inv:is_empty("ingot") then
return
end
end
if fields["crossi"] then
make_ok = "0"
anzahl = "1"
shape = "myholeinthewall:cross_iron_"
if inv:is_empty("ingot") then
return
end
end
if fields["o"] then
make_ok = "0"
anzahl = "1"
shape = "myholeinthewall:o_"
if inv:is_empty("ingot") then
return
end
end
local ingotstack = inv:get_stack("ingot", 1)
local resstack = inv:get_stack("res", 1)
----------------------------------------------------------------------------------
--register nodes
----------------------------------------------------------------------------------
if ingotstack:get_name()=="default:sandstone" then
material = "default_sandstone"
make_ok = "1"
end
if ingotstack:get_name()=="default:desert_sand" then
material = "default_desert_sand"
make_ok = "1"
end
if ingotstack:get_name()=="default:clay" then
material = "default_clay"
make_ok = "1"
end
if ingotstack:get_name()=="wool:white" then
material = "millwork_white"
make_ok = "1"
end
if ingotstack:get_name()=="default:desert_stone" then
material = "default_desert_stone"
make_ok = "1"
end
if ingotstack:get_name()=="default:cobble" then
material = "default_cobble"
make_ok = "1"
end
if ingotstack:get_name()=="default:stone" then
material = "default_stone"
make_ok = "1"
end
if ingotstack:get_name()=="default:cactus" then
material = "default_cactus"
make_ok = "1"
end
if ingotstack:get_name()=="wool:white" then
material = "millwork_white"
make_ok = "1"
end
if ingotstack:get_name()=="default:sand" then
material = "default_sand"
make_ok = "1"
end
if ingotstack:get_name()=="default:wood" then
material = "default_wood"
make_ok = "1"
end
if ingotstack:get_name()=="default:pinewood" then
material = "default_pinewood"
make_ok = "1"
end
if ingotstack:get_name()=="default:dirt" then
material = "default_dirt"
make_ok = "1"
end
if ingotstack:get_name()=="default:brick" then
material = "default_brick"
make_ok = "1"
end
if ingotstack:get_name()=="default:bronzeblock" then
material = "default_bronze_block"
make_ok = "1"
end
if ingotstack:get_name()=="default:coalblock" then
material = "default_coal_block"
make_ok = "1"
end
if ingotstack:get_name()=="default:copperblock" then
material = "default_copper_block"
make_ok = "1"
end
if ingotstack:get_name()=="default:desert_cobble" then
material = "default_desert_cobble"
make_ok = "1"
end
if ingotstack:get_name()=="default:diamondblock" then
material = "default_diamond_block"
make_ok = "1"
end
if ingotstack:get_name()=="default:glass" then
material = "default_glass"
make_ok = "1"
end
if ingotstack:get_name()=="default:goldblock" then
material = "default_gold_block"
make_ok = "1"
end
if ingotstack:get_name()=="default:gravel" then
material = "default_gravel"
make_ok = "1"
end
if ingotstack:get_name()=="default:ice" then
material = "default_ice"
make_ok = "1"
end
if ingotstack:get_name()=="default:jungletree" then
material = "default_jungletree"
make_ok = "1"
end
if ingotstack:get_name()=="default:junglewood" then
material = "default_junglewood"
make_ok = "1"
end
if ingotstack:get_name()=="default:lava_source" then
material = "default_lava"
make_ok = "1"
end
if ingotstack:get_name()=="default:mese" then
material = "default_mese"
make_ok = "1"
end
if ingotstack:get_name()=="default:mossycobble" then
material = "default_mossycobble"
make_ok = "1"
end
if ingotstack:get_name()=="default:obsidian" then
material = "default_obsidian"
make_ok = "1"
end
if ingotstack:get_name()=="default:obsidian_glass" then
material = "default_obsidian_glass"
make_ok = "1"
end
if ingotstack:get_name()=="default:obsidianbrick" then
material = "default_obsidian_brick"
make_ok = "1"
end
if ingotstack:get_name()=="default:pinetree" then
material = "default_pinetree"
make_ok = "1"
end
if ingotstack:get_name()=="default:sanddstonebrick" then
material = "default_sandstone_brick"
make_ok = "1"
end
if ingotstack:get_name()=="default:snowblock" then
material = "default_snow"
make_ok = "1"
end
if ingotstack:get_name()=="default:steelblock" then
material = "default_steel_block"
make_ok = "1"
end
if ingotstack:get_name()=="default:stonebrick" then
material = "default_stone_brick"
make_ok = "1"
end
if ingotstack:get_name()=="default:tree" then
material = "default_tree"
make_ok = "1"
end
if ingotstack:get_name()=="default:water_source" then
material = "default_water"
make_ok = "1"
end
if ingotstack:get_name()=="farming:straw" then
material = "farming_straw"
make_ok = "1"
end
----------------------------------------------------------------------------
--wool
if ingotstack:get_name()=="wool:white" then
material = "wool_white"
make_ok = "1"
end
if ingotstack:get_name()=="wool:black" then
material = "wool_black"
make_ok = "1"
end
if ingotstack:get_name()=="wool:blue" then
material = "wool_blue"
make_ok = "1"
end
if ingotstack:get_name()=="wool:brown" then
material = "wool_brown"
make_ok = "1"
end
if ingotstack:get_name()=="wool:cyan" then
material = "wool_cyan"
make_ok = "1"
end
if ingotstack:get_name()=="wool:dark_green" then
material = "wool_dark_green"
make_ok = "1"
end
if ingotstack:get_name()=="wool:dark_grey" then
material = "wool_dark_grey"
make_ok = "1"
end
if ingotstack:get_name()=="wool:green" then
material = "wool_green"
make_ok = "1"
end
if ingotstack:get_name()=="wool:grey" then
material = "wool_grey"
make_ok = "1"
end
if ingotstack:get_name()=="wool:magenta" then
material = "wool_magenta"
make_ok = "1"
end
if ingotstack:get_name()=="wool:orange" then
material = "wool_orange"
make_ok = "1"
end
if ingotstack:get_name()=="wool:pink" then
material = "wool_pink"
make_ok = "1"
end
if ingotstack:get_name()=="wool:red" then
material = "wool_red"
make_ok = "1"
end
if ingotstack:get_name()=="wool:violet" then
material = "wool_violet"
make_ok = "1"
end
if ingotstack:get_name()=="wool:yellow" then
material = "wool_yellow"
make_ok = "1"
end
----------------------------------------------------------------------
if make_ok == "1" then
local give = {}
for i = 0, anzahl-1 do
give[i+1]=inv:add_item("res",shape..material)
end
ingotstack:take_item()
inv:set_stack("ingot",1,ingotstack)
end
end
end
})
--Craft
minetest.register_craft({
output = 'myholeinthewall:machine',
recipe = {
{'default:sand', 'default:brick', 'default:sand'},
{'default:brick', 'default:steel_ingot', 'default:brick'},
{'default:sand', "default:brick", 'default:sand'},
},
})

231
nodes.lua Normal file
View File

@ -0,0 +1,231 @@
function myholeinthewall.register_all(mat, desc, image, mygroups, craft, drawtype)
minetest.register_node("myholeinthewall:diamond_"..mat,{
-- description = desc.." Diamond",
tiles = {image},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
groups = {crumbly = 1},
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
{-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5},
{-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5},
{0.4375, -0.5, -0.5, 0.5, 0.5, 0.5},
{0.125, -0.5, -0.5, 0.5, -0.3125, 0.5},
{-0.5, -0.5, -0.5, -0.125, -0.3125, 0.5},
{-0.5, 0.3125, -0.5, -0.125, 0.5, 0.5},
{0.125, 0.3125, -0.5, 0.5, 0.5, 0.5},
{0.1875, -0.5, -0.5, 0.5, -0.25, 0.5},
{0.25, -0.5, -0.5, 0.5, -0.1875, 0.5},
{0.3125, -0.5, -0.5, 0.5, -0.125, 0.5},
{-0.5, -0.5, -0.5, -0.1875, -0.25, 0.5},
{-0.5, -0.5, -0.5, -0.25, -0.1875, 0.5},
{-0.5, -0.5, -0.5, -0.3125, -0.125, 0.5},
{-0.5, 0.25, -0.5, -0.1875, 0.5, 0.5},
{-0.5, 0.1875, -0.5, -0.25, 0.5, 0.5},
{-0.5, 0.125, -0.5, -0.3125, 0.5, 0.5},
{0.1875, 0.25, -0.5, 0.5, 0.5, 0.5},
{0.25, 0.1875, -0.5, 0.5, 0.5, 0.5},
{0.3125, 0.125, -0.5, 0.5, 0.5, 0.5},
{0.0625, -0.5, -0.5, 0.5, -0.375, 0.5},
{-0.5, -0.5, -0.5, -0.0625, -0.375, 0.5},
{-0.5, 0.0625, -0.5, -0.375, 0.5, 0.5},
{-0.5, -0.5, -0.5, -0.375, -0.0625, 0.5},
{-0.5, 0.375, -0.5, -0.0625, 0.5, 0.5},
{0.0625, 0.375, -0.5, 0.5, 0.5, 0.5},
{0.375, -0.5, -0.5, 0.5, -0.0625, 0.5},
{0.375, 0.0625, -0.5, 0.5, 0.5, 0.5},
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.5,0.5,0.5,0.5},
}
},
on_place = minetest.rotate_node,
})
minetest.register_node("myholeinthewall:diamond_rough_"..mat,{
-- description = desc.." Rough Diamond",
tiles = {image},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
groups = {crumbly = 1},
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
{-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5},
{-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5},
{0.4375, -0.5, -0.5, 0.5, 0.5, 0.5},
{0.0625, -0.5, -0.5, 0.5, -0.3125, 0.5},
{-0.5, -0.5, -0.5, -0.0625, -0.3125, 0.5},
{-0.5, 0.3125, -0.5, -0.0625, 0.5, 0.5},
{0.0625, 0.3125, -0.5, 0.5, 0.5, 0.5},
{0.1875, -0.5, -0.5, 0.5, -0.1875, 0.5},
{0.3125, -0.5, -0.5, 0.5, -0.0625, 0.5},
{-0.5, -0.5, -0.5, -0.1875, -0.1875, 0.5},
{-0.5, -0.5, -0.5, -0.3125, -0.0625, 0.5},
{-0.5, 0.1875, -0.5, -0.1875, 0.5, 0.5},
{-0.5, 0.0625, -0.5, -0.3125, 0.5, 0.5},
{0.1875, 0.1875, -0.5, 0.5, 0.5, 0.5},
{0.3125, 0.0625, -0.5, 0.5, 0.5, 0.5},
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.5,0.5,0.5,0.5},
}
},
on_place = minetest.rotate_node,
})
minetest.register_node("myholeinthewall:cross_"..mat,{
-- description = desc.." Cross",
tiles = {image},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
groups = {crumbly = 1},
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
{-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5},
{-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5},
{0.4375, -0.5, -0.5, 0.5, 0.5, 0.5},
{0.125, -0.5, -0.5, 0.5, -0.125, 0.5},
{-0.5, -0.5, -0.5, -0.125, -0.125, 0.5},
{-0.5, 0.125, -0.5, -0.125, 0.5, 0.5},
{0.125, 0.125, -0.5, 0.5, 0.5, 0.5},
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.5,0.5,0.5,0.5},
}
},
on_place = minetest.rotate_node,
})
minetest.register_node("myholeinthewall:cross_iron_"..mat,{
-- description = desc.." Iron Cross",
tiles = {image},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
groups = {crumbly = 1},
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
{-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5},
{-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5},
{0.4375, -0.5, -0.5, 0.5, 0.5, 0.5},
{0.125, -0.5, -0.5, 0.5, -0.3125, 0.5},
{-0.5, -0.5, -0.5, -0.125, -0.3125, 0.5},
{-0.5, 0.3125, -0.5, -0.125, 0.5, 0.5},
{0.125, 0.3125, -0.5, 0.5, 0.5, 0.5},
{0.1875, -0.5, -0.5, 0.5, -0.25, 0.5},
{0.25, -0.5, -0.5, 0.5, -0.1875, 0.5},
{0.3125, -0.5, -0.5, 0.5, -0.125, 0.5},
{-0.5, -0.5, -0.5, -0.1875, -0.25, 0.5},
{-0.5, -0.5, -0.5, -0.25, -0.1875, 0.5},
{-0.5, -0.5, -0.5, -0.3125, -0.125, 0.5},
{-0.5, 0.25, -0.5, -0.1875, 0.5, 0.5},
{-0.5, 0.1875, -0.5, -0.25, 0.5, 0.5},
{-0.5, 0.125, -0.5, -0.3125, 0.5, 0.5},
{0.1875, 0.25, -0.5, 0.5, 0.5, 0.5},
{0.25, 0.1875, -0.5, 0.5, 0.5, 0.5},
{0.3125, 0.125, -0.5, 0.5, 0.5, 0.5},
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.5,0.5,0.5,0.5},
}
},
on_place = minetest.rotate_node,
})
minetest.register_node("myholeinthewall:o_"..mat,{
-- description = desc.." O",
tiles = {image},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
groups = {crumbly = 1},
node_box = {
type = "fixed",
fixed = {
{-0.25, 0.3125, -0.5, 0.25, 0.5, 0.5},
{-0.25, -0.5, -0.5, 0.25, -0.3125, 0.5},
{-0.5, -0.25, -0.5, -0.3125, 0.25, 0.5},
{0.3125, -0.25, -0.5, 0.5, 0.25, 0.5},
{0.125, -0.4375, -0.5, 0.3125, -0.25, 0.5},
{0.1875, -0.375, -0.5, 0.375, -0.1875, 0.5},
{0.25, -0.3125, -0.5, 0.4375, -0.125, 0.5},
{-0.3125, -0.4375, -0.5, -0.125, -0.25, 0.5},
{-0.375, -0.375, -0.5, -0.1875, -0.1875, 0.5},
{-0.4375, -0.3125, -0.5, -0.25, -0.125, 0.5},
{-0.3125, 0.25, -0.5, -0.125, 0.4375, 0.5},
{-0.375, 0.1875, -0.5, -0.1875, 0.375, 0.5},
{-0.4375, 0.125, -0.5, -0.25, 0.3125, 0.5},
{0.125, 0.25, -0.5, 0.3125, 0.4375, 0.5},
{0.1875, 0.1875, -0.5, 0.375, 0.375, 0.5},
{0.25, 0.125, -0.5, 0.4375, 0.3125, 0.5},
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.5,0.5,0.5,0.5},
}
},
on_place = minetest.rotate_node,
})minetest.register_node("myholeinthewall:x_"..mat,{
-- description = desc.." X",
tiles = {image},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
groups = {crumbly = 1},
node_box = {
type = "fixed",
fixed = {
{-0.5, 0.25, -0.5, -0.25, 0.5, 0.5},
{-0.375, 0.125, -0.5, -0.125, 0.375, 0.5},
{-0.25, 0.0625, -0.5, -0.0625, 0.25, 0.5},
{-0.5, -0.5, -0.5, -0.25, -0.25, 0.5},
{-0.375, -0.375, -0.5, -0.125, -0.125, 0.5},
{-0.25, -0.25, -0.5, -0.0625, -0.0625, 0.5},
{0.25, 0.25, -0.5, 0.5, 0.5, 0.5},
{0.125, 0.125, -0.5, 0.375, 0.375, 0.5},
{0.0625, 0.0625, -0.5, 0.25, 0.25, 0.5},
{0.25, -0.5, -0.5, 0.5, -0.25, 0.5},
{0.125, -0.375, -0.5, 0.375, -0.125, 0.5},
{0.0625, -0.25, -0.5, 0.25, -0.0625, 0.5},
{-0.1875, -0.1875, -0.5, 0.1875, 0.1875, 0.5},
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.5,0.5,0.5,0.5},
}
},
on_place = minetest.rotate_node,
})
end

427
register.lua Normal file
View File

@ -0,0 +1,427 @@
myholeinthewall.register_all(--material, description, image, groups, craft item
"default_sandstone",
"Sandstone",
"default_sandstone.png",
"{cracky = 1, oddly_breakable_by_hand = 1, not_in_creative_inventory=1}",
"default:sandstone",
"normal"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"default_clay",
"Clay",
"default_clay.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"default:clay",
"normal"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"default_cobble",
"Cobble",
"default_cobble.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"default:cobble",
"normal"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"default_stone",
"Stone",
"default_stone.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"default:stone",
"normal"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"default_desert_stone",
"Desert Stone",
"default_desert_stone.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"default:desert_stone",
"normal"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"default_wood",
"Wood",
"default_wood.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"default:wood",
"normal"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"default_pinewood",
"Pine Wood",
"default_pinewood.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"default:pinewood",
"normal"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"default_dirt",
"Dirt",
"default_dirt.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"default:dirt",
"normal"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"default_coal_block",
"Coal Block",
"default_coal_block.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"default:coalblock",
"normal"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"default_desert_cobble",
"Desert Cobble",
"default_desert_cobble.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"default:desert_cobble",
"normal"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"default_glass",
"Glass",
"default_glass.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"default:glass",
"glasslike"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"default_gravel",
"Gravel",
"default_gravel.png",
"{cracky = 1, falling_node=1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"default:gravel",
"normal"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"default_junglewood",
"Jungle Wood",
"default_junglewood.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"default:junglewood",
"normal"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"default_mossycobble",
"Mossy Cobble",
"default_mossycobble.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"default:mossycobble",
"normal"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"default_obsidian",
"Obsidian",
"default_obsidian.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"default:obsidian",
"normal"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"default_pinetree",
"Pine Tree",
"default_pinetree.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"default:pinetree",
"normal"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--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"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"farming_straw",
"Straw",
"farming_straw.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"farming:straw",
"normal"
)
-----------------------------------------------------------------------------------------------------
--wool
myholeinthewall.register_all(--material, description, image, groups, craft item
"wool_white",
"White Wool",
"wool_white.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"wool_white"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"wool_black",
"Black Wool",
"wool_black.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"wool_black"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"wool_blue",
"Blue Wool",
"wool_blue.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"wool_blue"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"wool_brown",
"Brown Wool",
"wool_brown.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"wool_brown"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"wool_cyan",
"Cyan Wool",
"wool_cyan.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"wool_cyan"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"wool_dark_green",
"Dark Green Wool",
"wool_dark_green.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"wool_dark_green"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"wool_dark_grey",
"Dark Grey Wool",
"wool_dark_grey.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"wool_dark_grey"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"wool_green",
"Green Wool",
"wool_green.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"wool_green"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"wool_grey",
"Grey Wool",
"wool_grey.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"wool_grey"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"wool_magenta",
"Magenta Wool",
"wool_magenta.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"wool_magenta"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"wool_orange",
"Orange Wool",
"wool_orange.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"wool_orange"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"wool_pink",
"Pink Wool",
"wool_pink.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"wool_pink"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"wool_red",
"Red Wool",
"wool_red.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"wool_red"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"wool_violet",
"Violet Wool",
"wool_violet.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"wool_violet"
)
myholeinthewall.register_all(--material, description, image, groups, craft item
"wool_yellow",
"Yellow Wool",
"wool_yellow.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"wool_yellow"
)

BIN
textures/mybricks_mach1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
textures/mybricks_mach2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
textures/mybricks_mach3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
textures/mybricks_mach4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
textures/mybricks_mach5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
textures/mybricks_mach6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 B