intralite

make me a fabric mod that gives you a custom item a soul fragment which gives you one of 15 random powers and those powers are like bliss but you have to kill 8 players to craft a soul and that soul unlocks you 2 extra powers and then after you craft it you unlock a recipe to craft an Ultra Soul which gives you 4 powers but to craft it you need 2 netherite blocks, 2 nether stars, dragons breath and 2 soul essence which you can find in caves with a 5% chance of finding it flying around and to capture it you need a soul jar and to make one you need a soul torch, a glass block and any wooden plank at the top and to get a soul fragment you cant spawn kill players you have to kill 8 different people with a 50% drop chance

Kodari AI
KodariMar 8 at 5:43 pm 20,319 (v2)

I’ll create a Fabric mod with soul-based powers and progression system.

SoulPowers
A Fabric mod that introduces soul-based powers through crafting and combat. Players collect Soul Fragments from PvP kills (no spawn killing), which grant random powers. Fragments combine into Souls for additional powers, and ultimately Ultra Souls for maximum abilities. Features 15 unique bliss-like powers, cave-spawning Soul Essence entities that must be captured with Soul Jars, and a complete crafting progression system requiring rare materials like nether stars and dragon's breath.

Created a complete Fabric mod with soul-based powers and progression. The mod includes:

Core Features:

  • 15 unique permanent powers (Speed, Strength, Regeneration, Resistance, Jump Boost, Fire Resistance, Water Breathing, Night Vision, Haste, Luck, Absorption, Health Boost, Saturation, Dolphin’s Grace, Hero of Village)

  • Soul Fragment: Kill 8 different players for 50% drop chance, grants 1 random power

  • Soul: Craft from 8 fragments, grants 2 additional powers, unlocks Ultra Soul recipe

  • Ultra Soul: Requires 2 netherite blocks, 2 nether stars, dragon’s breath, 2 soul essence, grants 4 powers

  • Soul Essence: 5% chance to spawn in caves (below Y=60), flies around and must be captured

  • Soul Jar: Captures Soul Essence within 5 block range

  • Soul Torch: Crafting component for Soul Jar

  • Anti-spawn-kill protection (10 second immunity window)

  • Tracks kills per unique player (can’t farm same player)

  • Persistent player data with NBT saving

Note: You’ll need to create texture files (.png) in src/main/resources/assets/soulpowers/textures/item/ for: soul_fragment, soul, ultra_soul, soul_essence, soul_jar, and soul_torch. These should be 16x16 pixel textures in Minecraft’s style.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
Code
31 1,110
src/main/java/com/soulpowers/SoulPowersMod.java
package com.soulpowers;

import com.soulpowers.entity.ModEntities;
import com.soulpowers.entity.SoulEssenceEntity;
import com.soulpowers.event.PlayerEventHandlers;
import com.soulpowers.item.ModItems;
import com.soulpowers.power.PowerManager;
import com.soulpowers.block.ModBlocks;
import com.soulpowers.data.PlayerDataManager;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import net.fabricmc.fabric.api.object.builder.v1.entity.FabricDefaultAttributeRegistry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SoulPowersMod implements ModInitializer {
    public static final String MOD_ID = "soulpowers";
    public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
    
    private static PowerManager powerManager;
    private static PlayerDataManager playerDataManager;
    private static int essenceSpawnCounter = 0;

    @Override
    public void onInitialize() {
        LOGGER.info("Initializing Soul Powers Mod");
        
        ModItems.register();
        ModBlocks.register();
        ModEntities.register();
        
        FabricDefaultAttributeRegistry.register(ModEntities.SOUL_ESSENCE, SoulEssenceEntity.createSoulEssenceAttributes());
        
        powerManager = new PowerManager();
        playerDataManager = new PlayerDataManager();
        
        PlayerEventHandlers.register();
        
        ServerTickEvents.END_SERVER_TICK.register(server -> {
            essenceSpawnCounter++;
            if (essenceSpawnCounter >= 100) {
                essenceSpawnCounter = 0;
                SoulEssenceEntity.trySpawnEssence(server);
            }
            
            powerManager.tick(server);
        });
    }
    
    public static PowerManager getPowerManager() {
        return powerManager;
    }
    
    public static PlayerDataManager getPlayerDataManager() {
        return playerDataManager;
    }
}