From 79f21532402d6ac667f2afc987d142e8f296c993 Mon Sep 17 00:00:00 2001 From: Victor Hackeridze Date: Sun, 18 Mar 2012 20:38:01 +0600 Subject: [PATCH] cotton block white recipe --- shit/cotton_blocks/init.lua | 80 +++++++++++++++++- .../cotton_blocks/textures/cb_light_black.png | Bin 315 -> 0 bytes 2 files changed, 76 insertions(+), 4 deletions(-) delete mode 100644 shit/cotton_blocks/textures/cb_light_black.png 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 d2dbf967696c77df553193146944a604721f1a74..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 315 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|jKx9jP7LeL$-D$|I14-?iy0WW zg+Z8+Vb&Z8pdfpRr>`sf9cCe3OvY8S|xv6<2KrRD=b5UwyNotBh zd1gt5g1e`0K#E=}J5YRyr;B5V#`&p1-a^iX98EpPGp6tTFZlA%^bWsx>r&y*f&z!H ze{QT#3e}3_dy&p~BRE$^a@iq=srephvqDoCC-Qh!J`q=#(PA=@rJ?km<=6HbQ!hGf zF1_^HGi~05?1U3fiZ;iuz9R9Ue4G69jftgI#vTou&9{r@7VL51J7=mk?JoB&bP0l+XkK D%cO3(