Super Pickaxe!
Custom Tool Set
Forge a Crystal Pickaxe and Crystal Sword from your Crystal Gem material. Set mining speed, attack damage, durability and enchantability better than diamond!
Forge a Crystal Pickaxe and Crystal Sword from your Crystal Gem material. Set mining speed, attack damage, durability and enchantability better than diamond!
Understand the five numbers that control how a Minecraft tool tier behaves.
Create the Crystal ToolMaterial enum that all Crystal tools will share.
INCORRECT_FOR_DIAMOND_TOOL means blocks that don't drop when mined with diamond won't drop with crystal either. You can change this to INCORRECT_FOR_IRON_TOOL for a weaker pick or INCORRECT_FOR_NETHERITE_TOOL for the strongest.Add the Crystal Pickaxe to ModItems.java using PickaxeItem and your Crystal tool material.
entries.add(CRYSTAL_PICKAXE); inside registerModItems().createAttributeModifiers parameters confuse students because attackSpeed is negative. Explain that Minecraft uses offsets from default values: a -2.8f attack speed means 2.8 slower than baseline. This is intentional pickaxes swing slower than swords by design.net.minecraft.item.PickaxeItem.attackDamage in createAttributeModifiers is a bonus on top of the tool's base. A pickaxe with +1 deals 1 + 4 (base) = 5 total.Add the Crystal Sword it deals more damage than a diamond sword!
entries.add(CRYSTAL_SWORD); inside registerModItems().Create textures and model JSON for the Crystal Pickaxe and Crystal Sword.
assets/crystalmod/textures/item/.assets/crystalmod/models/item/:crystal_sword)."item.crystalmod.crystal_pickaxe": "Crystal Pickaxe""item.crystalmod.crystal_sword": "Crystal Sword""parent": "item/handheld" instead of "item/generated". This makes the item hold at the right angle in your hand!Add classic-shaped crafting recipes for both tools same pattern as vanilla, just with Crystal Gem.
data/crystalmod/recipe/:Launch Minecraft and verify the pickaxe mines fast, the sword deals good damage, and both can be enchanted and repaired.
/gamemode survival). Give yourself the pickaxe: /give @p crystalmod:crystal_pickaxe.Add a Crystal Axe using AxeItem following the exact same pattern as the pickaxe.
import net.minecraft.item.AxeItem;AxeItem (same structure as pickaxe, change attack damage to 5 and speed to -3.0f).ShovelItem and HoeItem using exactly the same approach. All tool classes in Fabric follow this same constructor pattern.Create a block tag that makes Crystal Block mine faster with the Crystal Pickaxe.
data/minecraft/tags/block/, create the file mineable/pickaxe.json:"replace": false means we're adding to the existing tag, not replacing it. This is crucial — you never want to accidentally remove vanilla blocks from their mining tags!data/minecraft/tags/block/mineable/pickaxe.json. It's minecraft, not crystalmod! You're extending Minecraft's own tag list.true would remove ALL vanilla blocks from pickaxe mining. Always use false.data/minecraft/tags/block/mineable/ one folder at a time. Right-click → New Directory in IntelliJ.Review your Crystal tool set and prepare for the most exciting episode yet custom mobs!