[GJ0] how to make your own mods in minecraft bedrock
( Updated : October 23, 2021 )
🔥 DOWNLOAD LINK Links to an external site.
How to Create Your Own Minecraft Mod
MCreator Minecraft Mod Maker www.makeuseof.com How to Code Minecraft Mods: LearnToMod Tutorial for Kids The Ultimate Guide to Minecraft Modding with Java in 2021
Step 1: Set up Java Developer Kit (JDK). Step 2: Set up your Text Editor. Step 3: Set up Forge. Step 4: Install Pinta. Step 5: Create Your Project. Step 6: Make Your Own Mod – A Custom Sword! Step 7: Compile your Mod. Step 8: Test your Mod! From the top of the main menu, select Tools. Choose Create item/block texture. This will open the Texture Maker, where you can create your own. With today's technology coding your own mods is pretty simple. One option is to use Java and Forge. You'll need to install several things. To develop a mod, you will need to find JDK (Java Development Kit), which includes the JRE and an emulator. Create a free. MCreator is open source software used to make Minecraft Java Edition mods, Bedrock Edition Add-Ons, and data packs using an intuitive easy-to-learn. With Mod Creator, you can save and import your own Minecraft skins into Minecraft. Build anything you want: your. Create Minecraft mods, add-ons, texture packs, and more! Tynker makes modding Minecraft easy and fun. Get a private Java server to deploy mods with 1-click.
Newer versions may use different setup instructions. As a rule of thumb, Minecraft mod code is not compatible from version to version. For example, 1. While we teach coding for kids , this guide can be used by teachers, parents, or anyone with an interest in creating a custom Sword Mod for Minecraft Forge. We hope that you enjoy this free step by step guide to covering one of the first courses we teach in our Minecraft Modding series. We will continue to update this blog in the coming months and transition to more recent versions of Minecraft as they become stable for mod creation. Our next big course revision will take place after the upcoming Minecraft Caves and Cliffs Update. The download page should automatically detect your platform and give you the correct download. The version I am downloading that is shown in the picture is for Windows bit. Once this is finished, find the file in your downloads folder and run the executable to install the JDK. Run through the pop up window guide to install the JDK for your computer and click on each next keeping the default settings until the JDK finishes installing. Now that JDK is finished, we can set up our code editor in the next step. First, for this guide, we are going to download the Eclipse IDE, one of the most popular professional text editors for Java in the world. Click the Download 64 bit button and the next page will appear where you can download. Click the Download button shown and wait for the Eclipse file to finish downloading. Find the executable file in your download file and open it to launch the Eclipse installer. The next window will appear and you need to accept the agreement for Eclipse. Then the next window will prompt to make sure you accept the license Agreement. Once this is accepted, you are almost done with the install. Just accept the Eclipse Foundation certificate as shown in the image below. Once this is done, Eclipse will be downloaded and ready for when we need to use it to write our code. The next step is going to be installing the Java Developer Kit which will let our code work properly with Minecraft. Next you will need to download the 1. The instructions shown here should work for any Minecraft version from 1. On this page you should see the latest and recommended version for Forge. Once this is downloaded, find it in your downloads folder, right click on the zipped up folder and then select Extract All…. This is going to be our project folder. So we want to make a copy and rename and move it to a new location on our computer. We recommend putting a copy in your Documents folder or on your Desktop. Right click and copy and paste the unzipped forge folder in a location you want and make sure to rename it to something descriptive. We have the Forge folder set up and are ready to create our new project! Next we want to install the Pinta program we will use to change the look of our Sword Texture. On this page click the download link for the OS you are on Mac or Windows. Once you have the installer downloaded, open it up in your downloads folder and run the installer. Fully install the application and accepting any agreements along the way. Launch Eclipse. This directory needs to be outside of your project folder. You can also just use the default location Eclipse gives you. Go to the File menu of Eclipse near the top of the window. Click it, then click Import in the menu that appears. Select Launch Configurations and click Next. In the next menu, checkmark the box next to ForgePractice or your folder name if you named it differently. It should show the runClient and runServer configurations selected. Click Finish. Just one more edit before we can run Minecraft. Click the arrow next to the green Run button. Click on Run Configurations. You can also find this from the Run menu at the top of Eclipse. Then click Run. Your Minecraft should now launch from Eclipse. We are now ready to start Creating a Mod and learning Java! Once Eclipse is loaded up and opened, we are ready to start typing in java code. On the left side of the window, open the project folder by clicking the arrow next to the name. Your project folder will likely be named with the same name you gave to the folder in Documents. This file contains our starting code. It contains our mod ID and name. Make sure these are inside quotation marks because they are String variables. Open mcmod. Make sure these are inside quotation marks again as they are Strings that will be read by the code. The next step is to create variables for our ToolMaterial and sword. Place these lines beneath the private static Logger logger line in ExampleMod. Variables are helpful in code because they act as boxes with names that store information inside of them we can use easily. What we are doing here is we are creating to variables myToolMaterial and mySword. Once we have the variables created, we need to import the code files that define what a ToolMaterial and an Item do. We can do this by mousing over the red error lines underneath ToolMaterial and Item. In the dropdown list that appears, import the code shown. Now because we are making a customized sword in Minecraft, we need to define what the material is for the sword tool is we will be using. This is where we define our custom tool material variable we created. Go into the preInit function shown and inside below the logger line, write out the myToolMaterial line shown. What that line does is it fills in our myToolMaterial variable with information on what the material does for tools we apply it on. We will be applying this tool material to our sword. Change out the name to a String variable that is the material name. The harvest level indicates which minerals it can get resources from. If we applied this material to a pickaxe, this is where we would define if it can get diamonds from Diamond Ore. The damage is how much damage it will do when you hit an entity with it. The enchantability is related to how easy it is to enchant. After this material line add in a definition for what our sword is. This line defines the sword as a new class called CustomSword. We need to create this new class and we do that by mousing over the red error line and clicking. A new window will open up, keep these values at the default settings and just click Finish. This will create a new Java code file CustomSword and automatically open it up for it. This is a Class which is code that defines what the CustomSword is and how it behaves. This lets us swing it and damage creatures as well as pick it up and drop it and any small interaction a sword will have in the code. Now what we need to do is add a constructor for our class. This defines how the sword is made. Think of it as how blueprints are used when creating buildings. We are defining specific rules for how our sword will be created. Once the constructor is added in, change it to remove the Material reference in the parentheses and then fill in our ExampleMod. The CreativeTab can be changed to the tab you want the sword to appear in. We need to create a new java class that we will use to register our sword into Minecraft. Go to the Package Explorer on the left side of Eclipse and right click on the com. This time we want to name it CommonProxy and then select Finish. Now we want to go above the public class CommonProxy line and write the mod. This will let the class be run during the loading of Minecraft so it can register our sword into the game. We need to import the code for mod just like how we imported Item and ToolMaterial earlier. Once that is imported, we need to create a new function that will run specific code to register the sword Item in Minecraft. Make sure to include the ExampleMod. Now we need to import the code that is missing from this Class. Just like before, we are importing code that already exists to help us with our register code. In order to test out our code, make sure you are clicked inside a code window and then go up to the green play button and press it only once. Make sure you press the button that is just the green button and not the ones with little icons in the corner. After some time, you should see a window start opening Forge Minecraft. Once you have finished waiting, select Single Player at the main menu. Next, select Create New World to start setting up a Creative mode game. Then change the game mode to Creative and change the name, then select Create New World. This will open the new world and take a bit of time to open the Minecraft world. Go to the Combat tab or whatever tab you picked when we set the Creative Tab in our code. Scroll to the bottom of the tab and make sure you have your sword. We will be updating the look and the name but if you put it in your inventory, you will have a sword that will function as we coded it to! Exit out of the Minecraft window and open CommonProxy. This will register the model for the sword based on the item we want to register. We will link this to our sword in the next couple of steps. Make a registerRenders function that we will register our ExampleMod. Now we need to import the ModelRegistryEvent code so our models will properly render in Minecraft. Now we need to make our sword texture and import it into our project. It is a small file because Minecraft needs a smaller image. Once you have it saved, right click on the picture wherever it is saved on your computer and then copy it. In this new file, type in code that will define the item sword resources. We do this because we will be adding in more packages to organize our code and set it up so our sword files can be properly managed by our code. In the pop up window, name it assets. Now right click on assets. Open Pinta by searching for Pinta in our search bar and opening the Pinta program. Zoom all the way in and turn anti aliasing to the off position and change brush width to 1. All of these settings are highlighted in the image below. Now all you need to do is paint your sword and erase or add anything you want. Make sure to change your eraser anti aliasing and brush width as needed just like what we changed with the paint brush. Then paint your sword to look like whatever you want! Once this is all finished we are done with our custom Sword mod! You can now test it by clicking on the Green play button just like what we did earlier! Make sure everything is perfect and as you want it and then get ready to Compile your Mod and test it in Minecraft. Now that our code is finished, we need to compile and build our mod. Once this build is finished, return to your project folder ForgePractice and open the build folder. Now in the next step we will show you how to load your Mod onto your Minecraft game. Now to test our mod we need to make sure we have regular Minecraft forge downloaded. Return to the same Minecraft Forge download page we were at earlier. Now once at this page click the regular install button shown. Once the download finishes, open the executable file in your downloads folder. Once this launches, you should see the Forge install window. Make sure you have Install client selected, and keep the default location and then click OK. Make sure the Forge client installs successfully and then press OK when it is done installing. Once Forge is done installing, we need to find our build mod file in our Eclipse project folder. Then open the build folder and find the libs folder in here. Right click and rename the modid Once it is renamed, go ahead and right click and copy the new jar file. Once the jar file is copied, we need to open the folder that has our mods in it. When this folder is open, go to and open the. Inside this. Now we need to launch Minecraft and open the Forge version. Search and Open the regular Minecraft version. The Windows 10 or a mobile version of Minecraft will not work. In the Add New window, Change the version to the release 1. Once Minecraft is loaded, we need to make a new level just like what we did when testing our sword. In the settings, change it to Creative Mode and change your World Name. Once all of this is done, click the Create button and wait for the new Minecraft game to load. Mine is the Combat tab and as you can see, the custom sword is at the bottom of the list of items. You can make another sword using the same techniques or even challenge yourself to create an Axe or other tool. When it comes to creating Minecraft mods, a sword or even weapons in general is barely the tip of the iceberg. From mods that add thousands of new weapons for you to find and test out in-game to mods that add new cities and new adventures, the sky is literally the limit with Minecraft. Minecraft Lumberjack — a mod that instantly clears away anything wooden in its path trees, leaves, logs, etc. Create in-game dinosaurs by extracting DNA from fossils and amber! Minewatch Mod — a mod that combines Minecraft with another popular game, Overwatch. TelePad Mod 1. Extra Alchemy Mod — a mod that adds hundreds of new useful potions. PetCraft Mod 1. Guns Mod Modern Edition — fairly recent mod that adds modern guns i. UFO Mod 1. Created by Minecraft players for Minecraft players, Minecraft modding is honestly one of the best ways the community keeps engaged with the game. So when you start creating and downloading mods, we highly recommend you organize your mods folder. If you enjoy Minecraft Modding and want to take your skills further, CodaKid has a series of courses that can teach you how to make your own custom creature, biome, dimension, insane explosions, and special effects, and more! Our courses even include messaging and screen share support from live engineers if you ever get stuck, and our courses even come with a two-week free trial! A super fun project! Save my name, email, and website in this browser for the next time I comment. All Rights Reserved. Now the download of the executable file will start. Let Java run its installation until it is finished. Step 3: Set up Forge Next you will need to download the 1. Once this is downloaded, find it in your downloads folder, right click on the zipped up folder and then select Extract All… On the next window click the Extract button. In this example we will be naming it ForgePractice. Close out of the installation when it is finished. Now we have the programs we need to create our mod. The next step is creating our project. Eclipse will now open up. Close out of the Welcome tab. You should now see this. It should close after importing the project. You should now see your default workspace view: Go into the Gradle Tasks tab at the bottom of the window. Go to the Environment tab in the new window that appears. Finally our Minecraft modding tutorial begins! Double click this to open up this java code file. This is the unique ID for our mod we will make. Name this what you prefer. Strings are variables that are words or characters. We will be covering variables in a little bit. The types of variables are the ToolMaterial and Item. Start with the ToolMaterial as shown below. Next import the Item as shown below. You can name this whatever you like. Putting this at 4 lets it mine whatever we want it to. Once this is done, our class is ready to go. This will open the class window we saw earlier. Start with SubscribeEvent as shown below. Next Import RegistryEvent as shown below. Finally, Import Item net. Wait until it fully loads Minecraft to its main menu. We now need to import more code. Start with ModelLoader. Next, Import ModelResourceLocation as shown below. Now we need to name our sword. Now add in a code line that will name the sword. I have a picture of an Iron Sword in Minecraft below. Now we need to create Packages for our resources folder. Right click on this folder and add a New Package. In the pop up window name it assets. Now make two more packages inside of assets. The last thing to do is customize our sword. Now we need to actually paint the sword! Use the colors, the brush, and eraser tool. Step 7: Compile your Mod Now that our code is finished, we need to compile and build our mod. Make sure you see modid This is our build mod file! Step 8: Test your Mod! What we were working in was the developer kit for Forge. Now we need to access the Minecraft Forge client. Open your ForgePractice folder. This is where our Mod will be. Next, paste in your mod we copied earlier. Your mod is all set up to work in Minecraft! This has to be the Java version of Minecraft. Name it Forge 1. What Can Kids Mod in Minecraft 1. Conclusion If you enjoy Minecraft Modding and want to take your skills further, CodaKid has a series of courses that can teach you how to make your own custom creature, biome, dimension, insane explosions, and special effects, and more! If you have any questions or comments, please leave them below! Happy Minecraft Modding! Posted in Minecraft Modding and tagged Minecraft Modding. Leave a Comment Cancel Reply Comment Name required Email will not be published required Website Save my name, email, and website in this browser for the next time I comment.