And Agata laughter I’m doing mine craft monitoring and did you how to add your very own progress bar to the game so I have actually already made a class which is a progress bar because I spent about two hours trying to do this and it didn’t work but hopefully now it is Working entirely as you can see here we’ve already got the progress bar representing our cooldown because I’ve been trialing this and if I turn it on you see that the progress bar moves left to right as you would expect and this one obviously is faster and you have one And you can see it’s faster so these were here just for a test so I can now remove these and and I’m actually going to break this one grab yourself a lever so I can show you how to use it so let’s head over to the code so here we have Our progress bar it’s a very simple class to use I don’t into ctrl shift o you can download this class in the description and everything you need is here we’ll be changing this or removing this for when you guys download this but this is just so I can change for testing So to get your progress bar all you need is energy u I add a progress bar like so here we put the texture name in the path to it the way it’s going to move as is off right I’m going to change it left to right class what it’s on at the moment And I like that you’ve then put the width the height the position on the screen and then the position and texture of the progress bar so I’ll quickly show you the texture all I’ve done is a slight little change to it here we go inside paint.net you will see That I don’t need both of these open we’ve got this little bit here which is the colored part of this texture so that’s the position here a position there so that’s how that works and all we do is we set the min and Max So the min is cool down Max is the max cool down obviously that’s synced and we draw it so that’s very simple and now what I’m going to do is I’m going to quickly show you how you can change this so as you can see going left to right currently I can show You right here that you can go right to left and it doesn’t matter this is always going to change this now it’s going right to left and this can also go up to down if you don’t know how I’m doing this it is in debug mode so up to Down so it goes from top to the bottom and I’ll sleep down to up it will does what it says on the tin it’s going to go down to up so it’s going to go up like so we even have diagonals so diagonal down left suggest that it’s going to go from The top left down to the bottom left like so and you can also do down right so it goes from the top left down to the bottom right you can also do up left so go from button right to the bottom left as you can see and and you can also do Tough right so go some bomb left up to the top right as you can see it’s updated here and I’m now going to remove this after I put it left to right and I can should delete this line it’s not going to affect it anymore so you can See it’s going left to right suggestion that everything is working so hopefully you’ll find this tutorial quite useful it’s really simple now I spent two hours making that class and its proper simple hope you guys can utilize this I’m out Video Information
This video, titled ‘Minecraft Modding Tutorial | Progress Bar (1.10.2,1.11.2)’, was uploaded by CJMinecraft on 2017-05-15 16:30:01. It has garnered 3196 views and 34 likes. The duration of the video is 00:04:10 or 250 seconds.
Today I teach you how to add your very own progress bar to represent our cooldown in the block breaker! It is recommended you take a look at the last tutorial on network messages to sync this data with the client
Files – https://goo.gl/8btwmL
Please support me if you can – https://www.patreon.com/cjminecraft Discord – https://discord.gg/QDb6eRg
Don’t forget to like, comment and subscribe!
Music by Ninety9Lives Elektronomia – Imagination Video Link: http://99l.tv/Imagination Channel: http://99l.tv/Subscribe Album Download Link: http://99l.tv/GoldenGun
Links: ►GitHub – https://goo.gl/c4JlXe ►My Website – http://cjminecraft.theclever.me/ ►Modding Tutorial Playlist – https://goo.gl/bq6sgx ►Facebook – https://www.facebook.com/CJMinecraft01/ ►Google Plus – https://goo.gl/3n1umj ►SoundCloud – https://soundcloud.com/speed2-pc/ ►MCAmino – http://goo.gl/LzwZ9W ►Votable – http://www.votable.com/CJMinecraft
For modding help or if you want to contact me, email me at [email protected]
My Schedule: Monday or Thursday: ►Modding Tutorial