summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-05-12 10:01:43 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-05-12 10:01:43 +0100
commit31e4488172c7d857575754d55b679a32a0703ae9 (patch)
tree10afdb6e019493b645f8443d111ed8fdf6d2147b
parent8deab4025606e2469dc6d28b141abfe586531d70 (diff)
add owner loyalty to hogs
-rw-r--r--cow.lua2
-rw-r--r--warthog.lua1
2 files changed, 2 insertions, 1 deletions
diff --git a/cow.lua b/cow.lua
index 30c71f9..c9b9e1e 100644
--- a/cow.lua
+++ b/cow.lua
@@ -47,7 +47,7 @@ mobs:register_mob("mobs_animal:cow", {
punch_end = 100,
},
follow = "farming:wheat",
- view_range = 7,
+ view_range = 8,
replace_rate = 10,
-- replace_what = {"default:grass_3", "default:grass_4", "default:grass_5", "farming:wheat_8"},
replace_what = {
diff --git a/warthog.lua b/warthog.lua
index 81daacf..0afcc52 100644
--- a/warthog.lua
+++ b/warthog.lua
@@ -9,6 +9,7 @@ mobs:register_mob("mobs_animal:pumba", {
passive = false,
attack_type = "dogfight",
group_attack = true,
+ owner_loyal = true,
reach = 2,
damage = 2,
hp_min = 5,