forked from mtcontrib/coloredwood
		
	fix crafting of fences
(default wood + default sticks should produce default fences, not coloredwood fences. conversely, colored wood blocks + default sticks should - gives you a white fence though.) also made it possible to re-dye a colored fence
This commit is contained in:
		
							
								
								
									
										13
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								init.lua
									
									
									
									
									
								
							@@ -164,7 +164,7 @@ default.register_fence("coloredwood:fence", {
 | 
			
		||||
	palette = "unifieddyes_palette_extended.png",
 | 
			
		||||
	groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, ud_param2_colorable = 1},
 | 
			
		||||
	sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
	material = "default:wood"
 | 
			
		||||
	material = "coloredwood:wood_block"
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.override_item("default:fence_wood", {
 | 
			
		||||
@@ -196,4 +196,15 @@ unifieddyes.register_color_craft({
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
unifieddyes.register_color_craft({
 | 
			
		||||
	output = "coloredwood:fence",
 | 
			
		||||
	palette = "extended",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	neutral_node = "coloredwood:fence",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		"NEUTRAL_NODE",
 | 
			
		||||
		"MAIN_DYE"
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
print("[Colored Wood] Loaded!")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user