From bb5045db1052c1752673e589b96764b0532fe7b5 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 23 Feb 2017 18:14:39 +0100 Subject: [PATCH] Tweak jumps of chicken and pigs --- mods/ENTITIES/mobs_mc/chicken.lua | 33 ++++--------------------------- mods/ENTITIES/mobs_mc/pig.lua | 3 ++- 2 files changed, 6 insertions(+), 30 deletions(-) diff --git a/mods/ENTITIES/mobs_mc/chicken.lua b/mods/ENTITIES/mobs_mc/chicken.lua index ddd16f2055..53d00d37a1 100644 --- a/mods/ENTITIES/mobs_mc/chicken.lua +++ b/mods/ENTITIES/mobs_mc/chicken.lua @@ -35,6 +35,10 @@ mobs:register_mob("mobs_mc:chicken", { water_damage = 1, lava_damage = 5, light_damage = 0, + fall_damage = false, + fear_height = 4, + jump_height = 4.5, + floats = true, sounds = { random = "mobs_chicken", death = "Chickenhurt1", @@ -57,35 +61,6 @@ mobs:register_mob("mobs_mc:chicken", { fly_start = 181, fly_end = 187, }, - --[[ - follow = "farming:seed_wheat", - view_range = 5, - on_rightclick = function(self, clicker) - if clicker:get_inventory() then - if minetest.registered_items[":mobs:egg"] then - clicker:get_inventory():add_item("main", ItemStack(":mobs:egg 1")) - end - end - end, - - do_custom = function(self) - - if self.child - or math.random(1, 5000) > 1 then - return - end - - local pos = self.object:getpos() - - minetest.add_item(pos, ":mobs:egg") - - minetest.sound_play("default_place_node_hard", { - pos = pos, - gain = 1.0, - max_hear_distance = 5, - }) - end, - ]] --from mobs_animals follow = {"mcl_farming:wheat_seeds", "mcl_farming:beetroot_seeds", "mcl_farming:pumpkin_seeds", "mcl_farming:melon_seeds"}, view_range = 5, diff --git a/mods/ENTITIES/mobs_mc/pig.lua b/mods/ENTITIES/mobs_mc/pig.lua index da62b1c8a0..0edf4c02a1 100644 --- a/mods/ENTITIES/mobs_mc/pig.lua +++ b/mods/ENTITIES/mobs_mc/pig.lua @@ -30,7 +30,8 @@ mobs:register_mob("mobs_mc:pig", { water_damage = 1, lava_damage = 5, light_damage = 0, - fear_height = 3, + fear_height = 4, + jump_height = 4.5, sounds = { random = "mobs_pig", death = "mobs_pig_angry",