Tick procedure that updates geckolib texture freezes my game

Started by Legalo on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Tick procedure that updates geckolib texture freezes my game

Hello I'm making a tameable mob and I want to make so that whenever the mob is targeting another mob it's texture changes to a red variation. I'm using geckolib for this and I came up with this procedure that I run every game tick.
https://files.catbox.moe/waphxe.png
However whenever I spawn the entity the game just freezes (No crash so no log). Anyone knows why or how to fix it?

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I got it to not crash,…
Fri, 10/04/2024 - 04:08

I got it to not crash, however now it just flashes red for a frame whenever it gets a target instead of staying red until there's no target
https://files.catbox.moe/f1a454.png