How to Make an Overlay in Minecraft (Mod Maker guide)
Learn how to add a custom GUI overlay to the in-game interface using the 9Minecraft Mod Maker right in your web browser with no installation needed.
Open the Studio and your workspace
Open the 9Minecraft Mod Maker directly in your web browser. You do not need to download or install anything to get started.
Open an existing workspace or create a new one. Keep in mind that the Overlay element supports NeoForge 26.1.2 and NeoForge 1.21.1.
Create a new Overlay element
In your workspace, click the green plus button to add a new mod element.
Look in the Interface & effects group and select the Overlay element. Give your new overlay a name to open the editor. An Overlay adds an additional GUI overlay that can be seen in the in-game interface.
Set the Overlay target
Find the Overlay target field in the editor. This setting specifies on which screen your overlay should be drawn over.
Use Ingame if you want to make overlays such as hunger bars and pumpkin-like overlays. You can also choose other targets to draw your overlay over other specific screens.
Choose the Render priority
Next, look at the Render priority field. This parameter defines the priority of your overlay.
Overlays with this setting set to High will be rendered above overlays that have this parameter set to Low.
Select a Base texture
Locate the Base texture field to pick a base texture for your overlay. Any other components will be drawn over this texture.
This parameter can be used to make pumpkin-like overlays. The recommended overlay size is 1920 x 1080 to make it scale properly.
Set a Display condition
Look for the Display condition field. This uses a procedure to specify if the overlay should be shown.
When the procedure returns true, the overlay will be shown on the screen.
Test and export your mod
Once you have filled in the fields, save your element. Use the Build & run feature in the studio to test your new overlay in the game.
When everything works the way you want, you can export your finished mod to share or play.
Tips
- Make sure your Base texture has the recommended size of 1920 x 1080 so that it scales properly on the screen.
- Set the Overlay target to Ingame when you are creating things like custom hunger bars or pumpkin-like screen effects.
- If you have more than one overlay, change the Render priority to High for the one you want to appear on top of overlays set to Low.
- Use the Display condition procedure to control when the overlay appears, since it only shows on the screen when the procedure returns true.