Started by
MrCrayfisho
on
Topic category: Help with modding (Java Edition)
I want to make a gui animation, I watched a video but it doesn't work. Can someone explain me how can I make a gui animation like a 3 images animation?
Topic category: Help with modding (Java Edition)
I want to make a gui animation, I watched a video but it doesn't work. Can someone explain me how can I make a gui animation like a 3 images animation?
You can make frames for an animated texture. Make the 3 frames for example as 3 textures. Then go to mcreator and click create texture, at the bottom of the dropdown list should be animated texture. Then add in your frames, eg 3 textures. Then to make it animate you would make an overlay which contains your animated texture. You would then need to make a condition where the overlay is only true just before opening the gui.
So you would make eg. block right clicked opens gui;
Condition procedure: if variable = true, return true otherwise return false.
Gui opening procedure: block on right clicked, set variable to true (this makes the overlay and animation appear). Wait 20 ticks (however long your animation is or however long you want it to last) and set variable to false.
If you want the animation for the closing you would need to make a seperate animated texture and overlay for that and another variable for closing gui.