1
0
Fork 0
MineClone2/mods/ENTITIES/mobs_mc/guardian_elder.lua

117 lines
2.8 KiB
Lua
Raw Normal View History

2017-07-05 01:15:46 +00:00
-- v1.4
--###################
--################### GUARDIAN
--###################
local S = minetest.get_translator("mobs_mc")
2017-07-05 01:15:46 +00:00
2022-05-25 12:44:49 +00:00
mcl_mobs:register_mob("mobs_mc:guardian_elder", {
2021-04-25 15:30:15 +00:00
description = S("Elder Guardian"),
2017-07-05 01:15:46 +00:00
type = "monster",
2020-04-11 00:46:03 +00:00
spawn_class = "hostile",
2017-07-05 01:15:46 +00:00
hp_min = 80,
hp_max = 80,
2020-12-06 14:46:42 +00:00
xp_min = 10,
xp_max = 10,
2019-10-02 16:31:16 +00:00
breath_max = -1,
passive = false,
attack_type = "dogfight",
2017-07-05 01:15:46 +00:00
pathfinding = 1,
view_range = 16,
walk_velocity = 2,
run_velocity = 4,
damage = 8,
2017-07-25 22:26:18 +00:00
reach = 3,
2017-07-05 01:15:46 +00: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 = {
2020-12-05 20:22:59 +00:00
random = "mobs_mc_guardian_random",
war_cry = "mobs_mc_guardian_random",
damage = {name="mobs_mc_guardian_hurt", gain=0.3},
death = "mobs_mc_guardian_death",
flop = "mobs_mc_squid_flop",
2020-12-05 20:22:59 +00:00
base_pitch = 0.6,
2017-07-05 01:15:46 +00: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 20:55:22 +00:00
-- TODO: Reduce # of drops when ocean monument is ready.
-- Greatly increased amounts of prismarine
2022-05-25 21:25:15 +00:00
{name = "mcl_ocean:prismarine_shard",
2017-07-05 01:15:46 +00:00
chance = 1,
2019-12-18 20:55:22 +00:00
min = 1,
2020-12-23 16:41:42 +00:00
max = 64,
looting = "common",},
2019-12-18 20:55:22 +00:00
2017-07-05 01:15:46 +00:00
-- TODO: Only drop if killed by player
2022-05-25 21:25:15 +00:00
{name = "mcl_sponges:sponge_wet",
2017-07-05 01:15:46 +00:00
chance = 1,
min = 1,
max = 1,},
-- The following drops are approximations
-- Fish / prismarine crystal
2022-05-25 21:25:15 +00:00
{name = "mcl_fishing:fish_raw",
2017-07-05 01:15:46 +00:00
chance = 4,
min = 1,
2020-12-23 16:41:42 +00:00
max = 1,
looting = "common",},
2022-05-25 21:25:15 +00:00
{name = "mcl_ocean:prismarine_crystals",
2019-12-18 20:55:22 +00:00
chance = 1,
2017-07-05 01:15:46 +00:00
min = 1,
2020-12-23 16:41:42 +00:00
max = 10,
looting = "common",},
2017-07-05 01:15:46 +00:00
-- Rare drop: fish
2022-05-25 21:25:15 +00:00
{name = "mcl_fishing:fish_raw",
2017-07-05 01:15:46 +00:00
chance = 160, -- 2.5% / 4
min = 1,
2020-12-23 16:41:42 +00:00
max = 1,
looting = "rare",
looting_factor = 0.01 / 4,},
2022-05-25 21:25:15 +00:00
{name = "mcl_fishing:salmon_raw",
2017-07-05 01:15:46 +00:00
chance = 160,
min = 1,
2020-12-23 16:41:42 +00:00
max = 1,
looting = "rare",
looting_factor = 0.01 / 4,},
2022-05-25 21:25:15 +00:00
{name = "mcl_fishing:clownfish_raw",
2017-07-05 01:15:46 +00:00
chance = 160,
min = 1,
2020-12-23 16:41:42 +00:00
max = 1,
looting = "rare",
looting_factor = 0.01 / 4,},
2022-05-25 21:25:15 +00:00
{name = "mcl_fishing:pufferfish_raw",
2017-07-05 01:15:46 +00:00
chance = 160,
min = 1,
2020-12-23 16:41:42 +00:00
max = 1,
looting = "rare",
looting_factor = 0.01 / 4,},
2017-07-05 01:15:46 +00:00
},
fly = true,
makes_footstep_sound = false,
2022-05-25 21:25:15 +00:00
fly_in = { "mcl_core:water_source", "mclx_core:river_water_source" },
jump = false,
view_range = 16,
2017-07-05 01:15:46 +00:00
})
-- Spawning disabled due to size issues <- what do you mean? -j4i
2020-05-08 15:44:27 +00:00
-- TODO: Re-enable spawning
2022-05-25 21:25:15 +00:00
-- mcl_mobs:spawn_specific("mobs_mc:guardian_elder", { "mcl_core:water_source", "mclx_core:river_water_source" }, { "mcl_core:water_source", "mclx_core:river_water_source" }, 0, minetest.LIGHT_MAX+1, 30, 40000, 2, mcl_vars.mg_overworld_min, mobs_mc.water_level-18)
2017-07-05 01:15:46 +00:00
-- spawn eggs
2022-05-25 12:44:49 +00:00
mcl_mobs:register_egg("mobs_mc:guardian_elder", S("Elder Guardian"), "mobs_mc_spawn_icon_guardian_elder.png", 0)
2017-07-05 01:15:46 +00:00