Bonjour or maybe you prefer hello everyone it’s me kendra hill i’m a french youtuber specialized at minecraft development since six or seven years now and i decide in french to make a series about minecraft mcp in 1.8 1.16 now and a lot of you guys Asked me to do the same video in english so i’m gonna try with this one i already make one or two video in english and i see none of you do that so i’m gonna try if you like that please leave a like and leave a comment For help me to do better video in english i really want to make that but i’m not a very good bilingual maybe because i don’t go to school very long but i try to do my best with some notes so maybe i’m gonna just switch my eyes don’t worry so anyway We’re gonna go inside today we’re gonna create a core classes who help us to create a client the first step for create a good client fully independent by that i mean we don’t gonna use minecraft class we don’t gonna code inside minecraft class but we’re gonna do external Package and classes uh it’s maybe you can hard to understand especially in english so i don’t gonna waste more time and i’m gonna show you directly what we’re gonna do so like you see in my french project i have a custom package of custom function and variable who can help us To launch initialize or get some resources easily with output or code in minecraft.java because like that why it’s important to do like that it’s because it’s gonna be more clearer and update your project more simple because you’re just gonna copy past your package with all your code in the new minecraft.java And just fix the code you made for the new function so first of all if you don’t have the minecraft source code i’m gonna link in the description a video about how to get the source code in english and after you get that you can start With me this video so we’re gonna create a new package so right click new package we’re gonna name that by maybe the name of the project so for me it’s gonna be simple uh youtube if you want to follow the javadoc we can add the country before so Com net affair so for me it’s gonna be just youtuber and we’re gonna create a new classes will be our new course so for me it’s gonna be youtube core first of all we’re gonna create a function who starts at the same time of minecraft for maybe initialize or launch our custom System so we’re going to make a public void launch and inside we’re going to make some fuel code we’re going to make a println for see if it works on system.out.printplain and for call this function we’re going to need to instance an instance of our class so for that We’re going to make a yes a private static youtube core instance eagle new youtube call so in this series uh i don’t wanna explain how java works just because i don’t really know how to explain that in english if you really don’t understand what i do what an instance what a variable function Are so follow and learn java from english youtubers it’s gonna be more simple to understand this series so i’m gonna try to explain a little how it’s work but now going deeper in the java explanations after we create our variable we need to write a getter so public static youtube core blah Of course our instance and like that we’re gonna return a new object youtube core so like that we’re gonna we can call lunch so in net.minecraft’s clients we have the main class of minecraft with minecraft.java and here we have the constructor of minecraft and all the way down These classes we’re gonna have the end of the initializations so if i wrote youtube core dot get instance got lunch at the end of all the initialization program like we can see here item render render manager minecraft gonna call the launch function we’re gonna print launch youtube core okay So if we try our game started and at the end of the initialization system we have our system out printed and working perfectly so now i’m gonna show you some few things we can do for now with the core so we’re gonna make one more variable with public Static final stream we’re gonna be a project username because when the game on mcp starts they’re gonna generate a new username based on player plus a random number so we’re gonna fix that with adding a new uh string we’re gonna kill that player or like you want youtube player really You do like you want so in net.minecraft client main main we’re going to have if we search option spec 10 we can just change the default 2 by youtube core in our variable it’s a public static so we can call it in every class every package wizard get an object instance it’s not Required to get instance for simply have a string of your username it’s really useless to do that and like that when we launch the game we’re gonna have a project username if you still want to keep the random player maybe for make some tests on the server local server You can up leave that by default and simply add a boolean public static final boolean edo username true like that we can simply do conditions if youtube go in the username so we’re gonna use our custom username so optionspec 10 eagle youtube not youtube up default to the attack youtube username else defaults To our code we have some simple other way to do that in java but for now i’m gonna show you the simply way with health health in this method and not the if else and that’s all for this video i try a lot to be really understandable and clear With what i said but it’s very hard to do that so it’s a test video maybe i’m gonna do another video depend of your return of your comment because maybe maybe it’s gonna be a shitty video and it’s not gonna be worth to do another one because if i explain something but No one understands because i’m speak very badly that makes no sense so leave me your comments if you’re in english about this video if you are french civil play But foreign thanks for watching i hope it’d be useful for you if i do more video in english it’s gonna be about the windows title about the resources blogs items and some other easy things to do in minecraft for beginners i don’t think i’m gonna make some complex videos on art system Because i just can’t explain what i do in english it just found for now impossible for me anyway i don’t gonna waste you more times thanks for watching i’m gonna see you maybe another time like i said leave a comment please it’s helping me to to know if i do This correctly or not and subscribe Video Information
This video, titled ‘CREATE A NEW MINECRAFT CLIENT PROJECT – Core creation 1# – MCP development 1.16’, was uploaded by Kinder – Développement Minecraft on 2020-11-15 00:00:07. It has garnered 5481 views and 132 likes. The duration of the video is 00:08:27 or 507 seconds.
I know it can be weird but it’s an exercise for me to do that. I have it can be usefull for some of you !
Part 0 : How to get minecraft source code : https://youtu.be/K6KScyIpCtc
If you are French I make this kind of video in French on my channel and I have no idea why Youtube recommends English videos before French ones ^^ #minecraft #development #modding #mcp #spigot #java #tutoriel