From 5fed6e3a903b39acd43938c827202e9b07f1dd34 Mon Sep 17 00:00:00 2001 From: NewbProgrammer101 Date: Sat, 9 Sep 2017 10:41:45 -0500 Subject: [PATCH] Update default_miner.lua --- data/occupations/default_miner.lua | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/data/occupations/default_miner.lua b/data/occupations/default_miner.lua index 58ef6d3..3230918 100644 --- a/data/occupations/default_miner.lua +++ b/data/occupations/default_miner.lua @@ -1,2 +1,43 @@ -- WIP miner by NewbProgrammer101 or roboto local miner_def = { + dialogues = {}, + textures = {"miner.png"}, + initial_inventory = { + {name="default:pick_steel", chance=1}, + {name="default:shovel_bronze", chance=1} + }, + schedule_entries = { + [7] = { + [1] = { + task = npc.actions.cmd.WALK_TO_POS, + args = { + end_pos = npc.places.PLACE_TYPE.OTHER.HOME_OUTSIDE, + walkable = {} + } + }, + [2] = { + check = true, + range = 3, + random_execution_times = true, + min_count = 20, + max_count = 99, + nodes = {"default:dirt", "default:dirt_with_grass", "default:sand", "default:desert_sand", "default:silver_sand", "default:gravel", "default:clay", "default:snow", "default:snowblock", "default:}, + actions = { + ["default:dirt"] = { + [1] = { + action = npc.actions.cmd.WALK_STEP + }, + [2] = { + action = npc.actions.cmd.DIG + } + } + } + }, + [3] = { + check = true, + range = 3, + random_execution_times = true, + 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"}, +