Fixed groups and cleaned up code

This commit is contained in:
DonBatman 2015-08-29 18:54:40 -07:00
parent 778e69b669
commit b284172047
7 changed files with 142 additions and 416 deletions

View File

@ -1,49 +0,0 @@
mycorners.cornerlist("wood_black", "corners_wood_black.png", "Black Wood")
mycorners.cornerlist("wood_blue", "corners_wood_blue.png", "Blue Wood")
mycorners.cornerlist("wood_brown", "corners_wood_brown.png", "Brown Wood")
mycorners.cornerlist("wood_cyan", "corners_wood_cyan.png", "Cyan Wood")
mycorners.cornerlist("wood_dark_green", "corners_wood_dark_green.png", "Dark Green Wood")
mycorners.cornerlist("wood_dark_grey", "corners_wood_dark_grey.png", "Dark Grey Wood")
mycorners.cornerlist("wood_green", "corners_wood_green.png", "Green Wood")
mycorners.cornerlist("wood_grey", "corners_wood_grey.png", "Grey Wood")
mycorners.cornerlist("wood_magenta", "corners_wood_magenta.png", "Magenta Wood")
mycorners.cornerlist("wood_orange", "corners_wood_orange.png", "Orange Wood")
mycorners.cornerlist("wood_pink", "corners_wood_pink.png", "Pink Wood")
mycorners.cornerlist("wood_red", "corners_wood_red.png", "Red Wood")
mycorners.cornerlist("wood_violet", "corners_wood_violet.png", "Violet Wood")
mycorners.cornerlist("wood_white", "corners_wood_white.png", "White Wood")
mycorners.cornerlist("wood_yellow", "corners_wood_yellow.png", "Yellow Wood")
mycorners.cornerlist("stone_black", "corners_stone_black.png", "Black Stone")
mycorners.cornerlist("stone_blue", "corners_stone_blue.png", "Blue Brick")
mycorners.cornerlist("stone_brown", "corners_stone_brown.png", "Brown Stone")
mycorners.cornerlist("stone_cyan", "corners_stone_cyan.png", "Cyan Stone")
mycorners.cornerlist("stone_dark_green", "corners_stone_dark_green.png", "Dark Green Stone")
mycorners.cornerlist("stone_dark_grey", "corners_stone_dark_grey.png", "Dark Grey Stone")
mycorners.cornerlist("stone_green", "corners_stone_green.png", "Green Stone")
mycorners.cornerlist("stone_grey", "corners_stone_grey.png", "Grey Stone")
mycorners.cornerlist("stone_magenta", "corners_stone_magenta.png", "Magenta Stone")
mycorners.cornerlist("stone_orange", "corners_stone_orange.png", "Orange Stone")
mycorners.cornerlist("stone_pink", "corners_stone_pink.png", "Pink Stone")
mycorners.cornerlist("stone_red", "corners_stone_red.png", "Red Stone")
mycorners.cornerlist("stone_violet", "corners_stone_violet.png", "Violet Stone")
mycorners.cornerlist("stone_white", "corners_stone_white.png", "White Stone")
mycorners.cornerlist("stone_yellow", "corners_stone_yellow.png", "Yellow Stone")
mycorners.cornerlist("stonebrick_black", "corners_stonebrick_black.png", "Black Stone Brick")
mycorners.cornerlist("stonebrick_blue", "corners_stonebrick_blue.png", "Blue Stone Brick")
mycorners.cornerlist("stonebrick_brown", "corners_stonebrick_brown.png", "Brown Stone Brick")
mycorners.cornerlist("stonebrick_cyan", "corners_stonebrick_cyan.png", "Cyan Stone Brick")
mycorners.cornerlist("stonebrick_dark_green", "corners_stonebrick_dark_green.png", "Dark Green Stone Brick")
mycorners.cornerlist("stonebrick_dark_grey", "corners_stonebrick_dark_grey.png", "Dark Grey Stone Brick")
mycorners.cornerlist("stonebrick_green", "corners_stonebrick_green.png", "Green Stone Brick")
mycorners.cornerlist("stonebrick_grey", "corners_stonebrick_grey.png", "Grey Stone Brick")
mycorners.cornerlist("stonebrick_magenta", "corners_stonebrick_magenta.png", "Magenta Stone Brick")
mycorners.cornerlist("stonebrick_orange", "corners_stonebrick_orange.png", "Orange Stone Brick")
mycorners.cornerlist("stonebrick_pink", "corners_stonebrick_pink.png", "Pink Stone Brick")
mycorners.cornerlist("stonebrick_red", "corners_stonebrick_red.png", "Red Stone Brick")
mycorners.cornerlist("stonebrick_violet", "corners_stonebrick_violet.png", "Violet Stone Brick")
mycorners.cornerlist("stonebrick_white", "corners_stonebrick_white.png", "White Stone Brick")
mycorners.cornerlist("stonebrick_yellow", "corners_stonebrick_yellow.png", "Yellow Stone Brick")

