Topic category: Feature requests and ideas for MCreator
As far as I'm aware, it's impossible to get the raw attribute value of an item like attack damage, attack speed, or armor, which would be very useful when testing to see if a player has a strong sword, or wearing a piece of armor that has a specific value of defense.
Methods of doing this are slightly possible such as using the block that gets the attribute value of the target entity (with modifiers), but fails very quickly when we take into account
- Effects like strength, which makes holding an iron sword for example go from giving a player an attack damage of 6 to an attack damage of 9.
- Wearing multiple armor pieces makes it impossible to test for a singular one as the block only tests for the total amount
- Any other attribute modifying commands, procedures, or items from other mods that boost default player stats beyond the expected range of what is shown in the item tooltip.
A block almost exactly like the one attached below would be the perfect solution to this if there was an item form of it instead of only entity.