Started by
Cool_Link_13
on
Topic category: Help with Minecraft modding (Java Edition)
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?
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.
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.
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.
None of the GUI blocks I tried worked correctly. For reference here's the opening animation procedure
https://imgur.com/a/sqfG0ac