Modding Minecraft with Forge

Lesson 6 of 6

Final Project: Build a Mini Ore Mod

Combine registration, blocks, items, and recipes from this course into one small but complete mod: a new ore, and something to craft with it.

Requirements

  1. Register a new item, a raw gem or ingot (e.g. ruby), using DeferredRegister<Item>.
  2. Register a new ore block (e.g. ruby_ore) using DeferredRegister<Block>, with sensible strength() and requiresCorrectToolForDrops(), plus its matching BlockItem.
  3. Give both a lang file entry and basic item/block model JSON so they have a name and texture in-game (a solid-color texture is fine, this course is about the code, not art).
  4. Add at least one crafting recipe involving your new item, turning it into a block (like a decorative storage block) or a simple tool.
  5. Confirm everything works by running ./gradlew runClient, mining your ore, picking up the item, and crafting the recipe in-game.

Stretch goals

  • Add a second tier item/tool that requires your new material plus an existing vanilla one (like sticks) in its recipe.
  • Register a custom CreativeModeTab for your mod instead of relying on vanilla tabs.
  • Add a smelting recipe (minecraft:smelting) that turns your raw ore item into a refined version.

Submit a link to your finished project (a repo or gist) below, an instructor will review it before you can mark this lesson complete. Good luck!

This lesson ends in a project. Build it on your own machine, there's nowhere to submit it here, but the brief above is everything you need.