mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
2029fd7428
- Prepared the update of Minotaur (renamed this mob minotaur) - NPC tamed with 4 diamonds now do 4 damage (before 6) - Wolf can now be tamed in exchange of 4 "raw_meat" and become dog, the dog can be healed with "raw_meat" (need to be change, maybe conflicted) - The dog mob is less powerful than the wolf (-2 damage, less walk/run velocity) => the explanation for this "nerf" is simple, the dog is almost free, compared to the NPC who costs 4 diamonds ! :) - Add one sound when wolfs attack - One small fix for the zombie monster - Add a pre-alpha version of yeti, many things missing for the moment (yeti is a monster who spawns in snow biome and attack wit snowball)
58 lines
1.3 KiB
Lua
58 lines
1.3 KiB
Lua
|
|
-- Minotaur Monster by ???
|
|
|
|
mobs:register_mob("mobs:minotaur", {
|
|
-- animal, monster, npc, barbarian
|
|
type = "monster",
|
|
-- aggressive, deals 6 damage to player when hit
|
|
passive = false,
|
|
attack_type = "dogfight",
|
|
damage = 6,
|
|
-- health & armor
|
|
hp_min = 40,
|
|
hp_max = 60,
|
|
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"},
|
|
},
|
|
rotate = 1.5,
|
|
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 = 2,
|
|
run_velocity = 4,
|
|
jump = true,
|
|
floats = 1,
|
|
view_range = 16,
|
|
-- drops desert_sand and coins when dead
|
|
drops = {
|
|
{name = "default:desert_sand",
|
|
chance = 1, min = 3, max = 5,},
|
|
{name = "maptools:copper_coin",
|
|
chance = 5, min = 2, max = 4,},
|
|
},
|
|
water_damage = 1,
|
|
lava_damage = 5,
|
|
light_damage = 2,
|
|
-- 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,
|
|
},
|
|
})
|