mirror of
				git://repo.or.cz/rocks.git
				synced 2025-11-04 01:45:29 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			570 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			570 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
--
 | 
						|
-- Pegmatite vein
 | 
						|
--
 | 
						|
 | 
						|
local CommonRarity=45
 | 
						|
 | 
						|
minetest.register_node( "rocks:pegmatite", {
 | 
						|
	description = S("Pegmatite"),
 | 
						|
	tiles = { "rocks_Pegmatite.png" },
 | 
						|
	groups = {cracky=3, stone=1}, 
 | 
						|
	is_ground_content = true, sounds = default.node_sound_stone_defaults(),
 | 
						|
})
 | 
						|
 | 
						|
-- ores have to be redefined for pegmatite background
 | 
						|
 | 
						|
-- pegmatites are only 1 kind
 | 
						|
rocks.register_vein("rocks:pegmatite",{
 | 
						|
  wherein={ "rocks:granite", "default:stone" },
 | 
						|
  miny=-160, maxy=20,
 | 
						|
  radius={ average=18, amplitude=0.3, frequency=16 },
 | 
						|
  density=80, rarity=CommonRarity,
 | 
						|
  ores={
 | 
						|
  }
 | 
						|
 })
 |