skarvexalgamer
📎 1 file 1,352 chars
📄
pasted-code-1782833354809.txt
txt 61 lines
▶
Bilkul! Tumhare idea se ek Minecraft custom Mace plugin + resource pack ban sakta hai. Main concept design de raha hoon.

🔥 1. Fire Mace – Inferno Mace

Texture:

Black + dark red handle
Head glowing lava/cracked magma
Orange flame effect

Abilities:

Hit karne par target ko 8 sec Fire.
Ground smash se small fire explosion.
Fire resistance holder ko.
💧 2. Water Mace – Tidal Mace

Texture:

Blue crystal head
Aqua handle
Water bubbles around mace

Abilities:

Hit par Slowness + Weakness.
Ground smash se water wave jo enemies ko push kare.
Holder ko underwater fast mining aur water breathing.
🌪️ 3. Air Mace – Storm Mace

Texture:

White + cyan
Floating crystal pieces
Wind swirl effect

Abilities:

Hit par enemy ko knock up (air mein uchhalna).
Ground smash se nearby mobs ko knockback.
Holder ko Slow Falling.
🎨 Resource Pack Theme

Color Palette

🔥 Fire: Red, Orange, Black
💧 Water: Blue, Cyan, White
🌪️ Air: White, Cyan, Light Gray
Plugin Features
/givemace fire
/givemace water
/givemace air
Custom names, lore, particles, sounds
Paper/Spigot 1.21.x support
No mods required (plugin + resource pack only)

Agar tum chaho, main:

Complete Java plugin source code (Paper API) bana sakta hoon.
Ready-to-use resource pack (32x ya 64x textures) bhi design kar sakta hoon.
Plugin ko ItemsAdder/Oraxen ke saath bhi compatible bana sakta hoon.
Kodari AI
KodariJun 30 at 3:33 pm 1

I’ll create the Elemental Maces plugin — a complete elemental mace system with Fire, Water, and Air maces including hit effects, ground smash, passives, GUI, commands, config, and resource pack.

ElementalMaces
A Minecraft plugin adding three elemental maces (Fire, Water, Air) with unique abilities. Features include hit effects that set targets on fire, apply slowness/weakness, or launch enemies airborne. Ground smash abilities trigger on landing from height — fire explosions, water waves, and air knockback. Passive effects grant fire resistance, water breathing, and slow falling while holding each mace. Includes /givemace command with player targeting, configurable stats, selection GUI, and built-in resource pack support with CustomModelData integration for custom textures.

I’ll create the complete ElementalMaces plugin. Here’s my plan:

  1. build.gradle + plugin.yml + config.yml

  2. MaceType enum + ItemBuilder + MaceManager

  3. GUI framework (InventoryHandler, InventoryButton, InventoryGUI, GUIManager, GUIListener)

  4. MaceSelectionGUI (selection GUI)

  5. MaceListener (all abilities/effects)

  6. GiveMaceCommand + ElementalMaces main class


All 15 files created. Here’s what the plugin includes:

File
Purpose
build.gradle
Paper 1.21.4 build config
plugin.yml
Plugin metadata,
/givemace
command (alias
/gm
)
config.yml
All mace stats, lore, effects — hot-reloadable
MaceType.java
Enum: FIRE, WATER, AIR
ItemBuilder.java
Chain-style ItemStack builder
MaceManager.java
Creates mace items, detects mace type from item
InventoryHandler/Button/GUI
Reusable GUI framework (event-driven)
MaceSelectionGUI.java
27-slot GUI showing all 3 maces as clickable items
MaceListener.java
All abilities — hit effects, ground smash, passive runnable
GiveMaceCommand.java
/givemace [player] [fire|water|air]
with GUI fallback
ElementalMaces.java
Plugin main class

Abilities:

  • Fire (Inferno Mace) — Hit ignites target 8s; ground smash = fire explosion (3-block radius, 4 damage); passive = Fire Resistance

  • Water (Tidal Mace) — Hit applies Slowness II + Weakness 6s; ground smash = water wave pushing enemies back; passive = Water Breathing + Conduit Power (fast underwater mining)

  • Air (Storm Mace) — Hit launches target upward; ground smash = wind burst knocking back all nearby entities; passive = Slow Falling

Usage: /givemace (GUI), /givemace fire, /givemace Notch, /givemace Notch air. All effects, damage values, durations, and lore are configurable in config.yml. Resource pack support via custom-model-data (1001 / 1002 / 1003 on minecraft:mace).

skarvexalgamer

nice but are some give me but in mod

Kodari AI
KodariJun 30 at 3:52 pm 1

