Fix dye stuff, fixes #243
authorBlockMen <nmuelll@web.de>
Tue, 16 Sep 2014 17:12:31 +0000 (19:12 +0200)
committerBlockMen <nmuelll@web.de>
Tue, 16 Sep 2014 17:40:50 +0000 (19:40 +0200)
mods/default/craftitems.lua
mods/dye/init.lua

index 026a31c0bbe1b0639874ed6f9e45194693d68734..3d2cb1130ebe9d07a1b1e4c72b179813aa6b5bb6 100644 (file)
@@ -19,6 +19,7 @@ minetest.register_craftitem("default:book", {
 minetest.register_craftitem("default:coal_lump", {
        description = "Coal Lump",
        inventory_image = "default_coal_lump.png",
+       groups = {coal = 1}
 })
 
 minetest.register_craftitem("default:iron_lump", {
index ebdc93806e35b858f6a3d4fe1577bb8feb1220d3..810502d26c5c830f0092a3e42949c5a4d34bde68 100644 (file)
@@ -73,7 +73,7 @@ dyelocal.dyes = {
        {"dark_green", "Dark green dye",{dye=1, basecolor_green=1,   excolor_green=1,     unicolor_dark_green=1}},
        {"green",      "Green dye",     {dye=1, basecolor_green=1,   excolor_green=1,     unicolor_green=1}},
        {"yellow",     "Yellow dye",    {dye=1, basecolor_yellow=1,  excolor_yellow=1,    unicolor_yellow=1}},
-       {"brown",      "Brown dye",     {dye=1, basecolor_yellow=1,  excolor_orange=1,    unicolor_dark_orange=1}},
+       {"brown",      "Brown dye",     {dye=1, basecolor_brown=1,   excolor_orange=1,    unicolor_dark_orange=1}},
        {"orange",     "Orange dye",    {dye=1, basecolor_orange=1,  excolor_orange=1,    unicolor_orange=1}},
        {"red",        "Red dye",       {dye=1, basecolor_red=1,     excolor_red=1,       unicolor_red=1}},
        {"magenta",    "Magenta dye",   {dye=1, basecolor_magenta=1, excolor_red_violet=1,unicolor_red_violet=1}},
@@ -98,6 +98,12 @@ for _, row in ipairs(dyelocal.dyes) do
                recipe = {"group:flower,color_"..name},
        })
 end
+-- manually add coal->black dye
+minetest.register_craft({
+       type = "shapeless",
+       output = "dye:black 4",
+       recipe = {"group:coal"},
+})
 
 -- Mix recipes
 -- Just mix everything to everything somehow sanely