- This event has passed.
5 PM – Minecraft Modding With Java
December 7, 2021 @ 5:00 pm - 6:00 pm
Homework
In the class, we were trying to add SaturnFireballAxe.java to launch fireball when we hit right click. In addition, we also try to be able to craft SaturnSword using crafting table. Unfortunately, both attempts failed because I was not aware the minecraft 1.16.4 codes are not compatible with minecraft 1.16.5. But luckily, I was able to resolve this problem. Please follow the following instructions:
- To fix SaturnSword crafting, inside src/main/resources/data/aycessentials/recipes/saturn_sword.json file, we need to rename from “items”:”aycessentials:
saturn_sword” into “item”:”aycessentials: saturn_sword” . After this, try running the minecraft and see if you can get the Saturn sword, but putting the diamond in the following pattern - To enable the SaturnFireballAxe.java to launch fireball, there are multiple steps that we have to do. I will ask you guys to do the first step only as part of the homework and we will do the rest of it in the class.
- Find build.gradle file in your project
- Open build.gradle file and replace this line
mappings channel: 'official', version: '1.16.5'
into
mappings channel: 'snapshot', version: '20210309-1.16.5'
- After this, you will see an elephant-like icon near the top right corner. Click that icon to reload gradle changes that you just made. After you click this, it can take a long time. Once this is done, unfortunately, there will be some compilation errors in your project now and you cannot run your minecraft. Don’t worry we will fix these errors in the class.