From f75e6ddd4b98f0b9f37bad444f272f51c3ed4b7d Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Thu, 24 Jan 2019 11:11:25 +0000 Subject: [PATCH] added stay_near setting for sheep --- sheep.lua | 4 ++-- warthog.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sheep.lua b/sheep.lua index 38efac0..b86f54e 100644 --- a/sheep.lua +++ b/sheep.lua @@ -1,7 +1,6 @@ local S = mobs.intllib - local all_colours = { {"black", S("Black"), "#000000b0"}, {"blue", S("Blue"), "#015dbb70"}, @@ -26,7 +25,8 @@ local all_colours = { for _, col in ipairs(all_colours) do mobs:register_mob("mobs_animal:sheep_"..col[1], { -stepheight = 0.6, + stay_near = {"farming:straw", 10}, + stepheight = 0.6, type = "animal", passive = true, hp_min = 8, diff --git a/warthog.lua b/warthog.lua index c8d3362..29c5c55 100644 --- a/warthog.lua +++ b/warthog.lua @@ -5,7 +5,7 @@ local S = mobs.intllib -- Warthog by KrupnoPavel mobs:register_mob("mobs_animal:pumba", { -stepheight = 0.6, + stepheight = 0.6, type = "animal", passive = false, attack_type = "dogfight",