mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-11-04 01:05:49 +01:00 
			
		
		
		
	Fix dye stuff, fixes #243
This commit is contained in:
		@@ -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", {
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user