OldCombatMechanics

OldCombatMechanics

46.1k Downloads

NBT problem - Full armor values without armor

revkilleri opened this issue ยท 9 comments

commented

Info

  • Server version: 1.11.2
  • OldCombatMechanics version: 1.6.6
  • Server log file: without problems
  • OldCombatMechanics config file: https://pastebin.com/uZWKA18S

Problem Description

Some players at my server has problem with armor values. They are like with full armor (bugged from previous wearing of diamond armor), but without any real piece of armor . If player take worst armor, he has still full armor. I think problem must be in NBT of player. I dont have any tools to reset this armor stats "stacked" into one account in nbt tags. Maybe it would work with fix for unequip/equip event that will check this bugged armor values at account.

https://imgur.com/a/0UqnEur

NBT OF player:
https://pastebin.com/0yqHdSQ9

Thank you for solution or fix. :)

commented

Try changing the armor in config and turn old armor off.

commented

Thank you for response. I tried, but without any changes in this NBT of player and or fix armor. Problem is still same.

commented

What happens if they put armour back on then take it off again?

commented

Without any change... armor value of the player is still same. With armor, or without. I tried it with iron armor... but bugged armor value override it... so it armor value is still full with armor, or without.

NBT with IRON ARMOR on bugged player:
https://pastebin.com/F1dERYz4

commented

How are you putting on / taking off the armour? (Left-click/right-click/shift-click etc.)

commented

I tried all type of putting on and taking off iron armor, but it is without any changes in armor value.

commented

OldCombatMechanics does modify the NBT of the player itself, only the items they are wearing. If you would like, I can add a feature to OCMFixer to revert the armor NBT of all your players. However, as I said, OCM does not modify player NBT, just the armor items. This issue must have been caused by another plugin.

Do you know of any plugins on your server which modify player NBT? I doubt it has anything to do with OCM, but I would be curious if it was some strange interaction between OCM and another plugin.

commented

OldCombatMechanics does modify the NBT of the player itself, only the items they are wearing. If you would like, I can add a feature to OCMFixer to revert the armor NBT of all your players. However, as I said, OCM does not modify player NBT, just the armor items. This issue must have been caused by another plugin.

Do you know of any plugins on your server which modify player NBT? I doubt it has anything to do with OCM, but I would be curious if it was some strange interaction between OCM and another plugin.

It would be awesome if u add this feature to OCMFixer. If this problem is not caused by OCM, that should be plugin mythicmobs, where we are using attributes for custom leather armor, which maybe can cause this.

commented

@revkilleri please check the issue report here: foxfirecodes/OCMFixer#4

I am closing this issue report as it is now a concern of OCMFixer.