« All Events
5 PM – Minecraft Modding with Java – Gamas
September 17, 2022 @ 5:00 pm - 6:00 pm
Today We Did
- We were able to successfully added Saturn Sword.
- We were able to understand the attributes of Saturn Sword, attack damage and the attack speed.
- We started with Saturn Fireball Axe.
Homework
- Create Jupiter Sword by looking at how you created Saturn Sword.
- Go to src/main/resources/assets/aycessentials/textures/items and create a copy of saturn_sword.png into jupiter_sword.png.
- Use an image editor like Fire Alpaca or other that you use to modify the image of jupiter_sword.png to be different than before.
- Go to src/main/resources/assets/aycessentials/lang/en_us.json and add this line at the end. Don’t forget to add comma (,) at the end of the previous line.
"item.aycessentials.jupiter_sword": "Jupiter Sword"
- Go to src/main/resources/assets/aycessentials/models/item and add a new file jupiter_sword.json and inside the file, should be very similar to saturn_sword.json. Just copy the content of saturn_sword.json and modify accordingly.
- Under ModItems.java add one more entry similar to SATURN_SWORD, but make it JUPITER_SWORD this time. Anywhere you see “saturn_sword” in the JUPITER_SWORD entry, change to “jupiter_sword”.