squidlex Posted January 26, 2021 Posted January 26, 2021 I have a custom HUD above the hunger bar that I want to imitate the 'wave' effect applied on the player's hearts when they have the regeneration effect. I've tried to make sense of the Class for this, however it seems incredibly confusing as the variables are very shortly named. Any help would be greatly appreciated! Of course I'm not asking for someone to do this for me, just if anyone knows any tips or pointers to get me started. Quote
Beethoven92 Posted January 26, 2021 Posted January 26, 2021 What you did in the first place is correct, as you looked at the vanilla code that obtains this effect for player hearts as an inspiration...of course that code is not very explanatory as you already pointed out so, you could take some time reading it very carefully in order to assess what every line of code exactly does, or you could copy that portion of code in your code and try to play a bit with it to see how things change, and so you can adjust it to your needs 1 Quote Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
squidlex Posted January 27, 2021 Author Posted January 27, 2021 19 hours ago, Beethoven92 said: What you did in the first place is correct, as you looked at the vanilla code that obtains this effect for player hearts as an inspiration...of course that code is not very explanatory as you already pointed out so, you could take some time reading it very carefully in order to assess what every line of code exactly does, or you could copy that portion of code in your code and try to play a bit with it to see how things change, and so you can adjust it to your needs Thank you! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.