Started by
Thecoolgamer674
on
Topic category: Help with Minecraft modding (Java Edition)
So I have a custom piece of armor. I want it so that when you equip it, it puts an overlay on your screen. I have the overlay image and the item already made but I can't for the life of me figure out how to make the procedure work. Would really appreciate some help. My mod is also Fabric
Edited by Thecoolgamer674 on Thu, 01/29/2026 - 03:59
So this is actually pretty simple! basically if you go to the triggers tab in your custom armor peice you can choose one of these two triggers: either on armor tick update, or when armor equiped (I think the 2nd one is a trigger, but I might be wrong). and then in these procedures, you can add the open gui for event/target entity block. and then just choose your custom overlay as the GUI that gets opened.
You can also set the overlay view condition in the overlay element. (I think that's what it's called, Im sorry if i get some of this wrong im not at my pc rn). and then set the trigger to player tick update, then do if the payer has your specific armor peice in their coresponding slot (0, for helmet up to 3, for boots). Then set logic true.