can you make me a minecraft java 26.1.2 mod where i can open a shop using /ah where i can buy every enchantment for materials like diamonds, gold, iron depending on the enchantment. Also I want to see the enchantment name and price in the shop.AND I WANT IT TO ACTUALLY GIVE ME THE BOOKS!
KodariSep 1 at 8:26 pm 2
EnchantShopGUI
Opens an enchantment shop GUI via /ah command. Displays every Minecraft enchantment with its name and price in diamonds, gold, or iron based on rarity and power. Players click an enchantment to purchase an enchanted book at the displayed cost, with currency deducted from inventory. Supports all vanilla enchantments, shows item lore with pricing, and grants the actual enchanted book item on purchase.
Project setup: create a Java 25 Fabric 26.2 mod skeleton (26.1.2 is not a valid released version in the 26.x scheme).
Auction-house command: add /ah and permission-safe server registration.
Shop UI: show every obtainable enchantment with names and material prices.
Purchases: validate payment, remove materials, and give the enchanted book.
Built the mod for Minecraft 26.2 because 26.1.2 is not a valid release in the new calendar versioning scheme.
Features included:
/ah command opens the auction-house shop.
Lists every registered enchantment and every available level.
Shows enchantment name, level, price, and required material.
Uses iron, gold, or diamonds based on the enchantment.
Server validates all purchases to prevent spoofed prices or enchantments.
Removes the required materials.
Creates and gives the player a real enchanted book.
Drops the book at the player’s feet if their inventory is full.
Paginated shop interface with Previous/Next buttons.
Uses Fabric 26.2 official names, Java 25, and the new networking API.
No external libraries or manifest.kod required.
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
14 534
src/main/java/com/kodari/ah/KodariAh.java
package com.kodari.ah;
import net.fabricmc.api.ModInitializer;
public final class KodariAh implements ModInitializer {
public static final String MOD_ID = "kodari_ah";
@Override
public void onInitialize() {
AhNetworking.initialize();
}
}