Can Somebody Help Me With My Mobs?

Started by Rafael12612 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can Somebody Help Me With My Mobs?
Sun, 10/27/2024 - 23:24 (edited)

I Am Trying To Make A Mob That Will Play A Random Emote Every 15 Second If Idle. I Have 4 Emotes: Emote1, Emote2, Emote3, And Emote4, Anims, Also Has A Chance To Not Play An Animation At All.

Also When Hit Or A Player Has A Specific Item In Their Hand: Raw Salmon/Cod Will Change Walking Animation To Another Animation. Then Change Back To Default One Once Calmed Down Or Doesnt Have The Item In Their Hand.

SMALL INFO: Using Geckolib, Mcreator 2023.4, 1.19.2 Forge.

Edited by Rafael12612 on Sun, 10/27/2024 - 23:24
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Geckolib has a function that…
Thu, 10/31/2024 - 16:28

Geckolib has a function that lets you play a custom animation to an entity. You could give the entity a custom number data property, which you would use as a timer. On the entity's update tick, increment the timer, and if it reaches 15 seconds, (300 ticks), play a random animation.