mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-10-31 15:45:21 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
| -- Animated torches, based on the static torches and animated lava code 
 | |
| -- from Minetest; modifications by Vanessa Ezekowitz 2012-06-17
 | |
| --
 | |
| -- License: LGPL
 | |
| 
 | |
| minetest.register_node(":default:torch", {
 | |
| 	description = "Torch",
 | |
| 	drawtype = "torchlike",
 | |
| 	tiles = {
 | |
| 
 | |
| 		-- "default_torch_on_floor.png", "default_torch_on_ceiling.png", "default_torch.png"
 | |
| 
 | |
| 		{name="default_torch_on_floor_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
 | |
| 		{name="default_torch_on_ceiling_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
 | |
| 		{name="default_torch_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
 | |
| 
 | |
| 		},
 | |
| 	inventory_image = "default_torch_on_floor.png",
 | |
| 	wield_image = "default_torch_on_floor.png",
 | |
| 	paramtype = "light",
 | |
| 	paramtype2 = "wallmounted",
 | |
| 	sunlight_propagates = true,
 | |
| 	walkable = false,
 | |
| 	light_source = LIGHT_MAX-1,
 | |
| 	selection_box = {
 | |
| 		type = "wallmounted",
 | |
| 		wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1},
 | |
| 		wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1},
 | |
| 		wall_side = {-0.5, -0.3, -0.1, -0.5+0.3, 0.3, 0.1},
 | |
| 	},
 | |
| 	groups = {choppy=2,dig_immediate=3,flammable=1},
 | |
| 	sounds = default.node_sound_defaults(),
 | |
| })
 |