Tick procedure that updates geckolib texture freezes my game

Started by Legalo on

Topic category: Help with modding (Java Edition)

Last seen on 04:39, 4. Oct 2024
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?

Last seen on 04:12, 4. Oct 2024
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

Last seen on 04:39, 4. Oct 2024
Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ended up just coding my own…
Fri, 10/04/2024 - 04:33

Ended up just coding my own procedure. Mcreator really needs an "Is (entity) aggressive" block
https://files.catbox.moe/cqov01.png