How to make an entity play animation on right click? (Blockbench Modded Entity)

Started by eclipsehedgehog20 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an entity play animation on right click? (Blockbench Modded Entity)

Hey! Sorry in advance for the poor wording, but I'm making a mod for a personal map I'm working on, and I have an animation that plays when an entity is right clicked. The two problems are that I'm using the Modded Entity Blockbench model, so things possible with GeckoLib aren't available due to no plugins for 2025.2, and I can interact with the entity more than once. Are there some sort of workarounds for these? Thanks!

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Edit: I've figured out how…
Tue, 07/01/2025 - 18:08

Edit: I've figured out how to use playback conditions, but whenever I try to use an 'if' logic block that checks if the source entity is the player, I can't use the procedure due to missing dependencies. This is what I have set up now:

Event trigger - triggered by external call or when (global trigger)[Player right clicks on entity]
Play[block.beacon.activate]at x:[x] y:[y] z:[z] level:[1] pitch:[1] category:[master]
Send to chat to all players: ["Should have played the animation!"]
Return logic: Is[Event/target entity] (sub)type of [EnderRune]

And I want to have this set up:

Event trigger - triggered by external call or when (global trigger)[Player right clicks on entity]
if Is[Source entity] (sub)type of [Player]
do Play[block.beacon.activate]at x:[x] y:[y] z:[z] level:[1] pitch:[1] category:[master]
Send to chat to all players: ["Should have played the animation!"]
Return logic: true

Could someone please help? I don't know how to use procedures very well.