1
0
Fork 0

Piglins no longer aggro for enchanted gold armour

illager_banner_description
ancientmarinerdev 2023-05-11 01:16:24 +01:00 committed by PrairieWind
parent 8a2c90406f
commit 3aed71fb85
1 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,10 @@ function mobs_mc.player_wears_gold(player)
for i=1, 6 do
local stack = player:get_inventory():get_stack("armor", i)
local item = stack:get_name()
if item == "mcl_armor:chestplate_gold" or item == "mcl_armor:leggings_gold" or item == "mcl_armor:helmet_gold" or item == "mcl_armor:boots_gold" then
if string.find(item, "mcl_armor:chestplate_gold")
or string.find(item, "mcl_armor:leggings_gold")
or string.find(item, "mcl_armor:helmet_gold")
or string.find(item, "mcl_armor:boots_gold") then
return true
end
end