Nerf zombie/husk/zvillager drops

This commit is contained in:
Wuzzy 2018-01-23 23:13:55 +01:00
parent c9812c5acf
commit f7b0702457
2 changed files with 33 additions and 34 deletions

View File

@ -44,18 +44,15 @@ mobs:register_mob("mobs_mc:villager_zombie", {
min = 0, min = 0,
max = 2,}, max = 2,},
{name = mobs_mc.items.iron_ingot, {name = mobs_mc.items.iron_ingot,
-- approximation to 8.5% chance = 120, -- 2.5% / 3
chance = 11,
min = 1, min = 1,
max = 1,}, max = 1,},
{name = mobs_mc.items.carrot, {name = mobs_mc.items.carrot,
-- approximation to 8.5% chance = 120, -- 2.5% / 3
chance = 11,
min = 1, min = 1,
max = 1,}, max = 1,},
{name = mobs_mc.items.potato, {name = mobs_mc.items.potato,
-- approximation to 8.5% chance = 120, -- 2.5% / 3
chance = 11,
min = 1, min = 1,
max = 1,}, max = 1,},
}, },

View File

@ -14,6 +14,34 @@ local S, NS = dofile(MP.."/intllib.lua")
--################### ZOMBIE --################### ZOMBIE
--################### --###################
local drops_common = {
{name = mobs_mc.items.rotten_flesh,
chance = 1,
min = 0,
max = 2,},
{name = mobs_mc.items.iron_ingot,
chance = 120, -- 2.5% / 3
min = 1,
max = 1,},
{name = mobs_mc.items.carrot,
chance = 120, -- 2.5% / 3
min = 1,
max = 1,},
{name = mobs_mc.items.potato,
chance = 120, -- 2.5% / 3
min = 1,
max = 1,},
}
local drops_zombie = table.copy(drops_common)
table.insert(drops_zombie, {
-- Zombie Head
-- TODO: Only drop if killed by charged creeper
name = mobs_mc.items.head_zombie,
chance = 200, -- 0.5%
min = 1,
max = 1,
})
local zombie = { local zombie = {
type = "monster", type = "monster",
@ -44,34 +72,7 @@ local zombie = {
jump = true, jump = true,
--jump_height = 3, --jump_height = 3,
group_attack = true, group_attack = true,
drops = { drops = drops_zombie,
{name = mobs_mc.items.rotten_flesh,
chance = 1,
min = 0,
max = 2,},
{name = mobs_mc.items.iron_ingot,
-- approximation to 8.5%
chance = 11,
min = 1,
max = 1,},
{name = mobs_mc.items.carrot,
-- approximation to 8.5%
chance = 11,
min = 1,
max = 1,},
{name = mobs_mc.items.potato,
-- approximation to 8.5%
chance = 11,
min = 1,
max = 1,},
-- Head
-- TODO: Only drop if killed by charged creeper
{name = mobs_mc.items.head_zombie,
chance = 200, -- 0.5%
min = 1,
max = 1,},
},
animation = { animation = {
speed_normal = 25, speed_run = 50, speed_normal = 25, speed_run = 50,
stand_start = 40, stand_end = 80, stand_start = 40, stand_end = 80,
@ -105,6 +106,7 @@ local husk = table.copy(zombie)
husk.textures = {{"mobs_mc_husk.png"}} husk.textures = {{"mobs_mc_husk.png"}}
husk.light_damage = 0 husk.light_damage = 0
husk.water_damage = 3 husk.water_damage = 3
husk.drops = drops_common
-- TODO: Husks avoid water -- TODO: Husks avoid water
mobs:register_mob("mobs_mc:husk", husk) mobs:register_mob("mobs_mc:husk", husk)