mobs:register_mob("mobs_m:smallfish", { type = "animal", passive = true, reach = 1, damage = 0, attack_type = "dogfight", hp_min = 10, hp_max = 25, armor = 100, collisionbox = {-0.2, -0.2, -0.2, 0.2, 0.2, 0.2}, visual = "mesh", mesh = "fish.b3d", textures = { {"mobs_smallfish.png"}, }, makes_footstep_sound = false, view_range = 10, walk_velocity = 3, run_velocity = 6, runaway = true, runaway_timer = 40, jump = false, jump_height = 0, stepheight = 1.5, fly = true, fly_in = "default:water_source", fall_damage = 0, fall_speed = 0, drops = { {name = "mobs_m:smallfish_raw", chance = 9, min = 1, max = 1}, }, water_damage = 0, lava_damage = 1, light_damage = 0, animation = { speed_normal = 15, speed_run = 20, stand_start = 1, stand_end = 20, walk_start = 1, walk_end = 20, run_start = 1, run_end = 20, }, }) mobs:register_spawn("mobs_m:smallfish", {"default:water_source",}, 20, 10, 15000, 2, 11000) mobs:register_egg("mobs_m:smallfish", "Small Fish", "default_water.png", 1) mobs:register_mob("mobs_m:ammonite_s", { type = "animal", passive = true, reach = 1, damage = 0, attack_type = "dogfight", hp_min = 15, hp_max = 35, armor = 100, collisionbox = {-0.5, -0.2, -0.5, 0.5, 0.5, 0.5}, visual = "mesh", mesh = "ammonite.b3d", textures = { {"mobs_ammonite.png"}, }, makes_footstep_sound = false, view_range = 10, walk_velocity = 3, run_velocity = 6, runaway = true, runaway_timer = 40, jump = false, jump_height = 0, stepheight = 1.5, fly = true, fly_in = "default:water_source", fall_damage = 0, fall_speed = 0, water_damage = 0, lava_damage = 1, light_damage = 0, animation = { speed_normal = 15, speed_run = 20, stand_start = 2, stand_end = 23, walk_start = 2, walk_end = 23, run_start = 2, run_end = 23, }, }) mobs:register_egg("mobs_m:ammonite_s", "Small Ammonite", "default_sand.png", 1) mobs:register_mob("mobs_m:ammonite_b", { type = "animal", passive = true, reach = 1, damage = 0, attack_type = "dogfight", hp_min = 15, hp_max = 35, armor = 100, collisionbox = {-1, -0.2, -1, 1, 1, 1.2}, visual = "mesh", mesh = "ammonite.b3d", textures = { {"mobs_ammonite_big.png"}, }, visual_size = {x=2.5, y=2.5}, makes_footstep_sound = false, view_range = 10, walk_velocity = 3, run_velocity = 6, runaway = true, runaway_timer = 40, jump = false, jump_height = 0, stepheight = 1.5, fly = true, fly_in = "default:water_source", fall_damage = 0, fall_speed = 0, water_damage = 0, lava_damage = 1, light_damage = 0, animation = { speed_normal = 15, speed_run = 20, stand_start = 2, stand_end = 23, walk_start = 2, walk_end = 23, run_start = 2, run_end = 23, }, }) mobs:register_egg("mobs_m:ammonite_b", "Large Ammonite", "default_sand.png", 1) mobs:register_mob("mobs_m:trilobite", { type = "animal", passive = true, reach = 1, damage = 0, attack_type = "dogfight", hp_min = 10, hp_max = 25, armor = 100, collisionbox = {-0.2, 0, -0.2, 0.2, 0.2, 0.2}, visual = "mesh", mesh = "trilobite.b3d", textures = { {"mobs_trilobite.png"}, }, makes_footstep_sound = false, view_range = 5, walk_velocity = 1, run_velocity = 2, runaway = true, runaway_timer = 40, jump = 0, floats = 0, jump_height = 0, stepheight = 1.3, fall_damage = 0, fall_speed = -5, water_damage = 0, lava_damage = 1, light_damage = 0, animation = { speed_normal = 15, speed_run = 20, stand_start = 40, stand_end = 60, walk_start = 1, walk_end = 30, run_start = 1, run_end = 30, }, }) --mobs:register_spawn("mobs_m:trilobite", {"default:water_source",}, 20, 10, 15000, 2, 11000) mobs:register_egg("mobs_m:trilobite", "Trilobite", "default_water.png", 1) mobs:register_mob("mobs_m:riverfish", { type = "animal", passive = true, reach = 1, damage = 0.5, attack_type = "dogfight", hp_min = 10, hp_max = 25, armor = 90, collisionbox = {-0.2, -0.2, -0.2, 0.2, 0.2, 0.2}, visual_size = {x=1.6, y=1.6}, visual = "mesh", mesh = "fish.b3d", textures = { {"mobs_riverfish.png"}, }, makes_footstep_sound = false, view_range = 10, walk_velocity = 3, run_velocity = 6, runaway = false, runaway_timer = 40, jump = false, jump_height = 0, stepheight = 1.5, fly = true, fly_in = "default:river_water_source", fall_damage = 0, fall_speed = 0, drops = { {name = "mobs_m:smallfish_raw", chance = 9, min = 1, max = 1}, }, water_damage = 0, lava_damage = 1, light_damage = 0, animation = { speed_normal = 15, speed_run = 20, stand_start = 1, stand_end = 20, walk_start = 1, walk_end = 20, run_start = 1, run_end = 20, }, }) mobs:register_spawn("mobs_m:riverfish", {"default:river_water_source",}, 20, 10, 15000, 2, 11000) mobs:register_egg("mobs_m:riverfish", "River Fish", "default_dirt.png", 1) mobs:register_mob("mobs_m:pirana", { type = "monster", passive = false, group_attack = true, reach = 1, damage = 0.5, attack_type = "dogfight", hp_min = 10, hp_max = 25, armor = 90, collisionbox = {-0.2, 0, -0.2, 0.2, 0.4, 0.2}, visual_size = {x=1.6, y=1.6}, visual = "mesh", mesh = "pirana.b3d", textures = { {"mobs_pirana.png"}, }, makes_footstep_sound = false, view_range = 10, walk_velocity = 3, run_velocity = 6, runaway = false, runaway_timer = 40, jump = false, jump_height = 0, stepheight = 0, fly = true, fly_in = "default:river_water_source", fall_damage = 0, fall_speed = 0, drops = { {name = "mobs_m:smallfish_raw", chance = 9, min = 1, max = 1}, }, water_damage = 0, lava_damage = 1, light_damage = 0, animation = { speed_normal = 15, speed_run = 20, stand_start = 2, stand_end = 30, walk_start = 2, walk_end = 30, run_start = 2, run_end = 30, }, }) mobs:register_spawn("mobs_m:pirana", {"default:river_water_source",}, 20, 10, 15000, 2, 11000) mobs:register_egg("mobs_m:pirana", "Pirana", "default_dirt.png", 1) minetest.register_craftitem("mobs_m:smallfish_raw", { description = "Small Raw Fish", inventory_image = "mobs_smallfish_item.png", on_use = minetest.item_eat(1) }) minetest.register_craftitem("mobs_m:smallfish_cooked", { description = "Small Cooked Fish", inventory_image = "mobs_smallfish_cooked.png", on_use = minetest.item_eat(2) }) minetest.register_craft({ type = "cooking", output = "mobs_m:smallfish_raw", recipe = "mobs_m:smallfish_cooked", cooktime = 3, })