1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- warthog = warthog or {}
- warthog.modpath = minetest.get_modpath("warthog")
- -- Warthog by KrupnoPavel. Modified for MustTest by MustTest.
- mobs.register_mob("warthog:warthog", {
- description = "Nether Swinepig",
- type = "animal",
- passive = false,
- attack_type = "dogfight",
- group_attack = true,
- reach = 2,
- pathfinding = 1,
- damage = 5,
- hp_min = 5,
- hp_max = 50,
- armor = 200,
- armor_level = 2,
- collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
- visual = "mesh",
- mesh = "warthog_warthog.x",
- textures = {
- {"warthog_warthog.png"},
- },
- makes_footstep_sound = true,
- sounds = {
- random = "warthog_warthog",
- attack = "warthog_warthog_angry",
- },
- walk_velocity = 0.5,
- run_velocity = 3,
- jump = true,
- view_range = 20,
- drops = {
- {name = "mobs:meat_raw_pork", chance = 1, min = 1, max = 2},
- {name = "mobs:leather", chance = 2, min = 1, max = 1},
- },
- water_damage = 1,
- lava_damage = 5,
- light_damage = 0,
- fear_height = 3,
- animation = {
- speed_normal = 15,
- stand_start = 25,
- stand_end = 55,
- walk_start = 70,
- walk_end = 100,
- punch_start = 70,
- punch_end = 100,
- },
- makes_bones_in_lava = true,
- })
- mobs.register_egg("warthog:warthog", "Warthog", "rackstone_rackstone.png", 1)
|