mirror of
				https://github.com/minetest-mods/moreblocks.git
				synced 2025-11-03 23:25:24 +01:00 
			
		
		
		
	allow passing paramtype2 to the nodes being created (#65)
This commit is contained in:
		
				
					committed by
					
						
						Hugo Locurcio
					
				
			
			
				
	
			
			
			
						parent
						
							81f77ae97e
						
					
				
				
					commit
					cf1b054a99
				
			@@ -88,7 +88,7 @@ function stairsplus:register_micro(modname, subname, recipeitem, fields)
 | 
			
		||||
		end
 | 
			
		||||
		def.drawtype = "nodebox"
 | 
			
		||||
		def.paramtype = "light"
 | 
			
		||||
		def.paramtype2 = "facedir"
 | 
			
		||||
		def.paramtype2 = def.paramtype2 or "facedir"
 | 
			
		||||
		def.on_place = minetest.rotate_node
 | 
			
		||||
		def.groups = stairsplus:prepare_groups(fields.groups)
 | 
			
		||||
		def.description = desc
 | 
			
		||||
 
 | 
			
		||||
@@ -88,7 +88,7 @@ function stairsplus:register_panel(modname, subname, recipeitem, fields)
 | 
			
		||||
		end
 | 
			
		||||
		def.drawtype = "nodebox"
 | 
			
		||||
		def.paramtype = "light"
 | 
			
		||||
		def.paramtype2 = "facedir"
 | 
			
		||||
		def.paramtype2 = def.paramtype2 or "facedir"
 | 
			
		||||
		def.on_place = minetest.rotate_node
 | 
			
		||||
		def.description = desc
 | 
			
		||||
		def.groups = stairsplus:prepare_groups(fields.groups)
 | 
			
		||||
 
 | 
			
		||||
@@ -59,7 +59,7 @@ function stairsplus:register_slab(modname, subname, recipeitem, fields)
 | 
			
		||||
		end
 | 
			
		||||
		def.drawtype = "nodebox"
 | 
			
		||||
		def.paramtype = "light"
 | 
			
		||||
		def.paramtype2 = "facedir"
 | 
			
		||||
		def.paramtype2 = def.paramtype2 or "facedir"
 | 
			
		||||
		def.on_place = minetest.rotate_node
 | 
			
		||||
		def.description = ("%s (%d/16)"):format(desc_base, num)
 | 
			
		||||
		def.groups = stairsplus:prepare_groups(fields.groups)
 | 
			
		||||
 
 | 
			
		||||
@@ -242,7 +242,7 @@ function stairsplus:register_slope(modname, subname, recipeitem, fields)
 | 
			
		||||
		end
 | 
			
		||||
		def.drawtype = "mesh"
 | 
			
		||||
		def.paramtype = "light"
 | 
			
		||||
		def.paramtype2 = "facedir"
 | 
			
		||||
		def.paramtype2 = def.paramtype2 or "facedir"
 | 
			
		||||
		def.on_place = minetest.rotate_node
 | 
			
		||||
		def.description = desc
 | 
			
		||||
		def.groups = stairsplus:prepare_groups(fields.groups)
 | 
			
		||||
 
 | 
			
		||||
@@ -128,7 +128,7 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields)
 | 
			
		||||
		end
 | 
			
		||||
		def.drawtype = "nodebox"
 | 
			
		||||
		def.paramtype = "light"
 | 
			
		||||
		def.paramtype2 = "facedir"
 | 
			
		||||
		def.paramtype2 = def.paramtype2 or "facedir"
 | 
			
		||||
		def.on_place = minetest.rotate_node
 | 
			
		||||
		def.description = desc
 | 
			
		||||
		def.groups = stairsplus:prepare_groups(fields.groups)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user