So theres this mod called MutationCraft and it sets stages to the player and says it in chat as well with no config to disable it. I was looking at the code and it says it's using persistent data for this but when i go to check the players persistent data (or the servers persistent data) its not there
public static void execute(LevelAccessor world, double x, double y, double z, Entity entity) {
StagesLulProcedure.execute(null, world, x, y, z, entity);
}
private static void execute(@Nullable Event event, LevelAccessor world, double x, double y, double z, Entity entity) {
if (entity == null) {
return;
}
if (entity instanceof Player) {
MutationcraftMod.queueServerWork((int)40, () -> {
Level _level;
Player _player;
entity.getPersistentData().m_128347_("Stage0", entity.getPersistentData().m_128459_("Stage0") + 1.0);
entity.getPersistentData().m_128347_("Stage1", entity.getPersistentData().m_128459_("Stage1") + 1.0);
entity.getPersistentData().m_128347_("Stage2", entity.getPersistentData().m_128459_("Stage2") + 1.0);
entity.getPersistentData().m_128347_("Stage3", entity.getPersistentData().m_128459_("Stage3") + 1.0);
if (entity.getPersistentData().m_128459_("Stage0") == 1.0) {
if (entity instanceof Player) {
_player = (Player)entity;
if (!_player.f_19853_.m_5776_()) {
_player.m_5661_((Component)Component.m_237113_((String)"Stage 0"), false);
}``` this is the class file and ive attatched my script attempt lol











