mirror of
				https://codeberg.org/tenplus1/bakedclay.git
				synced 2025-11-04 14:45:29 +01:00 
			
		
		
		
	Merge remote-tracking branch 'upstream/master' into nalc-1.2-dev
This commit is contained in:
		@@ -18,3 +18,6 @@ Changelog:
 | 
			
		||||
- 0.1 - Initial Release
 | 
			
		||||
 | 
			
		||||
Lucky Blocks: 9
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Note: Under settings you will find 'colored_clay_compatibility' switch that when enabled will register aliases for the older colored clay mod and it's stairplus stairs.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										39
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										39
									
								
								init.lua
									
									
									
									
									
								
							@@ -265,4 +265,41 @@ lucky_block:add_blocks({
 | 
			
		||||
})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
minetest.log("action", "[bakedclay] loaded.")
 | 
			
		||||
-- colored clay compatibility
 | 
			
		||||
if minetest.settings:get_bool("colored_clay_compatibility") == true then
 | 
			
		||||
 | 
			
		||||
local cc = {
 | 
			
		||||
	{"black", "black"},
 | 
			
		||||
	{"blue", "blue"},
 | 
			
		||||
	{"bright", "natural"},
 | 
			
		||||
	{"brown", "brown"},
 | 
			
		||||
	{"cyan", "cyan"},
 | 
			
		||||
	{"dark_green", "dark_green"},
 | 
			
		||||
	{"dark_grey", "dark_grey"},
 | 
			
		||||
	{"green", "green"},
 | 
			
		||||
	{"grey", "grey"},
 | 
			
		||||
	{"hardened", "natural"},
 | 
			
		||||
	{"magenta", "magenta"},
 | 
			
		||||
	{"orange", "orange"},
 | 
			
		||||
	{"pink", "pink"},
 | 
			
		||||
	{"red", "red"},
 | 
			
		||||
	{"violet", "violet"},
 | 
			
		||||
	{"white", "white"},
 | 
			
		||||
	{"yellow", "yellow"}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
for n = 1, #cc do
 | 
			
		||||
 | 
			
		||||
	local nod1 = "colored_clay:" .. cc[n][1]
 | 
			
		||||
	local nod2 = "bakedclay:" .. cc[n][2]
 | 
			
		||||
 | 
			
		||||
	minetest.register_alias(nod1, nod2)
 | 
			
		||||
 | 
			
		||||
	if stairsplus_mod then
 | 
			
		||||
		stairsplus:register_alias_all("colored_clay", cc[n][1], "bakedclay", cc[n][2])
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
minetest.log("action", "[MOD] Baked Clay loaded.")
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								settingtypes.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								settingtypes.txt
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
#    Registers compatibility aliases with the older colored_clay mod
 | 
			
		||||
colored_clay_compatibility (Colored Clay Compatibility) bool false
 | 
			
		||||
		Reference in New Issue
	
	Block a user