How to make overlay base texture animated???

Started by franekniemiec on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make overlay base texture animated???
Sun, 06/29/2025 - 16:57 (edited)

I want someone to explain to me step by step how to make an animated overlay using the base texture thingie because idk how to do that ( i want portal like animation to apear after player eats smth ) 

Edited by franekniemiec on Sun, 06/29/2025 - 16:57
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello, I’ll tell you how to…
Tue, 07/15/2025 - 04:03

Hello, I’ll tell you how to do it using a custom effect:

  1. Create textures for each frame of your animation.
  2. Upload them to your MCreator project.
  3. Create an item that can be consumed (like food).
  4. Create a custom potion effect.
  5. Assign that effect to your item when it’s consumed.
  6. Create a timer:
    Global trigger: On player tick update

    if - "get event/target entity custom number NBT tag 'frame' > 1" do - "set event/target entity custom number NBT tag 'frame' to (get current frame - 1)" else - "set event/target entity custom number NBT tag 'frame' to 32" 

  7. Create an overlay and where it says "Display overlay in-game", use a procedure with this logic:

    if - "not has event/target entity active potion (your custom effect)" do -
       set event/target entity custom number NBT tag "frame" to (number of frames your animation will use)
       return logic: false return logic: true 

  8. Add the frames to the overlay, stacking them in order and aligning them in the exact same position.
    If they’re not aligned, the animation will look jittery—unless that’s the visual effect you want.
  9. For each image/frame, go into its display condition and create a separate procedure.
    You must assign the tick range where the frame should appear (usually 4–5 ticks per frame).
    You count from highest to lowest.
    If you have 8 frames, that’s about 32 ticks total. Example:

if - AND:
   get event/target entity custom number NBT tag "frame" >= 29
   get event/target entity custom number NBT tag "frame" <= 32 do - return logic: true else - return logic: false 

(This would be for frame 1.
For frame 2, use >= 25 and <= 28, and keep decreasing the range for each next image.)

If you’re still unsure, you can search the following video:
MCREATOR: Animated GUIs and Overlays | 2022.2
There, you’ll see everything clearly step by step.

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It can be done without using…
Tue, 07/15/2025 - 04:05

It can be done without using an effect, but well, I was just applying it like that and what I did happened to you :v