From 9842ce6f8fc79de13f37c9b0b0f39534e22e38e0 Mon Sep 17 00:00:00 2001 From: NewbProgrammer101 Date: Sun, 1 Oct 2017 17:04:04 -0500 Subject: [PATCH] Update default_farmer.lua --- data/occupations/default_farmer.lua | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/data/occupations/default_farmer.lua b/data/occupations/default_farmer.lua index 814768c..621ea71 100644 --- a/data/occupations/default_farmer.lua +++ b/data/occupations/default_farmer.lua @@ -36,7 +36,11 @@ local farmer_def = { { [1] = { - action = npc.actions.cmd.WALK_STEP, + action = npc.actions.cmd.WALK_TO_POS, + args = { + node = "farming:cotton_3", + walkable = true + } }, [2] = { @@ -67,7 +71,10 @@ local farmer_def = { { [1] = { - action = npc.actions.cmd.WALK_STEP, + action = npc.actions.cmd.WALK_TO_POS, + args = { + node = "farming:wheat_8", + walkable = true }, [2] = { @@ -92,7 +99,7 @@ local farmer_def = { { dir = "random" } - }, + } } } } @@ -100,4 +107,4 @@ local farmer_def = { } -- Register occupation -npc.occupations.register_occupation("farmer", farmer_def) +npc.occupations.register_occupation("default_farmer", farmer_def)