D

Create a Minecraft mod for version 1.21.11.

Aura Crystal

Craft a crystal with a rotating block inside to grant nearby players selected positive effects.

Category: Adventure | Style: Vanilla | Size: Medium

Overview

The Aura Crystal is a decorative yet functional block consisting of a rotating core and a magical pedestal. Players can craft it using 3 Crying Obsidian, 5 Glass, and a specific type of block (Iron, Diamond, Gold, Emerald, or Netherite). The crystal emits a positive effect chosen by the player via right-click; the effect is purchased using experience points or a diamond. The effect's range and potency depend on the type of block used during crafting.

Key Features

  • Right-click the crystal to open a menu listing all available positive effects (e.g., Speed, Haste, Regeneration).
  • The crystal can only be broken with a diamond pickaxe.
  • The crystal's aura radius depends on the central block type: Iron (20 blocks), Diamond (48 blocks), Netherite (150 blocks), Emerald (60 blocks), Gold (35 blocks).
  • The central block rotates inside the glass casing; visual particle effects correspond to the selected buff.
  • Multiple crystals can be placed, but each can have only one active effect; effects stack if they are different.
  • When active, crystals emit a low hum and glow; their operation can be disabled using a Redstone signal. ## New Content

Items:

  • Aura Crystal (placeable block)
  • Magic Stand (crafting component)
  • Effects Tome (optional item for permanently unlocking effects)

Blocks:

  • Aura Crystal (tiered variants: Emerald, Gold, Iron, Diamond, Netherite)
  • Magic Stand (decorative block, part of the recipe)

Progression

  • Early Game: Craft an Iron-tier Aura Crystal using an Iron Block, a Netherite Ingot, and Glass. Unlock basic effects like Speed ​​or Haste for a small cost.
  • Mid-Game: Upgrade to the Diamond tier by crafting a new crystal using a Diamond Block. Gain access to more powerful effects (e.g., Regeneration or Resistance) and an increased range.
  • Late Game: Craft a Netherite-tier crystal using a Netherite Block. Unlock all positive effects (including Absorption and Dolphin's Grace) with maximum range and duration.

Compatibility Notes

The mod works seamlessly with any add-ons that introduce new potion effects, as the GUI displays them dynamically. It is compatible with standard Redstone components and decorative blocks. No conflicts with major mods are expected.

Development Tips

  • Use BlockEntityRenderer to animate the rotating central block; store the block state in the crystal's NBT data. — Implement a simple UI screen featuring a scrollable list of effects; use a mixin to filter positive effects from the potion registry.

— To implement the area of ​​effect, use a block entity that performs a check every 20 ticks and applies the effect to entities within the sphere. — Create a unique model for the crystal block featuring a glass casing and a rotating inner element; use a baked model with a dynamic component. — Balance the cost: use experience levels for early crystal tiers and emeralds for later ones; add a cooldown to prevent abuse (spamming).

Lore

Legends speak of ancient mages who imprisoned untamed magic within crystalline dungeons, using the essence of rare materials to focus their will. The Aura Crystal is a modern revival of this ancient art—a way to bind the block's spirit and channel its blessing onto the surrounding lands. Each crystal vibrates, resonating with the soul of its core, and those who offer a tribute can alter its aura to suit their needs.

Kodari AI
KodariOct 8 at 6:39 pm 10
AuraCrystal
A decorative functional block featuring a rotating core that grants nearby players selected positive effects. Players craft tiered crystals using Crying Obsidian, Glass, and a core block (Iron, Gold, Diamond, Emerald, or Netherite) determining aura radius and potency. Right-click opens a GUI listing available positive effects purchasable with experience or diamonds. Block entity checks every 20 ticks applying effects to entities within sphere radius. Redstone signal disables operation. Crystal requires diamond pickaxe to break, emits particles matching active buff, and supports stacking different effects from multiple crystals.
  1. Set up a Fabric mod targeting Minecraft 1.21.11.

  2. Add tiered Aura Crystal and Magic Stand content, recipes, and persistent block data.

  3. Implement effect selection, payment, redstone shutdown, and area buffs.

  4. Add the rotating-core renderer and basic vanilla-style assets.

Created a Fabric mod targeting Minecraft 1.21.11 with five Aura Crystal tiers, a scrollable registry-based positive-effect menu, XP-or-diamond payment, persistent effect selection, tier-scaled range and potency, redstone shutdown, particles, a quiet chime, and a rotating core. Crystals require a diamond pickaxe to break.

The Magic Stand has its own crafting recipe. Crystal recipes follow the specified 3 Crying Obsidian + 5 Glass + tier-block recipe; that fills the 3×3 grid, so the stand isn’t an additional ingredient.

The crystal uses a vanilla-glass placeholder shell and animated vanilla block core. A custom .bbmodel must be created in Kodari Studio (paid plans) and brought into this project through a workspace. Texture generation is disabled; enable it in Settings → Generation, or for all projects at https://kodari.ai/settings?tab=features.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
48 692
src/main/java/com/kodari/auracrystal/AuraCrystalMod.java
package com.kodari.auracrystal;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.player.PlayerBlockBreakEvents;
import net.minecraft.item.Items;

public final class AuraCrystalMod implements ModInitializer {
    public static final String MOD_ID = "auracrystal";

    @Override
    public void onInitialize() {
        ModBlocks.initialize();
        ModBlockEntities.initialize();
        AuraNetwork.initialize();
        PlayerBlockBreakEvents.BEFORE.register((world, player, pos, state, blockEntity) ->
                !(state.getBlock() instanceof AuraCrystalBlock)
                        || player.getMainHandStack().isOf(Items.DIAMOND_PICKAXE));
    }
}