View File

@ -1,5 +1,4 @@
local USES = 200
local cornerblock = {
{"wood_black", "corners_wood_black.png", "Black Wood"},
{"wood_blue", "corners_wood_blue.png", "Blue Wood"},
@ -46,9 +45,7 @@ local cornerblock = {
{"stonebrick_violet", "corners_stonebrick_violet.png", "Violet Stone Brick"},
{"stonebrick_white", "corners_stonebrick_white.png", "White Stone Brick"},
{"stonebrick_yellow", "corners_stonebrick_yellow.png", "Yellow Stone Brick"},
}
local default_material = {
{"default:cobble", "default_cobble"},
{"default:sandstone","default_sandstone"},
@ -56,7 +53,8 @@ local default_material = {
{"default:stone","default_stone"},
{"default:desert_stone","default_desert_stone"},
{"default:wood","default_wood"},
{"default:pinewood","default_pinewood"},
{"default:pine_wood","default_pine_wood"},
{"default:acacia_wood","default_acacia_wood"},
{"default:brick","default_brick"},
{"default:desert_cobble","default_desert_cobble"},
{"default:junglewood","default_junglewood"},
@ -65,7 +63,6 @@ local default_material = {
{"default:stonebrick","default_stone_brick"},
{"default:desert_stonebrick","default_desert_stone_brick"},
}
minetest.register_tool( "mycorners:corner_tool",{
description = "Corner Tool",
inventory_image = "mycorners_cornertool.png",
@ -78,7 +75,6 @@ for i in ipairs(cornerblock) do
local mat = cornerblock[i][1]
local img = cornerblock[i][2]
local desc = cornerblock[i][3]
for i in ipairs(default_material) do
local material = default_material[i][1]
local iname = default_material[i][2]
@ -88,26 +84,20 @@ for i in ipairs(default_material) do
local pos = pointed_thing.under
local node = minetest.get_node(pos)
local cornr = "mycorners:corner_"..mat
if node.name == material and
istack:get_name() == cornr
then
minetest.set_node(pos,{name = "mycorners:cornerblock_"..iname.."_"..mat, param2=minetest.dir_to_facedir(user:get_look_dir())})
user:get_inventory():remove_item("main", cornr.." 1");
user:get_inventory():remove_item("main", cornr.." 2");
break
end
end
end
if not minetest.setting_getbool("creative_mode") then
itemstack:add_wear(65535 / (USES - 1))
end
return itemstack
end,
on_place = function(itemstack, placer, pointed_thing)
local pos = pointed_thing.under
local node = minetest.get_node(pos).name
@ -117,7 +107,6 @@ end,
newpara = 0
end
minetest.set_node(pos,{name = ""..node, param2 = newpara})
if not minetest.setting_getbool("creative_mode") then
itemstack:add_wear(65535 / (USES - 1))
end
@ -129,17 +118,6 @@ minetest.register_craft({
recipe = {
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
{'', 'default:steel_ingot', ''},
{'', "wool:blue", ''},
{'', 'wool:blue', ''},
},
})

View File

@ -1,145 +0,0 @@
local USES = 200
local cornerblock = {
{"wood_black", "corners_wood_black.png", "Black Wood"},
{"wood_blue", "corners_wood_blue.png", "Blue Wood"},
{"wood_brown", "corners_wood_brown.png", "Brown Wood"},
{"wood_cyan", "corners_wood_cyan.png", "Cyan Wood"},
{"wood_dark_green", "corners_wood_dark_green.png", "Dark Green Wood"},
{"wood_dark_grey", "corners_wood_dark_grey.png", "Dark Grey Wood"},
{"wood_green", "corners_wood_green.png", "Green Wood"},
{"wood_grey", "corners_wood_grey.png", "Grey Wood"},
{"wood_magenta", "corners_wood_magenta.png", "Magenta Wood"},
{"wood_orange", "corners_wood_orange.png", "Orange Wood"},
{"wood_pink", "corners_wood_pink.png", "Pink Wood"},
{"wood_red", "corners_wood_red.png", "Red Wood"},
{"wood_violet", "corners_wood_violet.png", "Violet Wood"},
{"wood_white", "corners_wood_white.png", "White Wood"},
{"wood_yellow", "corners_wood_yellow.png", "Yellow Wood"},
{"stone_black", "corners_stone_black.png", "Black Stone"},
{"stone_blue", "corners_stone_blue.png", "Blue Brick"},
{"stone_brown", "corners_stone_brown.png", "Brown Stone"},
{"stone_cyan", "corners_stone_cyan.png", "Cyan Stone"},
{"stone_dark_green", "corners_stone_dark_green.png", "Dark Green Stone"},
{"stone_dark_grey", "corners_stone_dark_grey.png", "Dark Grey Stone"},
{"stone_green", "corners_stone_green.png", "Green Stone"},
{"stone_grey", "corners_stone_grey.png", "Grey Stone"},
{"stone_magenta", "corners_stone_magenta.png", "Magenta Stone"},
{"stone_orange", "corners_stone_orange.png", "Orange Stone"},
{"stone_pink", "corners_stone_pink.png", "Pink Stone"},
{"stone_red", "corners_stone_red.png", "Red Stone"},
{"stone_violet", "corners_stone_violet.png", "Violet Stone"},
{"stone_white", "corners_stone_white.png", "White Stone"},
{"stone_yellow", "corners_stone_yellow.png", "Yellow Stone"},
{"stonebrick_black", "corners_stonebrick_black.png", "Black Stone Brick"},
{"stonebrick_blue", "corners_stonebrick_blue.png", "Blue Stone Brick"},
{"stonebrick_brown", "corners_stonebrick_brown.png", "Brown Stone Brick"},
{"stonebrick_cyan", "corners_stonebrick_cyan.png", "Cyan Stone Brick"},
{"stonebrick_dark_green", "corners_stonebrick_dark_green.png", "Dark Green Stone Brick"},
{"stonebrick_dark_grey", "corners_stonebrick_dark_grey.png", "Dark Grey Stone Brick"},
{"stonebrick_green", "corners_stonebrick_green.png", "Green Stone Brick"},
{"stonebrick_grey", "corners_stonebrick_grey.png", "Grey Stone Brick"},
{"stonebrick_magenta", "corners_stonebrick_magenta.png", "Magenta Stone Brick"},
{"stonebrick_orange", "corners_stonebrick_orange.png", "Orange Stone Brick"},
{"stonebrick_pink", "corners_stonebrick_pink.png", "Pink Stone Brick"},
{"stonebrick_red", "corners_stonebrick_red.png", "Red Stone Brick"},
{"stonebrick_violet", "corners_stonebrick_violet.png", "Violet Stone Brick"},
{"stonebrick_white", "corners_stonebrick_white.png", "White Stone Brick"},
{"stonebrick_yellow", "corners_stonebrick_yellow.png", "Yellow Stone Brick"},
}
local default_material = {
{"default:cobble", "default_cobble"},
{"default:sandstone","default_sandstone"},
{"default:clay","default_clay"},
{"default:stone","default_stone"},
{"default:desert_stone","default_desert_stone"},
{"default:wood","default_wood"},
{"default:pinewood","default_pinewood"},
{"default:brick","default_brick"},
{"default:desert_cobble","default_desert_cobble"},
{"default:junglewood","default_junglewood"},
{"default:mossycobble","default_mossycobble"},
{"default:sandstonebrick","default_sandstone_brick"},
{"default:stonebrick","default_stone_brick"},
{"default:desert_stonebrick","default_desert_stone_brick"},
}
minetest.register_tool( "mycorners:corner_tool",{
description = "Corner Tool",
inventory_image = "mycorners_cornertool.png",
wield_image = "mycorners_cornertool.png",
on_use = function(itemstack, user, pointed_thing)
if pointed_thing.type ~= "node" then
return
end
for i in ipairs(cornerblock) do
local mat = cornerblock[i][1]
local img = cornerblock[i][2]
local desc = cornerblock[i][3]
for i in ipairs(default_material) do
local material = default_material[i][1]
local iname = default_material[i][2]
local beside = user:get_wield_index()+1
local inv = user:get_inventory()
local istack = inv:get_stack("main", beside)
local pos = pointed_thing.under
local node = minetest.get_node(pos)
local cornr = "mycorners:corner_"..mat
if node.name == material and
istack:get_name() == cornr
then
minetest.set_node(pos,{name = "mycorners:cornerblock_"..iname.."_"..mat, param2=minetest.dir_to_facedir(user:get_look_dir())})
user:get_inventory():remove_item("main", cornr.." 1");
end
end
end
if not minetest.setting_getbool("creative_mode") then
itemstack:add_wear(65535 / (USES - 1))
end
return itemstack
end,
on_place = function(itemstack, placer, pointed_thing)
local pos = pointed_thing.under
local node = minetest.get_node(pos).name
local para = minetest.get_node(pos).param2
local newpara = para + 1
if newpara > 3 then
newpara = 0
end
minetest.set_node(pos,{name = ""..node, param2 = newpara})
if not minetest.setting_getbool("creative_mode") then
itemstack:add_wear(65535 / (USES - 1))
end
return itemstack
end,
})
minetest.register_craft({
output = 'mycorners:corner_tool',
recipe = {
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
{'', 'default:steel_ingot', ''},
{'', "wool:blue", ''},
},
})

View File

@ -3,7 +3,6 @@ dofile(minetest.get_modpath("mycorners").."/cornertool.lua")
dofile(minetest.get_modpath("mycorners").."/nodes.lua")
dofile(minetest.get_modpath("mycorners").."/machine.lua")
dofile(minetest.get_modpath("mycorners").."/register.lua")
--dofile(minetest.get_modpath("mycorners").."/corners.lua")

View File

@ -6,7 +6,6 @@ local shape2 = {}
local make_ok = 0
local anzahl = {}
local anzahlz = {}
local dye_colors = {
{"dye:black","black"},
{"dye:blue","blue"},
@ -49,8 +48,10 @@ local nodes_of_corners = {
{"default:obsidian","default_obsidian"},
{"default:obsidian_glass","default_obsidian_glass"},
{"default:obsidianbrick","default_obsidian_brick"},
{"default:pinetree","default_pinetree"},
{"default:pinewood","default_pinewood"},
{"default:pine_tree","default_pine_tree"},
{"default:pine_wood","default_pine_wood"},
{"default:acacia_tree","default_acacia_tree"},
{"default:acacia_wood","default_acacia_wood"},
{"default:sand","default_sand"},
{"default:sandstone","default_sandstone"},
{"default:sandstonebrick","default_sandstone_brick"},
@ -94,7 +95,6 @@ local corner_items = {
{"_wood_violet"},
{"_wood_white"},
{"_wood_yellow"},
{"_stone_black"},
{"_stone_blue"},
{"_stone_brown"},
@ -110,7 +110,6 @@ local corner_items = {
{"_stone_violet"},
{"_stone_white"},
{"_stone_yellow"},
{"_stonebrick_black"},
{"_stonebrick_blue"},
{"_stonebrick_brown"},
@ -129,7 +128,6 @@ local corner_items = {
}
minetest.register_alias("mycorners:machine_installer", "mycorners:machine_corner")
minetest.register_node("mycorners:machine_corner", {
description = "Corner Machine",
tiles = {
@ -161,13 +159,11 @@ minetest.register_node("mycorners:machine_corner", {
{-0.1875, -0.25, -0.375, 0.125, -0.1875, -0.0625},
}
},
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", "Corner Machine (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()
@ -180,7 +176,6 @@ can_dig = function(pos,player)
end
return true
end,
on_construct = function(pos)
local meta = minetest.env:get_meta(pos)
meta:set_string("formspec", "invsize[10,11;]"..
@ -195,7 +190,6 @@ on_construct = function(pos)
"list[current_name;res;6,1;1,1;]"..
"label[1,2;Material can only be wood, stone or stone brick]"..
"vertlabel[9.5,0.5;All dye colors are supported]"..
"label[1.5,3;Material]"..
"list[current_name;mat;1.5,3.5;1,1; ]"..
"list[current_name;corner1;1.5,4.5;1,1; ]"..
@ -204,7 +198,6 @@ on_construct = function(pos)
"label[6,3;Output:]"..
"list[current_name;res2;6,3.5;1,1;]"..
"label[1,5.5;Add a block to the top left and corner items in the other 2]"..
"list[current_player;main;1,7;8,4;]")
meta:set_string("infotext", "Corner Machine")
local inv = meta:get_inventory()
@ -216,14 +209,11 @@ on_construct = function(pos)
inv:set_size("corner2", 1)
inv:set_size("res2", 1)
end,
on_receive_fields = function(pos, formname, fields, sender)
local meta = minetest.env:get_meta(pos)
local inv = meta:get_inventory()
if fields["make"]
then
make_ok = 0
anzahl = 4
shape = "mycorners:corner_"
@ -231,38 +221,31 @@ then
inv:is_empty("dye") then
return
end
local ingotstack1 = inv:get_stack("matblock", 1)
local ingotstack2 = inv:get_stack("dye", 1)
local resstack = inv:get_stack("res", 1)
----------------------------------------------------------------------------------
--register nodes
----------------------------------------------------------------------------------
for i in ipairs (dye_colors) do
local dyecol = dye_colors[i][1]
local color = dye_colors[i][2]
if ingotstack1:get_name()=="default:wood" and
ingotstack2:get_name()==dyecol then
material = "wood_"..color
make_ok = 1
end
if ingotstack1:get_name()=="default:stone" and
ingotstack2:get_name()==dyecol then
material = "stone_"..color
make_ok = 1
end
if ingotstack1:get_name()=="default:stonebrick" and
ingotstack2:get_name()==dyecol then
material = "stonebrick_"..color
make_ok = 1
end
end
----------------------------------------------------------------------
if make_ok == 1 then
local give = {}
@ -279,7 +262,6 @@ end
------------------------------------------------------------------------
if fields["make2"]
then
make_ok = 0
anzahlz = 1
shape2 = "mycorners:cornerblock_"
@ -288,25 +270,18 @@ then
inv:is_empty("corner2") then
return
end
local ingotstack4 = inv:get_stack("mat", 1)
local ingotstack5 = inv:get_stack("corner1", 1)
local ingotstack6 = inv:get_stack("corner2", 1)
local resstack2 = inv:get_stack("res2", 1)
----------------------------------------------------------------------------------
--register nodes
----------------------------------------------------------------------------------
for i in ipairs (nodes_of_corners) do
local nodeitem = nodes_of_corners[i][1]
local nodedesc = nodes_of_corners[i][2]
for i in ipairs (corner_items) do
local ctype = corner_items[i][1]
if ingotstack4:get_name()== nodeitem and
ingotstack5:get_name()=="mycorners:corner"..ctype and
ingotstack6:get_name()=="mycorners:corner"..ctype then
@ -315,12 +290,7 @@ then
end
end
end
----------------------------------------------------------------------
----------------------------------------------------------------------
if make_ok == 1 then
local give = {}
for i = 0, anzahlz-1 do
@ -333,16 +303,10 @@ then
ingotstack6:take_item()
inv:set_stack("corner2",1,ingotstack6)
end
end
end
})
--Craft
minetest.register_craft({
output = 'mycorners:machine_corner',
recipe = {
@ -351,16 +315,3 @@ minetest.register_craft({
{'default:steelblock', "default:steelblock", ''},
},
})

View File

@ -1,7 +1,5 @@
function mycorners.register_all(material, descr, image)
function mycorners.register_all(material, descr, image, groupss, itm)
local cornerblock = {
{"wood_black", "corners_wood_black.png", "Black Wood"},
{"wood_blue", "corners_wood_blue.png", "Blue Wood"},
{"wood_brown", "corners_wood_brown.png", "Brown Wood"},
@ -47,33 +45,26 @@ local cornerblock = {
{"stonebrick_violet", "corners_stonebrick_violet.png", "Violet Stone Brick"},
{"stonebrick_white", "corners_stonebrick_white.png", "White Stone Brick"},
{"stonebrick_yellow", "corners_stonebrick_yellow.png", "Yellow Stone Brick"},
}
for i in ipairs(cornerblock) do
local mat = cornerblock[i][1]
local img = cornerblock[i][2]
local desc = cornerblock[i][3]
--Makes the craft item corner
minetest.register_craftitem("mycorners:corner_"..mat, {
description = desc.." Corner",
inventory_image = img,
groups = {not_in_creative_inventory=1},
})
local other_images = {
{"top","bottom"},
}
for i in ipairs (other_images) do
local top = other_images[i][1]
local bottom = other_images[i][2]
minetest.register_node("mycorners:cornerblock_"..material.."_"..mat, {
description = descr.."_Corner"..desc,
drawtype = "normal",
paramtype = "light",
tiles = {
image.."^corners_"..mat.."_"..top..".png",
image.."^corners_"..mat.."_"..bottom..".png",
@ -84,11 +75,19 @@ minetest.register_node("mycorners:cornerblock_"..material.."_"..mat, {
},
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 2, not_in_creative_inventory=1},
groups = groupss,
drop = {
max_items = 3,
items = {
{
items = {itm},
},
{
items = {"mycorners:corner_"..mat.." 2"},
},
}
},
})
end
end
end

View File

@ -1,379 +1,389 @@
---[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_sandstone",
"Sandstone",
"default_sandstone.png",
"{cracky = 1, oddly_breakable_by_hand = 1, not_in_creative_inventory=1}",
{crumbly=2, cracky = 3, not_in_creative_inventory=1},
"default:sandstone",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_desert_sand",
"Desert Sand",
"default_desert_sand.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{crumbly=3,not_in_creative_inventory=1},
"default:desert_sand",
"normal"
)
--]]
---[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_clay",
"Clay",
"default_clay.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{crumbly=3,not_in_creative_inventory=1},
"default:clay",
"normal"
)
--]]
---[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_cobble",
"Cobble",
"default_cobble.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 3, not_in_creative_inventory=1},
"default:cobble",
"normal"
)
--]]
---[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_stone",
"Stone",
"default_stone.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 3,not_in_creative_inventory=1},
"default:stone",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_cactus",
"Cactus",
"default_cactus_side.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{choppy = 3,not_in_creative_inventory=1},
"default:cactus",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_sand",
"Sand",
"default_sand.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{crumbly=3,not_in_creative_inventory=1},
"default:sand",
"normal"
)
--]]
---[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_desert_stone",
"Desert Stone",
"default_desert_stone.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 3,not_in_creative_inventory=1},
"default:desert_stone",
"normal"
)
--]]
---[[
mycorners.register_all(--material, description, image, groups, item
mycorners.register_all(
"default_wood",
"Wood",
"default_wood.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{choppy = 3,not_in_creative_inventory=1},
"default:wood",
"normal"
)
--]]
---[[
mycorners.register_all(--material, description, image, groups, craft item
"default_pinewood",
mycorners.register_all(
"default_pine_wood",
"Pine Wood",
"default_pinewood.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
"default:pinewood",
"default_pine_wood.png",
{choppy = 3,not_in_creative_inventory=1},
"default:pine_wood",
"normal"
)
--]]
---[[
mycorners.register_all(
"default_acacia_wood",
"Acacia Wood",
"default_acacia_wood.png",
{choppy = 3,not_in_creative_inventory=1},
"default:pine_acacia",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_dirt",
"Dirt",
"default_dirt.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{crumbly = 3,not_in_creative_inventory=1},
"default:dirt",
"normal"
)
--]]
---[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_brick",
"Brick",
"default_brick.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 2,not_in_creative_inventory=1},
"default:brick",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_bronze_block",
"Bronze Block",
"default_bronze_block.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 1,not_in_creative_inventory=1},
"default:bronzeblock",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_coal_block",
"Coal Block",
"default_coal_block.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 3,not_in_creative_inventory=1},
"default:coalblock",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_copper_block",
"Copper Block",
"default_copper_block.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 1,not_in_creative_inventory=1},
"default:copperblock",
"normal"
)
--]]
---[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_desert_cobble",
"Desert Cobble",
"default_desert_cobble.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 3,not_in_creative_inventory=1},
"default:desert_cobble",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_diamond_block",
"Diamond Block",
"default_diamond_block.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 1, level=3,not_in_creative_inventory=1},
"default:diamondblock",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_glass",
"Glass",
"default_glass.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 3, oddly_breakable_by_hand = 3,not_in_creative_inventory=1},
"default:glass",
"glasslike"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_gold_block",
"Gold Block",
"default_gold_block.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 1,not_in_creative_inventory=1},
"default:goldblock",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_gravel",
"Gravel",
"default_gravel.png",
"{cracky = 1, falling_node=1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{crumbly = 2, falling_node=1, not_in_creative_inventory=1},
"default:gravel",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_ice",
"Ice",
"default_ice.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 3, not_in_creative_inventory=1},
"default:ice",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_jungletree",
"Jungle Tree",
"default_jungletree.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{choppy=2,oddly_breakable_by_hand=1,flammable=2,not_in_creative_inventory=1},
"default:jungletree",
"normal"
)
--]]
---[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_junglewood",
"Jungle Wood",
"default_junglewood.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{choppy=2,oddly_breakable_by_hand=2,flammable=2,not_in_creative_inventory=1},
"default:junglewood",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_lava",
"Lava",
"default_lava.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1},
"default:lava_source",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_mese",
"Mese",
"default_mese_block.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 1,not_in_creative_inventory=1},
"default:mese",
"normal"
)
--]]
---[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_mossycobble",
"Mossy Cobble",
"default_mossycobble.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 3,not_in_creative_inventory=1},
"default:mossycobble",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_obsidian",
"Obsidian",
"default_obsidian.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 1, level = 2,not_in_creative_inventory=1},
"default:obsidian",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item, drawtype
mycorners.register_all(
"default_obsidian_glass",
"Obsidian Glass",
"default_obsidian_glass.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 3, oddly_breakable_by_hand = 3,not_in_creative_inventory=1},
"default:obsidian_glass",
"glasslike"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_obsidian_brick",
"Obsidian Brick",
"default_obsidian_brick.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 1, level = 2,not_in_creative_inventory=1},
"default:obsidianbrick",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_pinetree",
"Pine Tree",
"default_pinetree.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{choppy=2,oddly_breakable_by_hand=2,flammable=2,not_in_creative_inventory=1},
"default:pinetree",
"normal"
)
--]]
---[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_sandstone_brick",
"Sandstone Brick",
"default_sandstone_brick.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 2,not_in_creative_inventory=1},
"default:sandstonebrick",
"normal"
)
--]]
---[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_desert_stone_brick",
"Desert Stone Brick",
"default_desert_stone_brick.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 2,not_in_creative_inventory=1},
"default:desert_stonebrick",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_snow",
"Snow",
"default_snow.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{crumbly = 3, not_in_creative_inventory=1},
"default:snowblock",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_steel_block",
"Steel Block",
"default_steel_block.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 1, level = 2,not_in_creative_inventory=1},
"default:steelblock",
"normal"
)
--]]
---[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_stone_brick",
"Stone Brick",
"default_stone_brick.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 2,not_in_creative_inventory=1},
"default:stonebrick",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_tree",
"Tree",
"default_tree.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{choppy=2,oddly_breakable_by_hand=1,flammable=2,not_in_creative_inventory=1},
"default:tree",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"default_water",
"Water",
"default_water.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{cracky = 3,not_in_creative_inventory=1},
"default:water_source",
"normal"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item, drawtype
mycorners.register_all(
"farming_straw",
"Straw",
"farming_straw.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{snappy = 3,not_in_creative_inventory=1},
"farming:straw",
"normal"
)
@ -382,154 +392,137 @@ mycorners.register_all(--material, description, image, groups, craft item, drawt
--wool
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"wool_white",
"White Wool",
"wool_white.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,not_in_creative_inventory=1},
"wool_white"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"wool_black",
"Black Wool",
"wool_black.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,not_in_creative_inventory=1},
"wool_black"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"wool_blue",
"Blue Wool",
"wool_blue.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,not_in_creative_inventory=1},
"wool_blue"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"wool_brown",
"Brown Wool",
"wool_brown.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,not_in_creative_inventory=1},
"wool_brown"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"wool_cyan",
"Cyan Wool",
"wool_cyan.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,not_in_creative_inventory=1},
"wool_cyan"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"wool_dark_green",
"Dark Green Wool",
"wool_dark_green.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,not_in_creative_inventory=1},
"wool_dark_green"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"wool_dark_grey",
"Dark Grey Wool",
"wool_dark_grey.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,not_in_creative_inventory=1},
"wool_dark_grey"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"wool_green",
"Green Wool",
"wool_green.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,not_in_creative_inventory=1},
"wool_green"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"wool_grey",
"Grey Wool",
"wool_grey.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,not_in_creative_inventory=1},
"wool_grey"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"wool_magenta",
"Magenta Wool",
"wool_magenta.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,not_in_creative_inventory=1},
"wool_magenta"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"wool_orange",
"Orange Wool",
"wool_orange.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,not_in_creative_inventory=1},
"wool_orange"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"wool_pink",
"Pink Wool",
"wool_pink.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,not_in_creative_inventory=1},
"wool_pink"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"wool_red",
"Red Wool",
"wool_red.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,not_in_creative_inventory=1},
"wool_red"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"wool_violet",
"Violet Wool",
"wool_violet.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,not_in_creative_inventory=1},
"wool_violet"
)
--]]
--[[
mycorners.register_all(--material, description, image, groups, craft item
mycorners.register_all(
"wool_yellow",
"Yellow Wool",
"wool_yellow.png",
"{cracky = 1, oddly_breakable_by_hand = 1,not_in_creative_inventory=1}",
{snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,not_in_creative_inventory=1},
"wool_yellow"
)
--]]