1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-11 21:00:41 +01:00

Add the drops of the PumpKing

This commit is contained in:
Ombridride 2015-10-08 00:11:30 +02:00
parent de00be27c6
commit 60eee4936a

View File

@ -1,4 +1,4 @@
-- Pumpking by Blert2112 -- PumpKing by Blert2112
mobs:register_mob("mobs:pumpking", { mobs:register_mob("mobs:pumpking", {
type = "monster", type = "monster",
visual = "mesh", visual = "mesh",
@ -33,12 +33,22 @@ mobs:register_mob("mobs:pumpking", {
view_range = 25, view_range = 25,
stepheight = 1.1, stepheight = 1.1,
drops = { drops = {
-- Ressource & Decoration drops
{name = "farming:jackolantern", chance = 1, min = 1, max = 1} {name = "farming:jackolantern", chance = 1, min = 1, max = 1}
{name = "default:diamond_block", chance = 2, min = 1, max = 3}
-- Hunter drops
{name = "3d_armor:helmet_hardenedleather", chance = 10, min = 1, max = 1}
{name = "3d_armor:chestplate_hardenedleather", chance = 10, min = 1, max = 1}
{name = "throwing:bow_minotaur_horn", chance = 33, min = 1, max = 1}
-- Warrior drops
{name = "3d_armor:helmet_mithril", chance = 10, min = 1, max = 1}
{name = "3d_armor:chestplate_mithril", chance = 10, min = 1, max = 1}
{name = "moreores:sword_mithril", chance = 33, min = 1, max = 1}
}, },
lifetimer = 300, -- 5 minutes lifetimer = 300, -- 5 minutes
shoot_interval = 1000, -- (lifetimer - (lifetimer / 4)), borrowed for do_custom timer --shoot_interval = 1000, -- (lifetimer - (lifetimer / 4)), borrowed for do_custom timer
on_die = function(self) on_die = function(self)
minetest.chat_send_all("A group of players killed a Pumpking!") minetest.chat_send_all("A group of players killed a PumpKing!")
end end
}) })
@ -69,11 +79,11 @@ mobs:register_mob("mobs:pumpboom", {
water_damage = 0, water_damage = 0,
lava_damage = 0, lava_damage = 0,
fall_damage = 0, fall_damage = 0,
damage = 4, damage = 6,
attack_type = "explode", attack_type = "explode",
group_attack = true, group_attack = true,
view_range = 15, view_range = 15,
walk_velocity = 2, walk_velocity = 2.5,
run_velocity = 4, run_velocity = 4,
drops = { drops = {
{name = "farming:pumpkin_seed", chance = 1, min = 1, max = 4} {name = "farming:pumpkin_seed", chance = 1, min = 1, max = 4}