zxc keyshire

Create a Minecraft Fabric mod for version 1.21.1 (26.2) inspired by the "Artifacts" mod. The mod must add special wearable accessories (artifacts) that give passive effects to the player.

CRITICAL REQUIREMENT: Unlike the original mod, ALL of these artifacts must be craftable in the vanilla Crafting Table.

Please generate the following components:

  1. CUSTOM ACCESSORY SYSTEM (If Trinkets/Curios API cannot be automatically linked, build a simple custom mechanic):
  • The artifacts should trigger their effects when placed in the off-hand, main hand, or simply when kept anywhere in the player's hotbar/inventory (to make it simple and compatible).
  1. ITEMS, EFFECTS AND CRAFTING RECIPES:
  • Plastic Snorkel (Water Breathing):

* Effect: Gives the player permanent Water Breathing status effect while held/equipped. * Recipe: 3 Plastics (or Iron Ingots), 1 Glass Pane. Shaped recipe like a helmet but with glass in the middle.

  • Obsidian Skull (Fire Resistance):

* Effect: Gives temporary Fire Resistance for 5 seconds when the player takes fire or lava damage. * Recipe: 5 Obsidian arranged in a 'U' shape (like a boat) and 1 Magma Cream in the center.

  • Universal Attractor (Magnet):

* Effect: Automatically attracts nearby dropped items (within a 5-block radius) towards the player. * Recipe: 2 Iron Ingots, 2 Redstone Dust, and 1 Compass in the center.

  • Cloud in a Bottle (Double Jump):

* Effect: Allows the player to perform a double jump in the air. Reset the jump count when the player touches the ground. * Recipe: 1 Glass Bottle in the center, surrounded by 4 Feathers (top, bottom, left, right).

  • Crystal Heart (Extra Health):

* Effect: Increases the player's maximum health by 4 attributes (2 extra hearts) when equipped. * Recipe: 4 Ghast Tears, 4 Redstone Blocks, and 1 Diamond in the center.

  • Golden Hook (Bonus XP):

* Effect: Increases the amount of Experience (XP) dropped by mobs and blocks by 50%. * Recipe: 3 Gold Ingots and 2 Iron Ingots shaped like a hook.

  1. ADDITIONAL DETAILS:
  • All items should have appropriate translation keys for names.
  • Ensure all recipes are correctly registered in the Fabric recipe manager so they appear in the vanilla recipe book.
  • Automatically handle compilation errors if Gradle fails to build.
Kodari AI
KodariOct 8 at 12:50 pm 28
ArtifactCraft
Adds six craftable wearable artifacts to Minecraft Fabric 1.21.1. Items trigger passive effects when held in hand or kept in inventory. Plastic Snorkel grants permanent Water Breathing. Obsidian Skull provides temporary Fire Resistance on fire damage. Universal Attractor pulls nearby dropped items within 5 blocks. Cloud in a Bottle enables double jumping with ground reset. Crystal Heart increases max health by 4 attribute points. Golden Hook boosts XP drops by 50%. All artifacts are craftable in the vanilla crafting table with shaped recipes, registered in the recipe manager, and include proper translation keys for the recipe book and item names.
  1. Set up the 26.2 Fabric project and add all six craftable artifacts.

  2. Implement inventory-based effects, item attraction, and fire-triggered resistance.

  3. Add double jump, bonus health/XP, and custom item visuals.

Task 1 is in: the mod scaffold, six registered artifacts, crafting recipes, names, and item assets are created. Now wiring the inventory effects and magnet; first I’m checking the exact 26.2 event and entity APIs.

Task 2 is in: the snorkel keeps Water Breathing refreshed, the skull grants five seconds of Fire Resistance after fire damage, and the attractor pulls dropped items from a true five-block radius. For the remaining effects, I’m checking server/client jump input, XP, and health attribute hooks.

Implemented Relics for Fabric Minecraft 26.2 / Java 25. The request’s “1.21.1” and “26.2” are different Minecraft versions, so the project targets 26.2. Artifacts work from anywhere in the player’s inventory or off-hand; no Trinkets or Curios dependency is needed.

  • Plastic Snorkel: refreshes Water Breathing while carried. Craft with 3 iron ingots across the top and a glass pane centered below.

  • Obsidian Skull: grants 5 seconds of Fire Resistance after fire or lava damage. Craft with 5 obsidian in a U-like shape around a center magma cream.

  • Universal Attractor: pulls dropped items from within 5 blocks. Craft with a compass in the center, two iron ingots on either side of redstone dust above it, and another redstone dust below.

  • Cloud in a Bottle: enables one extra midair jump, resetting on landing. Craft with a glass bottle in the center and 4 feathers in a cross.

  • Crystal Heart: adds 4 maximum health while carried. Craft with a diamond in the center, 4 redstone blocks on the cardinal sides, and 4 ghast tears in the corners.

  • Golden Hook: grants about 50% bonus XP from collected XP orbs. Craft with 3 gold ingots down the left side and 2 iron ingots completing the top row.

All six have crafting-table recipes, names, creative-tab entries, and custom item textures.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
35 463
src/main/java/dev/kodari/relics/RelicsMod.java
package dev.kodari.relics;

import net.fabricmc.api.ModInitializer;

public class RelicsMod implements ModInitializer {
    public static final String MOD_ID = "relics";

    @Override
    public void onInitialize() {
        ModItems.initialize();
        ArtifactEffects.initialize();
    }
}