Need help with java block entity animations

Started by Cool_Link_13 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help with java block entity animations

I'm trying to make a block similar to a chest that plays opening and closing animations. But every procedure I tried to get it to work malfunctions, fails to build, or doesn't have the right "dependencies" even though they needed ones are provided. Anybody know what I'm doing wrong here?

 

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, after experimenting with…
Tue, 07/29/2025 - 19:10

Ok, after experimenting with NBT tags I managed to get the opening animation to play correctly. I set the NBT tag to "IsOpen" when right clicked and then it checks if that tag is true then it triggers the animation. Now how do I reverse this process for the closing? I would somehow need to see if the GUI of the block is closed.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think there is a dropdown…
Tue, 07/29/2025 - 19:20

I think there is a dropdown advanced settings or more settings menu for guis that has procedure triggers for when the gui is opened and for when it is closed. However, I'm not sure if it would give the X Y Z location of the block, or the X Y Z location of the player interacting with the block, so it might not be particularly easy to work with.

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've tried using "if GUI of…
Tue, 07/29/2025 - 19:52

I've tried using "if GUI of type is open" but whenever I plug it in it says the procedure doesn't have the correct dependencies. I think I might try seeing if the "target entity" is a player and see if that fixes it. I have a "is block same type as" procedure built in already.