1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 18:20:36 +01:00
server-nalc/mods/mobs/minotaur.lua
Ombridride 29ea9b7af4 Reduced the damages and armor of the Minotaur
It can be killed easier and now kill naked players in 3 shots (instead of 2)
2015-09-25 21:35:24 +02:00

97 lines
2.5 KiB
Lua
Executable File

-- Minotaur Monster by ???
mobs:register_mob("mobs:minotaur", {
-- animal, monster, npc, barbarian
type = "monster",
-- aggressive, deals 11 damage to player when hit
passive = false,
attack_type = "dogfight",
damage = 8,
-- health & armor
hp_min = 80,
hp_max = 100,
armor = 90,
-- textures and model
collisionbox = {-0.9,-0.01,-0.9, 0.9,2.5,0.9},
visual = "mesh",
mesh = "mobs_minotaur.b3d",
textures = {
{"mobs_minotaur.png"},
},
visual_size = {x=1, y=1},
blood_texture = "mobs_blood.png",
-- sounds
makes_footstep_sound = true,
-- sounds = {
-- random = "mobs_zombie",
-- damage = "mobs_zombie_hit",
-- attack = "mobs_zombie_attack",
-- death = "mobs_zombie_death",
-- },
-- speed and jump
walk_velocity = 3,
run_velocity = 4,
jump = true,
floats = 1,
view_range = 16,
knock_back = 0.05, --this is a test
-- drops desert_sand and coins when dead
drops = {
{name = "maptools:gold_coin",
chance = 40, min = 1, max = 1,},
{name = "mobs:minotaur_eye",
chance = 2, min = 1, max = 2,},
{name = "mobs:minotaur_horn",
chance = 4, min = 1, max = 2,},
{name = "mobs:minotaur_fur",
chance = 1, min = 1, max = 3,},
},
water_damage = 0,
lava_damage = 5,
light_damage = 0,
-- model animation
animation = {
speed_normal = 15, speed_run = 15,
stand_start = 0, stand_end = 19,
walk_start = 20, walk_end = 39,
run_start = 20, run_end = 39,
punch_start = 40, punch_end = 50,
},
})
-- spawns on desert sand between -1 and 20 light, 1 in 20000 chance, 1 Minotaur in area up to 31000 in height
mobs:spawn_specific("mobs:minotaur", {"default:dirt_with_dry_grass"}, {"air"}, -1, 20, 30, 100000, 1, -31000, 31000, false)
-- register spawn egg
mobs:register_egg("mobs:minotaur", "Minotaur", "mobs_minotaur_inv.png", 1)
minetest.register_craftitem("mobs:minotaur_eye", {
description = "Minotaur Eye",
inventory_image = "mobs_minotaur_eye.png",
groups = {magic = 1},
})
minetest.register_craftitem("mobs:minotaur_horn", {
description = "Minotaur Horn",
inventory_image = "mobs_minotaur_horn.png",
groups = {magic = 1},
})
minetest.register_craftitem("mobs:minotaur_fur", {
description = "Minotaur Fur",
inventory_image = "mobs_minotaur_fur.png",
groups = {magic = 1},
})
minetest.register_craftitem("mobs:minotaur_lots_of_fur", {
description = "Lot of Minotaur Fur",
inventory_image = "mobs_minotaur_lots_of_fur.png",
groups = {magic = 1},
})
minetest.register_craft({
output = "mobs:minotaur_lots_of_fur",
recipe = {{"mobs:minotaur_fur", "mobs:minotaur_fur"},
{"mobs:minotaur_fur", "mobs:minotaur_fur"},
},
})