American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

2 PM – Minecraft Modding With Java

January 23, 2021 @ 2:00 pm - 3:00 pm

  1. We worked on adding Saturn Sword on our “aycessential” mod.
  2. We had an error when we tried to run the minecraft because I forgot to add one more thing.
    1. To fix the error, you need to follow these instructions
      1. Go to AYCEssentialMod.java
      2. Go to the constructor. The constructor, is part of your code that look like below
      3. And we want to add the following code at the end of the constructor
        1. ModItems.ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus());
      4. 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
        1. import com.ayclogic.aycessential.init.ModItems;

           

      5. After adding the code do the following
        1. run the Gradle > ayc_minecraft_1.16 >Tasks > fg_runs > runClient.
        2. Open your Minecraft saved file. And look into your minecraft inventory by click “e” on your keyboard.
        3. There should be one more new tab called “saturn” with your new sword.
      6. I have uploaded the latest code to the google drive.
  3. Homework:
    1. Review the code and next week we want you to add one more new Sword in our minecraft mod.

Details

Date:
January 23, 2021
Time:
2:00 pm - 3:00 pm
Event Categories:
,