mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-16 23:40:31 +01:00
Add ghoat (forget add files in the latest commit)
This commit is contained in:
parent
007fa5d7c8
commit
95827d8386
65
mods/mobs/ghoat.lua
Normal file
65
mods/mobs/ghoat.lua
Normal file
|
@ -0,0 +1,65 @@
|
|||
|
||||
-- Goat by DonBatman
|
||||
|
||||
mobs:register_mob("mobs:goat", {
|
||||
-- animal, monster, npc, barbarian
|
||||
type = "animal",
|
||||
-- aggressive, does 4 damage to player when threatened
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
damage = 5,
|
||||
-- health & armor
|
||||
hp_min = 15,
|
||||
hp_max = 20,
|
||||
armor = 200,
|
||||
-- textures and model
|
||||
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.75, 0.3},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_goat.b3d",
|
||||
drawtype = "front",
|
||||
textures = {
|
||||
{"mobs_goat_white.png"},
|
||||
{"mobs_goat_brown.png"},
|
||||
{"mobs_goat_grey.png"},
|
||||
},
|
||||
blood_texture = "mobs_blood.png",
|
||||
visual_size = {x=2,y=2},
|
||||
-- sounds
|
||||
makes_footstep_sound = true,
|
||||
sounds = {
|
||||
random = "mobs_sheep",
|
||||
},
|
||||
-- speed and jump
|
||||
walk_velocity = 1.5,
|
||||
run_velocity = 3,
|
||||
jump = true,
|
||||
-- drops raw meat when dead
|
||||
drops = {
|
||||
{name = "mobs:meat_raw",
|
||||
chance = 1, min = 2, max = 4},
|
||||
},
|
||||
-- damaged by
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
-- model animation
|
||||
animation = {
|
||||
speed_normal = 15, speed_run = 15,
|
||||
stand_start = 1, stand_end = 60, -- head down/up
|
||||
walk_start = 122, walk_end = 182, -- walk
|
||||
run_start = 122, run_end = 182, -- walk
|
||||
punch_start = 183, punch_end = 267, -- attack
|
||||
},
|
||||
-- follows wheat
|
||||
follow = "farming:wheat",
|
||||
view_range = 8,
|
||||
-- replace grass/wheat with air (eat)
|
||||
replace_rate = 50,
|
||||
replace_what = {"group:flora"},
|
||||
replace_with = "air",
|
||||
})
|
||||
-- spawn on dirt_with_grass between -1 and 20 light, 1 in 20000 chance, 1 goat in area up to 31000 in height
|
||||
mobs:register_spawn("mobs:goat", {"default:dirt_with_grass"}, 20, -1, 10000, 1, 31000)
|
||||
-- register spawn egg
|
||||
mobs:register_egg("mobs:goat", "Goat", "default_grass.png", 1)
|
||||
|
BIN
mods/mobs/models/mobs_goat.b3d
Normal file
BIN
mods/mobs/models/mobs_goat.b3d
Normal file
Binary file not shown.
BIN
mods/mobs/textures/mobs_goat_brown.png
Normal file
BIN
mods/mobs/textures/mobs_goat_brown.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.0 KiB |
BIN
mods/mobs/textures/mobs_goat_grey.png
Normal file
BIN
mods/mobs/textures/mobs_goat_grey.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
BIN
mods/mobs/textures/mobs_goat_white.png
Normal file
BIN
mods/mobs/textures/mobs_goat_white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
Loading…
Reference in New Issue
Block a user