]> git.lizzy.rs Git - Crafter.git/blobdiff - mods/mob/init.lua
Make non-hostile mobs run away from players when punched
[Crafter.git] / mods / mob / init.lua
index 10cc5fb57f54db3f499d1e6fbc8f0e963a8dff4e..aeeb89d58c2991b49ae65565cf92376b76ae6df1 100644 (file)
@@ -117,7 +117,7 @@ mobs.register_mob(
         state = 0,
         view_distance = 15,
         
-        item_drop = "mob:egg"
+        item_drop = {"mob:egg","mob:feather"}
         standing_frame = {x=20,y=20},
         moving_frame = {x=0,y=20},
         animation_multiplier = 15,
@@ -179,7 +179,7 @@ mobs.register_mob(
         state = 0,
         view_distance = 15,
         
-        item_drop = "weather:snowball"
+        item_drop = {"weather:snowball","main:coal","mob:carrot","main:stick"}
         standing_frame = {x=0,y=0},
         moving_frame = {x=0,y=0},
         animation_multiplier = 10,
@@ -320,6 +320,7 @@ mobs.register_mob(
        hurt_sound = "slime_die",
        die_sound = "slime_die",
        attack_type = "punch",
+       attack_damage = 6,
        custom_on_death = function(self)
                local pos = self.object:get_pos()
                for i = 1,4 do
@@ -357,6 +358,7 @@ mobs.register_mob(
        death_rotation = "z",
        hurt_sound = "slime_die",
        die_sound = "slime_die",
+       attack_damage = 2,
        attack_type = "punch",
        custom_on_death = function(self)
                local pos = self.object:get_pos()
@@ -396,6 +398,7 @@ mobs.register_mob(
        death_rotation = "z",
        hurt_sound = "slime_die",
        die_sound = "slime_die",
+       attack_damage = 1,
        attack_type = "punch",
        item_drop = "mob:slimeball"
        }
@@ -651,6 +654,7 @@ mobs.register_mob(
         hostile = true,
         friendly_in_daylight = true,
         attacked_hostile = true,
+        attack_damage = 3,
         attack_type = "punch",
         group_attack = true,