From 7f9fedba9dfc3b220d40089aa71bde7b11e384e6 Mon Sep 17 00:00:00 2001 From: NewbProgrammer101 Date: Sat, 9 Sep 2017 10:51:12 -0500 Subject: [PATCH] Update default_miner.lua --- data/occupations/default_miner.lua | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/data/occupations/default_miner.lua b/data/occupations/default_miner.lua index 3230918..9a28158 100644 --- a/data/occupations/default_miner.lua +++ b/data/occupations/default_miner.lua @@ -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)