diff --git a/init.lua b/init.lua index 2c66e27..4ac2a7f 100644 --- a/init.lua +++ b/init.lua @@ -68,6 +68,66 @@ mobs:register_spawn("dmobs:panda", {"default:dirt_with_grass","ethereal:bamboo_d mobs:register_egg("dmobs:panda", "Panda", "default_papyrus.png", 1) +mobs:register_mob("dmobs:gnorm", { + type = "npc", + attacks_monsters = false, + can_dig = true, + passive = false, + group_attack = true, + reach = 1, + damage = 1, + attack_type = "dogfight", + hp_min = 32, + hp_max = 42, + armor = 130, + collisionbox = {-0.4, -0.3, -0.4, 0.4, 0.8, 0.4}, + visual = "mesh", + mesh = "gnorm.b3d", + textures = { + {"dmobs_gnorm.png"}, + }, + blood_texture = "mobs_blood.png", + visual_size = {x=1, y=1}, + makes_footstep_sound = true, + runaway = true, + walk_velocity = 0.5, + run_velocity = 4, + jump = true, + water_damage = 0, + lava_damage = 2, + light_damage = 0, + replace_rate = 10, + replace_what = {"default:apple", "default:stone", "default:stone_with_coal", "default:fence_wood"}, + replace_with = "air", + follow = {"default:apple"}, + view_range = 14, + animation = { + speed_normal = 8, + speed_run = 30, + walk_start = 62, + walk_end = 81, + stand_start = 2, + stand_end = 9, + run_start = 62, + run_end = 81, + punch_start = 1, + punch_end = 1, + + }, + on_rightclick = function(self, clicker) + + if mobs:feed_tame(self, clicker, 8, true, true) then + return + end + + mobs:capture_mob(self, clicker, 0, 5, 50, false, nil) + end, +}) + +mobs:register_spawn("dmobs:gnorm", {"default:dirt_with_grass","default:wood"}, 20, 10, 15000, 2, 31000) + +mobs:register_egg("dmobs:gnorm", "Gnorm", "default_dirt.png", 1) + mobs:register_mob("dmobs:fox", { type = "monster", attacks_monsters = true, diff --git a/models/gnorm.b3d b/models/gnorm.b3d new file mode 100644 index 0000000..d4132e3 Binary files /dev/null and b/models/gnorm.b3d differ diff --git a/textures/dmobs_gnorm.png b/textures/dmobs_gnorm.png new file mode 100644 index 0000000..38e4c51 Binary files /dev/null and b/textures/dmobs_gnorm.png differ