Started by
Accelerator
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, please tell me how you can create a HUD for a helmet so that the HUD is visible when putting on the helmet?. p.s. I'm sorry if the question seemed silly to you
Create your overlay first and once you create it make it so it only displays when helmet is on
Here is the procedure for that - Change the mana with "If helmetslot = helmet"
If it doesn't display here is the link to the picture https://pasteboard.co/YpOPUyfTtyTr.png
Thanks a lot
Please excuse me, I can't find these get global variables
I've said that as an example during that time as I didn't remember the procedure block names during that time
The helmetslot thing I meant was the slot that was designated for helmet which is "3"
You will need the procedure block "Get item from armor slot " " of player " with the empty space being "3" since that corresponds to helmet slot
So the full code will basically be:
On Player tick update
IF Get item from armor slot 3 of player == YOURHelmet
do Return true
Return false
I understand, but I was talking about the absence of this block
Example: https://pasteboard.co/a1DLnzHuIunM.jpg