Update default_miner.lua
This commit is contained in:
		
				
					committed by
					
						 Hector Franqui
						Hector Franqui
					
				
			
			
				
	
			
			
			
						parent
						
							5fed6e3a90
						
					
				
				
					commit
					7f9fedba9d
				
			| @@ -40,4 +40,29 @@ local miner_def = { | ||||
|             min_count = 20, | ||||
|             max_count = 99, | ||||
|             nodes = {"default:stone", "default:stonebrick", "default:stone_block", "default:mossycobble", "default:desert_stone", "default:desert_cobble", "default:desert_stonebrick", "default:desert_stone_block"}, | ||||
|              | ||||
|             actions = { | ||||
|               ["default:stone"] = { | ||||
|                 [1] = { | ||||
|                   action = npc.actions.cmd.WALK_STEP | ||||
|                 }, | ||||
|                 [2] = { | ||||
|                   action = npc.actions.cmd.DIG | ||||
|                 } | ||||
|               } | ||||
|             } | ||||
|           }, | ||||
|         none_actions = { | ||||
|           [1] = { | ||||
|             action = npc.actions.cmd.WALK_STEP, | ||||
|             args = { | ||||
|               dir = "random" | ||||
|               } | ||||
|             } | ||||
|           } | ||||
|         } | ||||
|       } | ||||
|     } | ||||
| } | ||||
|  | ||||
| -- Occupation registration | ||||
| npc.occupations.register_occupation("miner", miner_def) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user