Tools: New module and Add In Xtremo Pick & Pickaxe
Textures by @XtremeHacker
This commit is contained in:
		
							
								
								
									
										6
									
								
								modules/tools/init.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								modules/tools/init.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| -- tools/init.lua | ||||
|  | ||||
| local path = microexpansion.get_module_path("tools") | ||||
|  | ||||
| -- Load In Xtremo Tools | ||||
| dofile(path.."/xtremo.lua") | ||||
							
								
								
									
										29
									
								
								modules/tools/xtremo.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								modules/tools/xtremo.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| -- tools/xtremo.lua | ||||
|  | ||||
| -- [register tool] Pickaxe | ||||
| minetest.register_tool("microexpansion:xtremo_pickaxe", { | ||||
|   description = "In Xtremo Pickaxe", | ||||
|   inventory_image = "microexpansion_in_xtremo_pickaxe.png", | ||||
|   tool_capabilities = { | ||||
| 		full_punch_interval = 0.9, | ||||
| 		max_drop_level=3, | ||||
| 		groupcaps={ | ||||
| 			cracky = {times={[1]=1.90, [2]=0.90, [3]=0.40}, uses=300, maxlevel=4}, | ||||
| 		}, | ||||
| 		damage_groups = {fleshy=5}, | ||||
| 	}, | ||||
| }) | ||||
|  | ||||
| -- [register tool] Axe | ||||
| minetest.register_tool("microexpansion:xtremo_axe", { | ||||
|   description = "In Xtremo Axe", | ||||
|   inventory_image = "microexpansion_in_xtremo_axe.png", | ||||
|   tool_capabilities = { | ||||
| 		full_punch_interval = 0.9, | ||||
| 		max_drop_level=3, | ||||
| 		groupcaps={ | ||||
| 			choppy={times={[1]=2.00, [2]=0.80, [3]=0.40}, uses=300, maxlevel=4}, | ||||
| 		}, | ||||
| 		damage_groups = {fleshy=7}, | ||||
| 	}, | ||||
| }) | ||||
		Reference in New Issue
	
	Block a user