forked from mtcontrib/coloredwood
		
	Compare commits
	
		
			4 Commits
		
	
	
		
			nalc-1.2.0
			...
			5125b9b07b
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 5125b9b07b | |||
| 8e1aec69fa | |||
| c4c9a6defe | |||
| 7933350b60 | 
@@ -1,4 +0,0 @@
 | 
			
		||||
default
 | 
			
		||||
unifieddyes
 | 
			
		||||
moreblocks?
 | 
			
		||||
signs_lib?
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
This mod provides a multitude of colors of wood, sticks, and fences to Minetest, as per the palette outlined by my Unified Dyes mod.
 | 
			
		||||
							
								
								
									
										18
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								init.lua
									
									
									
									
									
								
							@@ -116,25 +116,17 @@ if coloredwood.enable_stairsplus then
 | 
			
		||||
		  or chk == "moreblocks:panel_woo"
 | 
			
		||||
		  or chk == "moreblocks:micro_woo"
 | 
			
		||||
		  or chk == "moreblocks:slope_woo"
 | 
			
		||||
		  and not string.find(i.name, "wood_tile") then
 | 
			
		||||
 | 
			
		||||
			local class = string.sub(i.name, 12, 15)
 | 
			
		||||
			local shape = string.sub(i.name, 22)
 | 
			
		||||
 | 
			
		||||
		and not string.find(i.name, "wood_tile") then
 | 
			
		||||
			
 | 
			
		||||
			table.insert(coloredwood_cuts, i.name)
 | 
			
		||||
 | 
			
		||||
			if chk ~= "moreblocks:slab_wood" then
 | 
			
		||||
				class = string.sub(i.name, 12, 16)
 | 
			
		||||
				shape = string.sub(i.name, 23)
 | 
			
		||||
			end
 | 
			
		||||
 | 
			
		||||
			local s1, s2 = is_stairsplus(i.name, false)
 | 
			
		||||
			local class, shape = is_stairsplus(i.name, false)
 | 
			
		||||
			minetest.override_item(i.name, {
 | 
			
		||||
				groups = groups2,
 | 
			
		||||
				paramtype2 = "colorfacedir",
 | 
			
		||||
				palette = "unifieddyes_palette_greys.png",
 | 
			
		||||
				airbrush_replacement_node = "coloredwood:"..class.."_wood_grey_"..shape,
 | 
			
		||||
				drop = "moreblocks:"..s1.."_wood"..s2 -- NALC: Fix stack division with moreblocks
 | 
			
		||||
				airbrush_replacement_node = "coloredwood:"..class.."_wood_grey"..shape,
 | 
			
		||||
				drop = "moreblocks:"..class.."_wood"..shape,
 | 
			
		||||
			})
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								mod.conf
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								mod.conf
									
									
									
									
									
								
							@@ -1,2 +1,6 @@
 | 
			
		||||
name = coloredwood
 | 
			
		||||
title = Colored Wood
 | 
			
		||||
description = This mod provides a multitude of colors of wood, stairs  and fences to Minetest, as per the palette outlined by my Unified Dyes mod.
 | 
			
		||||
depends = default,unifieddyes
 | 
			
		||||
optional_depends = moreblocks,signs_lib
 | 
			
		||||
min_minetest_version = 5.2.0
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user