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
- Register a new item, a raw gem or ingot (e.g.
ruby), usingDeferredRegister<Item>. - Register a new ore block (e.g.
ruby_ore) usingDeferredRegister<Block>, with sensiblestrength()andrequiresCorrectToolForDrops(), plus its matchingBlockItem. - 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).
- Add at least one crafting recipe involving your new item, turning it into a block (like a decorative storage block) or a simple tool.
- 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
CreativeModeTabfor 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!