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

View File

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

View File

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