diff --git a/shit/cotton_blocks/init.lua b/shit/cotton_blocks/init.lua index 1f1a2d1..e2c95dc 100644 --- a/shit/cotton_blocks/init.lua +++ b/shit/cotton_blocks/init.lua @@ -17,14 +17,86 @@ local CB_NAMES_COLORS = { ["pink"] = "Pink cotton block", ["brown"] = "Brown cotton block", } -print("OLOLOLOLOLOLOL XXXXXXXXXXXX\n") -for color, name in ipairs(CB_NAMES_COLORS) do - print("cotton_blocks:" .. color .. "\n") + +minetest.register_craft({ + output = 'cotton_blocks:white', + recipe = { + {'flowers:cotton','flowers:cotton','flowers:cotton'}, + {'flowers:cotton','flowers:cotton','flowers:cotton'}, + {'flowers:cotton','flowers:cotton','flowers:cotton'}, + } +}) + +local addCBrecipe = function(new, first, second) + minetest.register_craft({ + output = new, + recipe = { + {first, "dye:" .. second}, + } + }) + + minetest.register_craft({ + output = new, + recipe = { + {"dye:".. second, "dye:" .. first}, + } + }) + + minetest.register_craft({ + output = new, + recipe = { + {first}, + {"dye:".. second}, + } + }) + + minetest.register_craft({ + output = new, + recipe = { + {"dye:".. second}, + {first}, + } + }) + + minetest.register_craft({ + output = new, + recipe = { + {"dye:".. second,""}, + {"",first}, + } + }) + + minetest.register_craft({ + output = new, + recipe = { + {first,""}, + {"","dye:".. second}, + } + }) + + minetest.register_craft({ + output = new, + recipe = { + {"","dye:".. second}, + {first,""}, + } + }) + + minetest.register_craft({ + output = new, + recipe = { + {"",first}, + {"dye:".. second,""}, + } + }) +end +for color, name in pairs(CB_NAMES_COLORS) do minetest.register_node("cotton_blocks:" .. color, { description = name, tile_images = {"cb_" .. color .. ".png"}, inventory_image = minetest.inventorycube("cb_" .. color .. ".png"), is_ground_content = true, minetest.digprop_leaveslike(2.0), -- WTF???????? FUCK!!!!!!!!!1111111!!!!!!!!!111 - }) + }) + addCBrecipe("cotton_blocks:" .. color,"cotton_blocks:white",color) end diff --git a/shit/cotton_blocks/textures/cb_light_black.png b/shit/cotton_blocks/textures/cb_light_black.png deleted file mode 100644 index d2dbf96..0000000 Binary files a/shit/cotton_blocks/textures/cb_light_black.png and /dev/null differ