Sampurnarambh

Make a minecraft mod for java fabric 26.2 which has a steel armor and and all tools and it can be crafts by putting 8 coal all around it and in middle there is iron ingot

Kodari AI
KodariNov 3 at 7:59 am 11
SteelArmory
Adds a full steel armor and tool set to Minecraft Fabric 26.2. Includes steel ingot, steel armor (helmet, chestplate, leggings, boots), and steel tools (sword, pickaxe, axe, shovel, hoe). Steel ingots are crafted by placing 8 coal in a ring around a central iron ingot. Steel items are stronger than iron but slightly weaker than diamond, with increased durability and mining speed. All items are registered with custom textures, models, and recipes. The mod implements a new SteelItem class extending standard tool materials, a SteelArmorMaterial, and a SteelIngot item. Recipes are added via JSON files in the data directory for both crafting and smelting compatibility.
  1. Set up a Fabric 26.2 mod and register steel gear.

  2. Add the coal-and-iron steel ingot recipe plus survival recipes for the armor and tools.

  3. Add the item models, names, and custom textures.

Created Steel Gear for Fabric 26.2 with a steel ingot, sword, pickaxe, axe, shovel, hoe, and full armor set.

Craft a steel ingot by placing 8 coal around 1 iron ingot. Use steel ingots in standard recipes for the gear; the tools and armor can also be repaired with steel ingots. Steel gear appears in the creative tabs and has names, models, and recipes.

Custom textures were generated for the ingot and sword. Other gear uses vanilla iron visuals because the remaining texture generation ran out of credits.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
43 490
src/main/java/com/kodari/steelgear/SteelGear.java
package com.kodari.steelgear;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.creativetab.v1.CreativeModeTabEvents;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.Identifier;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.item.CreativeModeTab;

public class SteelGear implements ModInitializer {
	public static final String MOD_ID = "steelgear";

	@Override
	public void onInitialize() {
		SteelGearItems.initialize();

		ResourceKey<CreativeModeTab> toolsTab = ResourceKey.create(
			Registries.CREATIVE_MODE_TAB,
			Identifier.fromNamespaceAndPath("minecraft", "tools_and_utilities")
		);
		CreativeModeTabEvents.modifyOutputEvent(toolsTab).register(output -> {
			output.prepend(SteelGearItems.STEEL_INGOT);
			output.prepend(SteelGearItems.STEEL_PICKAXE);
			output.prepend(SteelGearItems.STEEL_AXE);
			output.prepend(SteelGearItems.STEEL_SHOVEL);
			output.prepend(SteelGearItems.STEEL_HOE);
		});

		ResourceKey<CreativeModeTab> combatTab = ResourceKey.create(
			Registries.CREATIVE_MODE_TAB,
			Identifier.fromNamespaceAndPath("minecraft", "combat")
		);
		CreativeModeTabEvents.modifyOutputEvent(combatTab).register(output -> {
			output.prepend(SteelGearItems.STEEL_SWORD);
			output.prepend(SteelGearItems.STEEL_HELMET);
			output.prepend(SteelGearItems.STEEL_CHESTPLATE);
			output.prepend(SteelGearItems.STEEL_LEGGINGS);
			output.prepend(SteelGearItems.STEEL_BOOTS);
		});
	}
}