Hey what’s going on guys today here and welcome back to another video in this video i’m going to be covering the second part to our uh minecraft modding tutorial series for 1.16.4 um in this episode i’m going to be covering the basic workspace setup and depending on how long that takes Um i am going to be doing an item so the first thing i’m actually going to do um or first thing i’m going to mention um is actually my discord server um i want to get this at the start of the video so that everyone knows of its existence Now my discord server is a link in the description um and in there you can get help for any issues you are having with modding in general uh or this series um and yeah there’s over a thousand uh models there so um yeah you’re you’re bound to get help now Um we do do other stuff there of course we have a competition running at the moment um several other things are going on um so yeah be sure to join there now i have got that over and done with um i’m going to go ahead and just mention i have changed to the Darkest dark theme and so if you want to have your theme the same as mine um i did talk about it in the previous episode and i just installed the plugin um just because basic dark theme eclipse were looking a bit weird um i don’t really know what was going on with that But yeah at the start of this one i want to go ahead and actually go through a few more plugins so let’s go into the eclipse marketplace there is a few things i always like to install and it’s up to you whether you install these and i would recommend it so the first One is if you search json in here we want the json plugin and that’ll just highlight our jsons make it so they are readable so if we just install this top one and just wait for that to do its thing just accept the terms and conditions and then finish And that will start installing that um that might want to restart install anyways yeah that will ask us to restart so i’m just going to let that restart okay eclipse has just loaded back up um the next one i want to install or at least The first thing i check for um when i’m why is it not bringing up the window i want eclipse marketplace the second thing i always search for at least they don’t always there’s not always one on here but hopefully there is one on here is a tommel plug-in no it seems that Isn’t that is a shame so the next thing i just installed personally um is just discord rich presence which means uh it shows what i’m doing in discord like in discord it’ll show what i’m doing on eclipse if that makes any sense so that’s just gonna restart and I will see you when that is done okay there we go so as you can see that is now done now the first thing i’m going to go ahead and do is actually rename this com.example um right here so this com.example.examplemod now this actually shouldn’t be like that Um so the way i always do it is uh com and then dot your minecraft username dot the mod name however that is not what you’re actually meant to do you are meant to do it um if you own the domain so if you have a website called like 30werty.com i can do Com.3030 but i don’t actually own that domain so i’m not actually meant to use that the way you can do it however is using github so i believe it is something like io dot github dot charty worthy for example um or maybe it might actually be github.io dot no i think it’s io.github It’s normally the opposite way round so io dot github dot the real 30 worthy so is that what i should be using and but i am just going to use com.30 worthy um dot tutorial mod it’s up to you what you use it doesn’t really matter but that’s just sort of What you’re meant to do um and i don’t do it okay so next we can just load up this example mod class and there’s a few things we want to do so first we actually want to rename this class now this class shall be known as your main class um Because that’s what it is it’s the main class of your mod um and i’m going to call this um tutorial mod so it should be called your mod name basically so say it was void mod uh you’re making a void mod you just call this Void mod um or just void you don’t have to put the mod on if you don’t want to the next thing i’m going to do is just delete some methods here so i’m going to delete this registry events parts at the bottom i’m going to delete a server starting process imc in qimc Do client stuff i’m going to delete all of that um and i’m also going to go ahead and delete all of the comments um you don’t have to delete the comments if you don’t want to um but i already know sort of what i’m doing so i don’t need those comments and then I’m also going to go ahead and delete this stuff in here and i’m going to delete these three lines there and i’m just going to make this logger field public because we want to access that globally um and then we just need to do our mod id So you may be wondering what is a mod id so a mod id is basically the um unique id for your mod so this needs to be unique if it is the same as any other mod then it’s not going to be compatible with that mod so you want To have this as unique as possible it is recommended that you have at least seven characters um the mod i mean mod id needs to be fully lower case you can you cannot have any uppercase you can have underscores you can have numbers but you cannot have any other Special symbols it must just be for example tutorial five underscore and then letters you cannot have um capitals and you cannot have like exclamation marks or any of these other symbols it has to be just completely normal so what i’m going to be using is tutorial mod So i know that’s not unique but i’m not going to be publishing this mod so compatibility compatibility isn’t a thing i’m even going to consider it it doesn’t matter but if i wanted to have it compatible i would need to do something like 30s tutorial mod which would mean it’s compatible Um but for the sake of um for the sake of this series i’m actually going to call it tutorial it’s just a lot simpler for me but obviously just make sure you have that unique then um i think we can actually leave the rest yeah the rest is Fine so after that we need to go into our source main resources and we’re going to open this meta imp folder in here you will see we have a mods dot tomml now if i double click this you will see it does come up with an error And to fix that you can just right click and open with and choose the text editor and that’ll be a massive wall of gray text sadly eclipse doesn’t have any highlighting for tommles which is a bit of a shame um but all we basically want to do is remove The comments now you need to be really careful here um well you you don’t have to remove the comments that’s just what i like to do um but you need to be careful not to delete any of the actual uh lines in here that you need so this stuff I will have a template mods dot toml in the description but you just need to make sure you don’t accidentally delete anything that you need and i’ll tell you what you need in a second after i just remove all the comments okay so as you can see i have just gone Ahead and uh cleared out all the comments it’s a lot cleaner now and i’m just going to just copy paste this real quick um just so i can provide you with a template now we can actually go ahead and remove these these two right here however i am going to Actually leave them here um just because even though you can remove them i don’t trust that you can remove them if that makes any sense um yeah i don’t entirely trust that that is correct um so i’m just going to go through everything here really quickly So the mod loader is just the mod loader that we’re using um so java fml is the one we’re using um the loader version is just the version for that loader um so basically it needs to be anything above 35 it can be higher which is this part right here Um the license so this is whatever license you’re using for your project and for now i’m going to leave that as uh arr but you can set whatever license you want the next thing is the issue tracker url now if you don’t have an issue tracker for your mod You can just delete that and i’m actually going to do so um the next thing is just mods so this just basically defines your actual mod and what you might just just separate that part out from here so the first thing is your mod id now this needs to be the exact Same as what is in your main class if it’s not it’s not going to work so you need to make sure you are putting the exact same thing and obviously it is case sensitive so i’m just going to leave that as tutorial um version is just basically whatever version Your mod is so mine will just be 1.0 the next thing is just the display name of your mod you can have whatever in here mine will just be tutorial mod next is update json url if you don’t know what this is you can just remove it to be honest And display your url this basically should just bring you to your mod page um which i currently don’t have so i’m also going to remove that next thing is the logo file so if you have a file uh or a logo for your mod you can just put it in here and that Will start in the source main resources package package so you would just have a file here just like the pack.mcmata but it obviously needs to be a png once again i don’t have that so i’m going to remove it credits these are optional and so are The authors you can remove those if you want however i’m going to i’m going to remove no i’ll say thanks for all my subscribers in the credits just so i can actually have the credits and the authors will be me if you have another author you can just say Um i i could say something like 30 worthy for making the mod and then i could say um illegal 615 for the textures for example um you know i’ll leave elder there even though he’s not going to be making the textures or maybe he will i don’t know it depends If i can bribe him to do so and so yeah that will just be your offers don’t worry about these underlying things eclipse is just um not happy with spellings i think you can disable it in the settings which isn’t something i’m gonna mess with right now And then obviously you have these things right here as i said you can delete these um oh description of course so this is just the description of your mod it’s a multi-line thing so you can have multiple lines hello hi howdy howdy um yes so yeah multi-line description Pretty cool um and then yeah these obviously so i’m actually just going to change this to dependencies.tutorial and because i’m going to be leaving them here but delete them if you want um if it does throw you an error you probably want to add them back um if you cannot delete them Um there will be something on screen right now saying do not delete it um so yeah that is your mods dot tomml now i’m not gonna have time to do an item in this video but instead i’m going to be covering uh just the package layout we’ll do the basic layout and stuff Just now and then we don’t have to worry about that in the future so the first thing we want to do is create a package we will call this one uh core yes that is another thing if you have um in this view you don’t want it in this view or at Least most people don’t so we can just come into this view menu right here and if we go down to package presentation we can change it from flat to hierarchical and you’ll see core then appears if we do a new package we can have common and we can have another package which Will be dot client now this is just the way i always set up my mods and i think it’s just clean so basically the client stuff will be anything that is client-side only and then we’ll have the common stuff which will be any objects so for example items blocks entities thailands teas containers Um particles uh potions enchantments mob spawn eggs whatever um they will be in this common section and then we will have the core which will be for um initialization classes util classes um any sort of um enums interfaces we want to shove that all into this core package So i’m just real quick to make some sub packages um and i’m probably not going to create all the sub packages we’re going to have more in the future um but i’m just going to create some basic ones right now so we’ll start with client and we’re going to want client dots entity And and then following that we’re going to want model and we’re then going to want render actually um we’ll change that actually instead of client.nc we’ll go with client.render And then delete we we can move entity.model into renderer or just not do that apparently um but we’ll go client.util as well and then inside the renderer we will have a new package which will be entity and then we’ll have another package which will be a tire lens team For now we’ll have more in the future but for now that will be fine um actually we’ll also go model okay um util yeah that’s fine so that’s pretty much it for the client package at the moment anyways um common we will go ahead and create a new package For items we’ll create a new package for blocks we will create a new package for entities we will create a new package for um what else what else what else enchantments um a package for potions a package for thailand’s teas i’ll just call that tiles a package for containers And that reminds me in the client package we want a package for screens or guys whatever you want to call that this is just my package layout you can lay it out however you want um but yeah this is just the layout that i’m going to be aiming for Um we’ll probably answer this in the future we also want actually another package and that’ll be dot world we’ll keep our world stuff separately and we’ll have another package for datagen as well because i want to get into datagen a little bit in this series um let’s go back to core let’s create Another package which will be util and another package for in it another package for enums just keep all our enums and another package for interfaces we just want to keep those in one place um at least i want to keep them in one place organize this how you want um Okay and also we’ll go with one more main package and we’ll call this um mix-ins i’m not going to speak too much about that at the moment though um yeah that should be fine i do just want to create a few classes at the start not not overboard just a Few classes that we will keep for the future so i’m going to have an item in it so this is basically where we initialize all our items i’m going to have a block in it i’m going to have a entity type in it i’m going to have a tile entity Type init i’m going to have a container type in it obviously if your mod isn’t going to have one of these you don’t need to create an init class for them and you don’t need to create a package for them um but obviously i’m going to be having them so I’ll do one for each of these packages i suppose so enchantment in it um and patient in it oh i meant class not packaged potion in it there we go so there all the classes i’m going to have for now i’ll come back to them in the future of course Um anything else anything else anything else let’s go into clients.util actually yeah yeah um i’ll just have a class in here for client i’ll call this client utils um for now and we are just going to really quickly annotate this with only in this dot client this means that This this class will um crash if it’s used on the server side um we only want this to be client and i think that is about it for this video so um we didn’t get to items but that’s fine we’ve done a lot of setup stuff here um i will just show you That you we we should now be able to run the game i’m pretty sure and we do have an issue i think that’s fine all you need to do to run the game is press this run button right here and choose run client we might get an error If so we can debug it let’s have a look okay okay here we go so here we go um buildpath specifies execution environment um 1.8 there are no jres installed in the workspace that are strictly compatible compiler compliance specified 1.8 but jre 15 is used Okay just give me a second guys i am just going to look this up and then i will come back with you um when i figure it out okay so guys i have fixed the error um it’s a little finicky to get to but what we need to do is Right click our project go down to properties go into the java build java build path on the left and in the libraries section we need to go ahead choose this jre hit edit and go on to installed jres and we need to do is just go ahead and press search and Then choose where your jdk is installed so that will normally be in the c drive program files java um and then as you can see i have loads of jdks in here um i just chose the most recent one and i uh selected the folder that just searches through them all Um and i’m just going to delete that one because it’s a duplicate and i had this one selected by default so i just chose this one i’m actually going to i think i can rename this um so java 8 is what i’m going to call that just call that her finish so there’s Java 8. um i suppose i could rename it and call it jre jre8 uh rename this one and i’m going to call this one jdk8 and this one i believe is jre 15 so jre 15. i’m just going to rename them you don’t have to rename them And then just hit apply apply and close finish apply apply and close and then when you hit run it will go ahead and run the game as you can see in the console down here um one thing i do recommend you do is just right click the console go to preferences Um and uncheck this limit console output and that will just mean that it can be endless console it might increase your ram a little bit but it’s worth it because when you’re sending logs to people you want to get the whole log and by not limiting the console output You can actually just send what’s outputted by the console instead of grabbing the log so this will just load up okay so as you can see it has actually loaded and if we go into mods we can see minecraft forge and our tutorial mod with everything in here as we like it So yeah i hope you guys did enjoy this tutorial if you did please do be sure to smash your face into that like button and go ahead and subscribe um make sure to hit that notification bell and then you will not miss a video when i post the next one Which will be on items so yeah i’ll see you guys then good bye Video Information
This video, titled ‘Organizing our project – Minecraft Forge 1.16.4 Modding Tutorial’, was uploaded by TurtyWurty on 2020-12-23 23:30:23. It has garnered 28184 views and 914 likes. The duration of the video is 00:28:43 or 1723 seconds.
Hello everyone. In this video I do final setups for the project such as cleaning the main class, setting up the mods.toml and creating our packages.
My Discord Server: https://discord.gg/d5cGhKQ Base mods.toml: https://pastebin.com/yRVvQK6H My GitHub: https://github.com/DaRealTurtyWurty/1.16-Tutorial-Mod