1
0
Fork 0

Fix Piglin naming and add localisation entries

This commit is contained in:
ancientmarinerdev 2023-05-12 00:39:29 +01:00
parent 92c0809dbe
commit 2d89440972
3 changed files with 9 additions and 1 deletions

View File

@ -10,6 +10,7 @@ local S = minetest.get_translator("mobs_mc")
--###################
local hoglin = {
description = S("Hoglin"),
type = "monster",
passive = false,
spawn_class = "hostile",
@ -88,6 +89,7 @@ local hoglin = {
mcl_mobs.register_mob("mobs_mc:hoglin", hoglin)
local zoglin = table.copy(hoglin)
zoglin.description = S("Zoglin")
zoglin.fire_resistant = 1
zoglin.textures = {"extra_mobs_zoglin.png"}
zoglin.do_custom = function()
@ -101,6 +103,7 @@ mcl_mobs.register_mob("mobs_mc:zoglin", zoglin)
-- Baby hoglin.
local baby_hoglin = table.copy(hoglin)
baby_hoglin.description = S("Baby hoglin")
baby_hoglin.collisionbox = {-.3, -0.01, -.3, .3, 0.94, .3}
baby_hoglin.xp_min = 20
baby_hoglin.xp_max = 20

View File

@ -49,7 +49,12 @@ Wither=
Wolf=
Husk=
Zombie=
Piglin=
Baby Piglin=
Zombie Piglin=
Baby Zombie Piglin=
Sword Piglin=
Piglin Brute=
Farmer=
Fisherman=
Fletcher=

View File

@ -38,7 +38,7 @@ end
--################### piglin
--###################
local piglin = {
S("Piglin"),
description = S("Piglin"),
type = "monster",
passive = false,
spawn_class = "hostile",