"use strict";

PlayerEvents.tick((event) => {
	const { player } = event;
	if (player.age % 100 === 0
		&& player.headArmorItem === 'create:netherite_diving_helmet'
		&& player.chestArmorItem === 'create:netherite_backtank'
		&& player.legsArmorItem === 'minecraft:netherite_leggings'
		&& player.feetArmorItem === 'create:netherite_diving_boots') {
		player.potionEffects.add("minecraft:fire_resistance", 350, 1, true, false);
	}
});
