When setting Attack damage it has the same issue as we had with Attack speed variable being set incorrectly that i reported and you fixed with this one https://mcreator.net/tracker/issue/55351 its the same issue and you can apply the same fix that you did with it as the offset is of 4 as well because i went to set the attack damage to 9 for a sword and when i loaded it into the game the sword had a attack damage of 13 instead of the number 9 which i set it to
Issue comments
Yes, this was explained already. And make sure to follow tag naming conventions as ore dictionary allows uppercase letters, but tags don't. More on tags: https://minecraft.gamepedia.com/Tag
We can not change this due to existing workspaces already using values they have. If we offset it now many users would have to replace their values so we are tied to backward compatibility. Just apply the offset manually.