diff --git a/data/occupations/default_farmer.lua b/data/occupations/default_farmer.lua index fc25090..e854234 100644 --- a/data/occupations/default_farmer.lua +++ b/data/occupations/default_farmer.lua @@ -92,6 +92,36 @@ local farmer_def = { } }, + [3] = + { + check = true, + range = 3, + random_execution_times = true, + min_count = 8, + max_count = 8, + nodes = {"farming:wheat_8"}, + actions = + { + ["farming:wheat_8"] = + { + [1] = + { + action = npc.actions.cmd.WALK_STEP, + }, + [2] = + { + action = npc.actions.cmd.DIG, + }, + [3] = + { + action = npc.actions.cmd.PLACE, + args = + { + node = "farming:wheat_1" + } + } + } + }, none_actions = { -- Walk a single step in a random direction @@ -113,4 +143,4 @@ local farmer_def = { } -- Register occupation -npc.occupations.register_occupation("test_farmer", farmer_def) \ No newline at end of file +npc.occupations.register_occupation("farmer", farmer_def)