- This event has passed.
2 PM – Minecraft Modding With Java
January 23, 2021 @ 2:00 pm - 3:00 pm
- We worked on adding Saturn Sword on our “aycessential” mod.
- We had an error when we tried to run the minecraft because I forgot to add one more thing.
- To fix the error, you need to follow these instructions
- Go to AYCEssentialMod.java
- Go to the constructor. The constructor, is part of your code that look like below

- And we want to add the following code at the end of the constructor
- ModItems.ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus());
- If you see red under line under “ModItems.ITEMS”, you probably need to add the import lines on the top of the page like the following
-
import com.ayclogic.aycessential.init.ModItems;
-
- After adding the code do the following
- run the Gradle > ayc_minecraft_1.16 >Tasks > fg_runs > runClient.
- Open your Minecraft saved file. And look into your minecraft inventory by click “e” on your keyboard.
- There should be one more new tab called “saturn” with your new sword.

- I have uploaded the latest code to the google drive.
- To fix the error, you need to follow these instructions
- Homework:
- Review the code and next week we want you to add one more new Sword in our minecraft mod.