eddan_345

Amethyst Crystal Skeleton

Add a new hostile mob called the Amethyst Crystal Skeleton.

Appearance:

* A skeleton covered in glowing purple amethyst crystals. * Purple glowing eyes. * Small crystal spikes on its head, shoulders, arms, and legs. * Emits small purple sparkle particles.

Behavior:

* Spawns in caves and geodes. * Attacks players with a bow like a normal skeleton. * Has slightly more health than a regular skeleton.

Drops:

* Has a 15% chance to drop an Amethyst Crystal. * The Amethyst Crystal looks like an Emerald, but it is purple.

Amethyst Crystal Item:

* Can be used as an Armor Trim material. * Gives armor a bright purple trim color. * Works on all armor types. * Stack size: 64. * Rare and valuable.

The Amethyst Crystal Skeleton should make exploring caves and amethyst geodes more exciting by rewarding players with a rare purple Armor Trim material.

1 image attached
Kodari AI
KodariJul 5 at 2:45 am 29
AmethystCrystalSkeleton
Adds the Amethyst Crystal Skeleton, a glowing purple hostile mob that spawns in caves and amethyst geodes, emits purple sparkle particles, and attacks with a bow like a normal skeleton but with slightly more health. Has a 15% chance to drop a rare Amethyst Crystal, an emerald-shaped purple gem usable as an Armor Trim material that gives any armor piece a bright purple trim. Makes cave and geode exploration more rewarding.
AmethystCrystalSkeleton
Adds the Amethyst Crystal Skeleton, a glowing purple hostile mob that spawns in caves and amethyst geodes, emits purple sparkle particles, and attacks with a bow like a normal skeleton but with slightly more health. Has a 15% chance to drop a rare Amethyst Crystal, an emerald-shaped purple gem usable as an Armor Trim material giving any armor piece a bright purple trim. Makes cave and geode exploration more rewarding.

Created the Amethyst Crystal Skeleton mod:

  • Entity: extends SkeletonEntity (inherits bow-attack AI), +24 max health, spawns purple DustParticleEffect sparkles client-side each tick.

  • Spawning: registered via BiomeModifications.addSpawn in Dripstone Caves and Lush Caves, with proper SpawnRestriction.

  • Loot table: bones + arrows like a normal skeleton, plus 15% chance for amethyst_crystal.

  • Amethyst Crystal item: rare, stack size 64, registered as a data-driven Armor Trim material (amethyst.json) usable on all armor types.

  • Rendering: custom renderer subclassing SkeletonEntityRenderer, overriding getTexture to point at a custom purple skeleton texture.

Note: actual .png texture art (skeleton skin, item icon, trim palette) can’t be generated as binary content here — you’ll need to supply textures/entity/amethyst_crystal_skeleton.png, textures/item/amethyst_crystal.png, and the trim overlay texture assets referencing the amethyst asset name.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
15 321
src/main/java/com/example/amethystskeleton/AmethystSkeletonMod.java
package com.example.amethystskeleton;

import com.example.amethystskeleton.entity.ModEntities;
import com.example.amethystskeleton.item.ModItems;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.biome.v1.BiomeModifications;
import net.fabricmc.fabric.api.biome.v1.BiomeSelectors;
import net.minecraft.entity.SpawnGroup;
import net.minecraft.world.biome.BiomeKeys;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class AmethystSkeletonMod implements ModInitializer {
    public static final String MOD_ID = "amethystskeleton";
    public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

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

        BiomeModifications.addSpawn(
                BiomeSelectors.includeByKey(BiomeKeys.DRIPSTONE_CAVES, BiomeKeys.LUSH_CAVES),
                SpawnGroup.MONSTER,
                ModEntities.AMETHYST_CRYSTAL_SKELETON,
                30,
                1,
                2
        );
    }
}