« All Events
5 PM – Minecraft Modding With Java – Gamas
November 19, 2022 @ 5:00 pm - 6:00 pm
Today We Did
- We started adding saturn_ore so eventually in the survival mode, we can actually craft the many custom Saturn items by mining Saturn ore.
- If you did not come to the class, you can get the saturn_ore.png from here
Homework
- there is no class on Nov 26 because of thanksgiving week. Our class resume on Nov 3.
- For your homework, please do the following
- Inside ModItems.java, add the following codes
public static final RegistryObject<Item> SATURN_ORE = ITEMS.register("saturn_ore"
, ()-> new BlockItem(ModBlocks.SATURN_ORE.get()
, new Item.Properties().tab(AYCEssentialsMod.AYC_ITEM_GROUP_TAB)));
- Inside src/main/resources/assets/aycessentials/model/item/saturn_ore.json
{
"parent": "aycessentials:block/saturn_ore"
}
- Start your minecraft and go to inventory, now you should see your saturn_ore cube like below