Model layers do not update properly

Started by eagle_skull14 on

Topic category: Troubleshooting, bugs, and solutions

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Model layers do not update properly

Hello, I know this will probably fall on deaf ears, but as the title says, I am having this super annoying issue that makes no sense related to model layers and how they update. I have a mob that has 3 mood: angry, normal, and happy. It also has a synced data integer value called joy that expresses which mood to show. The default texture is normal, and it has the other two moods as model layers. When my entity spawns, it is given a mood of 2, which is happy. (1 is normal, 0 is angry.) The entity has a gui with three slots for differing items, and is given two random ones at spawn, which is why it has a default mood of 2 (happy.) But whenever the world is reloaded, change of dimensions, etc, the angry model shows up, but the data shows it still has a mood of 2. When you open the gui it refreshes and fixes it, but i want it to update automatically. I already have an on entity tick procedure that checks it's gui's items slots and sets it's joy level accordingly, and when you run the /data command it shows up right, but the model layer does not update along with it. I am so very confused and angry (guess my joy level is 0 lol) and I don't know if its the gui and its slots or a bug with how the model layers work. I am running MCreator 2024.4 and Neoforge 21.1.65 on Java 1.21.1. Thank you!