mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-10-31 15:45:21 +01:00 
			
		
		
		
	Uses the new player object property 'can zoom'. In survival mode, use of zoom requires the binoculars item in inventory. Zoom is automatically allowed in creative mode and for players with the 'creative' privilege. The binoculars.update_player_property() function is global so can be redefined by a mod for alternative behaviour.
		
			
				
	
	
		
			3 lines
		
	
	
		
			18 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			3 lines
		
	
	
		
			18 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| default
 | |
| creative?
 |