2017-07-05 03:15:46 +02:00
|
|
|
-- v1.4
|
|
|
|
|
|
|
|
--###################
|
|
|
|
--################### GUARDIAN
|
|
|
|
--###################
|
|
|
|
|
2019-03-07 20:43:39 +01:00
|
|
|
local S = minetest.get_translator("mobs_mc")
|
2017-07-05 03:15:46 +02:00
|
|
|
|
|
|
|
mobs:register_mob("mobs_mc:guardian_elder", {
|
|
|
|
type = "monster",
|
|
|
|
hp_min = 80,
|
|
|
|
hp_max = 80,
|
2019-10-02 18:31:16 +02:00
|
|
|
breath_max = -1,
|
2017-07-05 03:15:46 +02:00
|
|
|
passive = false,
|
|
|
|
attack_type = "dogfight",
|
|
|
|
pathfinding = 1,
|
|
|
|
view_range = 16,
|
|
|
|
walk_velocity = 2,
|
|
|
|
run_velocity = 4,
|
|
|
|
damage = 8,
|
2017-07-26 00:26:18 +02:00
|
|
|
reach = 3,
|
2017-07-05 03:15:46 +02:00
|
|
|
collisionbox = {-0.99875, 0.5, -0.99875, 0.99875, 2.4975, 0.99875},
|
|
|
|
visual = "mesh",
|
|
|
|
mesh = "mobs_mc_guardian.b3d",
|
|
|
|
textures = {
|
|
|
|
{"mobs_mc_guardian_elder.png"},
|
|
|
|
},
|
|
|
|
visual_size = {x=7, y=7},
|
|
|
|
sounds = {
|
|
|
|
damage = "mobs_mc_squid_hurt",
|
2018-09-14 16:27:58 +02:00
|
|
|
-- TODO: more and better sounds
|
2017-07-05 03:15:46 +02:00
|
|
|
distance = 16,
|
|
|
|
},
|
|
|
|
animation = {
|
|
|
|
stand_speed = 25, walk_speed = 25, run_speed = 50,
|
|
|
|
stand_start = 0, stand_end = 20,
|
|
|
|
walk_start = 0, walk_end = 20,
|
|
|
|
run_start = 0, run_end = 20,
|
|
|
|
},
|
|
|
|
drops = {
|
2019-12-18 21:55:22 +01:00
|
|
|
-- TODO: Reduce # of drops when ocean monument is ready.
|
|
|
|
|
|
|
|
-- Greatly increased amounts of prismarine
|
2017-07-05 03:15:46 +02:00
|
|
|
{name = mobs_mc.items.prismarine_shard,
|
|
|
|
chance = 1,
|
2019-12-18 21:55:22 +01:00
|
|
|
min = 1,
|
|
|
|
max = 64,},
|
|
|
|
|
2017-07-05 03:15:46 +02:00
|
|
|
-- TODO: Only drop if killed by player
|
|
|
|
{name = mobs_mc.items.wet_sponge,
|
|
|
|
chance = 1,
|
|
|
|
min = 1,
|
|
|
|
max = 1,},
|
|
|
|
|
|
|
|
-- The following drops are approximations
|
|
|
|
-- Fish / prismarine crystal
|
|
|
|
{name = mobs_mc.items.fish_raw,
|
|
|
|
chance = 4,
|
|
|
|
min = 1,
|
|
|
|
max = 1,},
|
|
|
|
{name = mobs_mc.items.prismarine_crystals,
|
2019-12-18 21:55:22 +01:00
|
|
|
chance = 1,
|
2017-07-05 03:15:46 +02:00
|
|
|
min = 1,
|
2019-12-18 21:55:22 +01:00
|
|
|
max = 10,},
|
2017-07-05 03:15:46 +02:00
|
|
|
|
|
|
|
-- Rare drop: fish
|
|
|
|
{name = mobs_mc.items.fish_raw,
|
|
|
|
chance = 160, -- 2.5% / 4
|
|
|
|
min = 1,
|
|
|
|
max = 1,},
|
|
|
|
{name = mobs_mc.items.salmon_raw,
|
|
|
|
chance = 160,
|
|
|
|
min = 1,
|
|
|
|
max = 1,},
|
|
|
|
{name = mobs_mc.items.clownfish_raw,
|
|
|
|
chance = 160,
|
|
|
|
min = 1,
|
|
|
|
max = 1,},
|
|
|
|
{name = mobs_mc.items.pufferfish_raw,
|
|
|
|
chance = 160,
|
|
|
|
min = 1,
|
|
|
|
max = 1,},
|
|
|
|
},
|
|
|
|
fly = true,
|
2017-11-30 15:36:17 +01:00
|
|
|
fly_in = { mobs_mc.items.water_source, mobs_mc.items.river_water_source },
|
2018-01-07 18:03:03 +01:00
|
|
|
stepheight = 0.1,
|
|
|
|
jump = false,
|
2017-07-05 03:15:46 +02:00
|
|
|
view_range = 16,
|
|
|
|
})
|
|
|
|
|
2017-08-16 22:08:17 +02:00
|
|
|
mobs:spawn_specific("mobs_mc:guardian_elder", mobs_mc.spawn.water, mobs_mc.spawn_water, 0, minetest.LIGHT_MAX+1, 30, 40000, 2, mobs_mc.spawn_height.overworld_min, mobs_mc.spawn_height.water-18)
|
2017-07-05 03:15:46 +02:00
|
|
|
|
|
|
|
-- spawn eggs
|
|
|
|
mobs:register_egg("mobs_mc:guardian_elder", S("Elder Guardian"), "mobs_mc_spawn_icon_guardian_elder.png", 0)
|
|
|
|
|