animation not playing (NO GECKOLIB)

Started by eating a burge… on

Topic category: Help with Minecraft modding (Java Edition)

animation not playing (NO GECKOLIB)

so im importing animations for my entity, i add all of them and make it so for the casting animation (its a wizard alien slime thing) it has to have blindness to function. so i make that and go to test it, but when i give the creature blindness, the animation just doesent play. the code is like
If event/target entity has effect blindness

          return true

else

          return false

 

and it just doesent work

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Potential Issue Your…
Tue, 07/29/2025 - 02:06

Potential Issue

  1. Your procedure should not "return false" under an else function and should, instead, return false at the end of the procedure/outside of the if/do block
  2. Instead of using effects, use synced data to determine what the entity is doing
    1. String Data can be used to specify numerous actions under 1 data value
      1. Name the String Data "animationPlayback" and use numerous keywords to define what animation should be playing
        1. Casting
        2. Idle
        3. Melee
        4. (Others)
      2. Check if the current synced string Data = your set action then return true
      3. Specify triggers/events that change the synced data based on what the entity is doing
      4. Make a test with potion effects changing synced data (This is a temporary thing to test, I do not recommend using potion effects to set synced data for animations)
  3. If nothing seems to work, test your animations directly
    1. Disable all animations and check them one at a time, marking one to play constantly and the rest to not play at all, then run the test environment
      1. If your animations still won't play even when marked to play constantly then the issue is your animations or the entity itself.
      2. re-export your entity and it's animations from Blockbench then re-import them into mcreator
      3. Click "Override Animations" on your entity when imported to ensure it plays no animations but loads all animated parts.