Trying to add an atrribute to armor and then also remove that attribute.
// priority: 0
PlayerEvents.tick(event => {
const { player } = event;
if (!(player.age % 20 === 0)) return;
if (player.chestArmorItem.id === 'create:netherite_backtank')
if (player.forgePersistentData.CreateFireImmune == 1)
{player.chestArmorItem.addAttributeModifier("cold_sweat:heat_resistance", 1)}
else {player.chestArmorItem.addAttributeModifier("cold_sweat:heat_resistance", 0)}
});
