cotton block white recipe

master
Victor Hackeridze 2012-03-18 20:38:01 +06:00
parent a34f7a2d2c
commit 79f2153240
2 changed files with 76 additions and 4 deletions

View File

@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 B