Tick procedure that updates geckolib texture freezes my game

Started by Legalo on

Topic category: Help with Minecraft modding (Java Edition)

Active 10 months ago
Joined Oct 2024
Points:
61

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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?

Active 10 months ago
Joined Oct 2024
Points:
61

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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

Active 10 months ago
Joined Oct 2024
Points:
61

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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