Just to make sure I understand — what kind of mod are you looking for?

  • Fabric mod (1.21.x, uses Fabric API)

  • NeoForge mod (1.21.x)

  • Forge mod (1.21.x)

Or do you mean a data pack + resource pack (vanilla-friendly, no Java mod required)?

Let me know and I’ll rewrite it in that format.

skarvexalgamer

fabric

Kodari AI
KodariJun 30 at 3:56 pm 2

Got it — rewriting as a Fabric mod for 1.21.x.

ElementalMaces
A Fabric mod adding three elemental maces (Fire, Water, Air) with unique abilities. Hit effects, ground smash, passive effects, config, custom GUI, and custom item models.

Let me check the existing project structure first

I’ll delete the old Bukkit structure and create a complete Fabric mod.

Old files cleaned up. Now I’ll create the complete Fabric mod structure.


Fabric mod created — 18 files. Here’s the structure:

File
Purpose
build.gradle
Fabric Loom + API 1.21.4
settings.gradle
Fabric maven resolution
gradle.properties
Versions for MC 1.21.4, Yarn, Fabric Loader 0.16.9, API 0.111.1
fabric.mod.json
Mod entrypoint, dependencies
ElementalMaces.java
ModInitializer
— registers items, commands, events, config
MaceType.java
FIRE / WATER / AIR, with display names and colors
ModItems.java
Registers 3
ElementalMaceItem
instances as Fabric items
ElementalMaceItem.java
Extends
MaceItem
— overrides
postHit()
for hit + smash effects
ModConfig.java
JSON config via Gson — all damage, duration, radius values
AbilityHandler.java
ServerTickEvents
for passive effects every 20 ticks
ModCommands.java
/emaces give [player] [fire|water|air]
+
/emaces list
+
/emaces gui
en_us.json
Item names, tooltips, command feedback
fire_mace.json
/
water_mace.json
/
air_mace.json
Item models (parent:
minecraft:item/mace
, custom texture paths)
3 recipe files
Shapeless crafting recipes upgrading a vanilla mace

Abilities (all configurable in config/elementalmaces.json):

Mace
Hit Effect
Ground Smash (fall >3 blocks)
Passive (while held)
🔥 Inferno Mace
Target on fire 5s + area fire 2s
4-block fire explosion, 6 damage
Fire Resistance
💧 Tidal Mace
Slowness II + Weakness 4s
5-block water push wave
Water Breathing + Dolphins Grace (fast swim)
🌪️ Storm Mace
Launch upward 1.5 blocks
6-block wind burst knockback
Slow Falling

Commands:

  • /emaces give [player] [fire|water|air] — give a mace

  • /emaces list — show all mace types

  • /emaces gui — open a selection GUI

  • Permission: elementalmaces.command (op by default)

Recipes (all need a vanilla mace):

  • 🔥 Mace + Blaze Rod + Fire Charge + Magma Cream

  • 💧 Mace + Prismarine Shard + Heart of the Sea + Kelp

  • 🌪️ Mace + Phantom Membrane + Feather + Breeze Rod

To build & use:

Shell
./gradlew build
# JAR → mods/ folder
# Requires: Fabric Loader 0.16.9+, Fabric API 0.111.1+

Drop the generated .jar into your Fabric server/client mods/ folder. A config/elementalmaces.json will auto-generate on first run with all values editable.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
15 832
src/main/java/com/elementalmaces/ElementalMaces.java
package com.elementalmaces;

import com.elementalmaces.commands.GiveMaceCommand;
import com.elementalmaces.inventory.gui.GUIListener;
import com.elementalmaces.inventory.gui.GUIManager;
import com.elementalmaces.listeners.MaceListener;
import org.bukkit.plugin.java.JavaPlugin;

public class ElementalMaces extends JavaPlugin {

    private static ElementalMaces instance;
    private MaceManager maceManager;
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        instance = this;

        saveDefaultConfig();

        this.maceManager = new MaceManager(this);
        this.guiManager = new GUIManager();

        // Register GUI listener
        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);

        // Register mace listener
        MaceListener maceListener = new MaceListener(maceManager);
        getServer().getPluginManager().registerEvents(maceListener, this);
        maceListener.startPassiveRunnable(this);

        // Register command
        GiveMaceCommand giveMaceCommand = new GiveMaceCommand(maceManager, guiManager);
        getCommand("givemace").setExecutor(giveMaceCommand);

        getLogger().info("Elemental Maces v" + getDescription().getVersion() + " enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("Elemental Maces disabled.");
    }

    public static ElementalMaces getInstance() {
        return instance;
    }

    public MaceManager getMaceManager() {
        return maceManager;
    }

    public GUIManager getGuiManager() {
        return guiManager;
    }
}