titikshaa_haha
๐Ÿ“Ž 1 file 1,845 chars
๐Ÿ“„
pasted-code-1776495825531.txt
txt 73 lines
โ–ถ
Create a custom **Minecraft SMP God Weapon** with the following details:

**Item Name:** Demi-God Mace
**Rarity:** Legendary
**Item Type:** Mace
**Theme:** Divine power, wind force, and unstoppable strength
**Lore Line:** "The pinnacle of power."

**Base Enchantments:**

* Density VII
* Breach V
* Wind Burst I
* Unbreakable
* Glowing effect enabled

**Passive Effects (Always Active):**

* Strength II
* Speed II
* Fire Resistance
* Jump Boost II
* Cheat Death Passive:

  * If player would die, cancel death once
  * Restore player to 6 hearts
  * Give Regeneration II for 5 seconds
  * Give Absorption IV for 10 seconds
  * Cooldown: 2 hours

**Right Click Ability: INSTANT MACE**

* Cooldown: 90 seconds
* Effect:

  * The next melee hit deals massive fall-style damage
  * Simulates falling from extreme height
  * Applies extra knockback
  * Creates impact particles (explosion + wind burst)
  * Plays thunder or heavy slam sound

**Shift + Right Click Ability: INVINCIBILITY**

* Cooldown: 360 seconds
* Duration: 6 seconds
* Effects:

  * Resistance V (near invincibility)
  * Regeneration III
  * Absorption V
  * Player emits glowing divine particles
  * Wind swirl particle effect around player

**Visual Effects:**

* Purple and gold colored item name
* Legendary rarity styling
* Wind and lightning particles on ability use
* Explosion particles on impact
* Optional aura particles while holding the mace

**Balancing Notes:**

* Designed as an endgame SMP god-tier weapon
* High cooldowns to prevent spam
* Strong but limited survivability via Cheat Death

Generate this as a **fully functional custom item** compatible with:

* Minecraft Java Edition
* Supports datapacks, plugins, or custom item systems
* Uses proper cooldown tracking and effect handling
Kodari AI
KodariApr 18 at 7:08 am 20,403 (v2)
DemiGodMace
A custom SMP God Weapon plugin featuring the Legendary Demi-God Mace. Includes always-active passive effects (Strength II, Speed II, Fire Resistance, Jump Boost II), a Cheat Death mechanic that cancels fatal damage once every 2 hours, a Right-Click INSTANT MACE ability that charges the next hit with massive fall-style damage and knockback, and a Shift+Right-Click INVINCIBILITY ability granting near-total damage immunity for 6 seconds. Features divine aura particles, impact effects, and thunder sounds.
  • Main plugin registers managers, listener, and command; MaceManager creates the PDC-tagged item and runs passive/aura tasks; CooldownManager tracks per-player ability cooldowns

  • MaceListener handles interact events for abilities, EDBE for instant mace damage boost, and EntityDamageEvent @HIGHEST for cheat death interception

  • All effects use XSeries; 1.21-specific enchants (Density, Breach, Wind Burst) resolved via Enchantment.getByKey(NamespacedKey.minecraft(...))

The Demi-God Mace plugin is complete with full passive effects (Strength II, Speed II, Fire Resistance, Jump Boost II applied every 2s while held), a Cheat Death system intercepting fatal damage at HIGHEST priority with a 2-hour cooldown, a charged INSTANT MACE right-click dealing +42 bonus damage with explosive knockback and impact particles, an INVINCIBILITY shift-right-click granting Resistance V/Regen III/Absorption V for 6 seconds with rotating wind-swirl particles, 1.21-specific enchants (Density VII, Breach V, Wind Burst I) resolved via Enchantment.getByKey(NamespacedKey.minecraft(...)), and an /demigodmace give [player] admin command with cooldown clearing support.

titikshaa_haha

what are the commands of this plugin

Kodari AI
KodariApr 18 at 7:16 am 2,513 (v2)

Here is a full breakdown of every command in the plugin:


๐Ÿ“‹ Command Overview

Base Command: /demigodmace Permission: demigodmace.admin (default: OP only) Tab Completion: โœ… Fully supported on all arguments


/demigodmace

Shows the help menu listing all available subcommands.


/demigodmace give [player]

Gives the Demi-God Mace to a player.

Scenario
Behavior
/demigodmace give
Gives the mace to
yourself
(must be a player, not console)
/demigodmace give <player>
Gives the mace to the
specified online player

/demigodmace clearcooldown <player> <ability>

Clears a specific ability cooldown for a player. Notifies both the admin and the target player.

Ability Argument
What It Resets
INSTANT_MACE
90-second right-click ability cooldown
INVINCIBILITY
360-second shift+right-click ability cooldown
CHEAT_DEATH
2-hour cheat death passive cooldown

Example:

Plain Text
/demigodmace clearcooldown Steve CHEAT_DEATH

๐Ÿ”‘ Permission Node

Permission
Default
Description
demigodmace.admin
OP
Required for all
/demigodmace
commands
titikshaa_haha

give me the list of all abilities

Kodari AI
KodariApr 18 at 7:23 am 5,171 (v2)

Here is the complete list of all abilities on the Demi-God Mace:


โš”๏ธ Demi-God Mace โ€” Full Ability List


๐ŸŸข Passives โ€” Always Active (requires Mace in Main Hand)

Effect
Level
Refresh Rate
Strength
II
Every 2 seconds
Speed
II
Every 2 seconds
Fire Resistance
I
Every 2 seconds
Jump Boost
II
Every 2 seconds

Effects are refreshed every 40 ticks (2 seconds) so they never expire while held.


๐Ÿ”ฎ Aura โ€” Visual Passive (while holding)

Enchantment glimmer (ENCHANT) and divine glow (END_ROD) particles constantly orbit the player every 8 ticks (0.4 seconds).


๐Ÿ’€ Cheat Death โ€” Passive Survival (triggers automatically)

Property
Value
Trigger
Player would take lethal damage
Cooldown
2 Hours
Health Restored
6 Hearts
(12 HP)
Regen
Regeneration II for
5 seconds
Absorption
Absorption IV for
10 seconds
Particles
END_ROD burst + EXPLOSION burst
Sounds
Ender Dragon hurt + Beacon activate

Only triggers if the mace is in the main hand. Death is fully cancelled โ€” no item drop, no respawn screen.


โšก Right Click โ€” INSTANT MACE

Property
Value
Cooldown
90 seconds
Activation
Right-click (not sneaking)
Duration
Active until
next melee hit
Bonus Damage
+42 damage
added to hit
Knockback
Target launched with
3.5x horizontal + 1.8 vertical
velocity
Impact Particles
EXPLOSION + SWEEP_ATTACK + CLOUD burst
Sounds
Generic Explode + Thunder
Charged Message
โšก INSTANT MACE CHARGED!
Impact Message
โšก INSTANT MACE IMPACT!

The charge persists indefinitely until you land a hit. The cooldown starts at activation, not on impact.


๐ŸŒŸ Shift + Right Click โ€” INVINCIBILITY

Property
Value
Cooldown
360 seconds (6 minutes)
Duration
6 seconds
Resistance
V (near-total immunity)
Regeneration
III
Absorption
V
Particles
END_ROD aura + rotating wind-swirl CLOUD ring every 5 ticks
Sounds
Thunder + Ender Dragon ambient
End Message
Your invincibility has faded.

The rotating wind-swirl uses real-time System.currentTimeMillis() to animate the particle ring around the player smoothly.


โฑ๏ธ Cooldown Summary

Ability
Cooldown
Reset Command
Instant Mace
90s
/demigodmace clearcooldown <player> INSTANT_MACE
Invincibility
360s
/demigodmace clearcooldown <player> INVINCIBILITY
Cheat Death
7200s (2hr)
/demigodmace clearcooldown <player> CHEAT_DEATH
titikshaa_haha

i want to change some abilities in right click ability instant death one make it like that if we hit one shot of this any person standing in front would die immediately (no matter what is the health of that from warden to dragon etc) i want to replace some abilities in shift + right click replace the invisibility ability to mega jump like if we use shift + right click the jumps the player in the air about 30 40 blocks and if we hit the person at falling down it is dead cooldown 10 seconds also add a ability dash which can be activated by when holding the mace in main hand and pressing space bar 2 times simultaneously it dashes the player like lunge mace cooldown 2 seconds also add a ability create the key bind by yourself like keep the invisibility ability to that key bind like there would be 3 abilitiyes and passive ability other also instant mace cooldown 30 seconds also create a commands like to clear every ability cooldown from every player at once and one command like clear cooldown of evert avility from speicifc player create a command that bypass the user if we run the command like the user does not have to wait for cooldown to finish like command like /bypasscooldown playername

Kodari AI
KodariApr 18 at 7:37 am 22,392 (v2)

Hereโ€™s my plan:

  • INSTANT MACE โ†’ one-shot kill via event.setDamage(99999), 30s cooldown

  • MEGA JUMP โ†’ replaces INVINCIBILITY: Shift+RC launches player ~35 blocks up, next hit while in jump-mode = instakill, 10s cooldown

  • INVISIBILITY โ†’ F key (PlayerSwapHandItemsEvent), actual invisibility + divine effects, 360s cooldown

  • DASH โ†’ double-jump detection via PlayerMoveEvent tracking ground-to-air transitions, 2s cooldown

  • New commands: clearall [player], /bypasscooldown <player> (toggle bypass per player), plus clear all from all


Hereโ€™s a full breakdown of every change made:

โœ… Changes Summary

โš”๏ธ Ability Changes

Ability
Key
Old
New
INSTANT MACE
Right Click
+42 bonus damage
Instant kill any entity
(Warden, Dragon, anything) via
damage=99999
+
setHealth(0)
MEGA JUMP
Shift + Right Click
INVINCIBILITY (Resistance V)
Launch 35 blocks in the air
โ€” next hit while falling =
instant kill
โ€” 10s cooldown
INVISIBILITY
F Key
(swap hands)
(was old invincibility slot)
Invisibility + Resistance II + Speed III for 6 seconds โ€” 360s cooldown
DASH
Double Space
(jump twice โ‰ค350ms)
(new)
Lunge forward with powerful velocity โ€” 2s cooldown

๐Ÿ–ฅ๏ธ New / Updated Commands

Command
What it Does
/demigodmace clearall
Clears
all
ability cooldowns from
every
online player at once
/demigodmace clearall <player>
Clears
all
ability cooldowns from
one specific
player
/demigodmace clearcooldown <player> <ability>
Clears one specific ability for one player (now includes MEGA_JUMP, INVISIBILITY, DASH)
/bypasscooldown <player>
Toggles bypass
โ€” that player will never be put on cooldown for any ability. Run again to disable.
titikshaa_haha

the dash by pressing space bar 2 time one after one is not working and the cooldown for invis ability do it 10 seconds

Kodari AI
KodariApr 18 at 7:45 am 7,344 (v2)

Two fixes needed:

  • Dash: The double-jump detection window of 350ms is impossible in vanilla โ€” player must land between jumps. Reworking to track jump โ†’ land โ†’ jump quickly within a wider window.

  • Invisibility cooldown: Change 360L โ†’ 10L seconds.

  • Dash now uses a 3-step detection: jump โ†’ land โ†’ jump again within 700ms of the first jump, which is achievable in normal Minecraft movement.

  • Invisibility cooldown is now 10 seconds instead of 360.

titikshaa_haha

make the invis ability not for 6 second but make it for 15 seconds

Kodari AI
KodariApr 18 at 7:47 am 5,617 (v2)

Invisibility duration is now 15 seconds โ€” potion duration changed from 120 ticks to 300 ticks, the end-check updated to match, and the activation message now reads โ€œ15 seconds.โ€

titikshaa_haha

can u create a custom texture god texture op texture for ths?

Kodari AI
KodariApr 18 at 8:52 am 5,968 (v2)

I can create the resource pack structure with all the JSON model/definition files, but I cannot generate actual .png image files โ€” youโ€™ll need to provide or download the texture image yourself. Iโ€™ll set everything up so you just drop in the PNG and it works.

Now Iโ€™ll create the full resource pack and wire CustomModelData into the mace item.

Now wire CustomModelData 9001 into the mace item so it auto-applies the texture:


๐Ÿ“ฆ Resource Pack Structure Created

Plain Text
resourcepack/
โ”œโ”€โ”€ pack.mcmeta                          โ† Pack definition (format 34 = 1.21+)
โ””โ”€โ”€ assets/minecraft/
    โ”œโ”€โ”€ models/item/
    โ”‚   โ”œโ”€โ”€ mace.json                    โ† Overrides vanilla mace โ†’ custom model at CMD 9001
    โ”‚   โ””โ”€โ”€ demigod_mace.json            โ† Custom model with special display transforms
    โ””โ”€โ”€ textures/item/
        โ”œโ”€โ”€ demigod_mace.png             โ† โš ๏ธ YOU MUST ADD THIS FILE (see instructions)
        โ””โ”€โ”€ demigod_mace.png.mcmeta      โ† 8-frame animation config (delete if static)

๐ŸŽจ What You Need To Do

  1. Create/find the texture PNG โ€” place it at resourcepack/assets/minecraft/textures/item/demigod_mace.png

    • Recommended: 16ร—128 px (8 animated frames) or just 16ร—16 (static)

    • Style: dark purple shaft + glowing gold/magenta orb head with rune-like cracks

    • Free editor: Blockbench.net (browser-based, no install)

  2. Zip the pack โ€” zip the contents of resourcepack/ so pack.mcmeta is at the root

  3. Host it โ€” upload to a public URL (e.g. GitHub Releases, Dropbox, your server host)

  4. Apply it โ€” set resource-pack=<url> in server.properties, or the plugin can push it on join

The CustomModelData: 9001 is already baked into every mace the plugin creates โ€” as soon as players accept the resource pack, the texture activates automatically.

titikshaa_haha

I want to fix the dash like it is so hard to jump just after landing and as the limit for the second jump is 700ms it may sometime never dashes

Kodari AI
KodariApr 18 at 2:21 pm 6,322 (v2)

The logic is flawed โ€” it checks now - lastJump < 700ms at jump-time but lastJump at that point is the jump being recorded, not the previous one. Redesigning with clear 3-state tracking: first jump recorded โ†’ land recorded โ†’ second jump within 1200ms triggers dash.

What changed:

  • lastJumpTime now stores the first jump timestamp and is reset to 0 after a dash fires, so it can cleanly start over

  • lastLandTime is also reset after a dash so stale lands donโ€™t accidentally trigger another dash

  • Window widened from 700ms โ†’ 1200ms โ€” plenty of time to jump, land, and jump again without frame-perfect timing

  • The condition is now explicitly: first jump exists โ†’ a land happened after that jump โ†’ second jump is within 1200ms of the first jump โ†’ DASH

titikshaa_haha

Do it like dont keep it of jump after landing keep it like it dash like pressing 2 time space bar continuously to dash and also add an feature in dash if we look in the air and press dash ability the player dashes upwards and at the time of using shift + right click ability in the air if i press 2 time space bar the player dashes

Kodari AI
KodariApr 18 at 2:24 pm 11,572 (v2)

Now I have the full picture. Hereโ€™s my plan:

  • Double-tap space (no landing needed): On any groundโ†’air jump, if a previous jump was recorded within 400ms โ†’ dash. No landing step at all.

  • Upward dash: In handleDash, if pitch

  • Mid-air dash during mega jump: Since Bukkit fires no event when space is pressed while already airborne, right-click (no sneak) while megaJumpActive is true will trigger dash in-air instead of instant mace.

What changed:

  • Double-tap space (no landing): Detects two consecutive groundโ†’air jumps within 400ms โ€” no need to ever land between them. A scheduler clears the first-jump record after 400ms so stale jumps donโ€™t accidentally stack.

  • Upward dash: If pitch

  • Mid-air dash during Mega Jump: Right-clicking (no sneak) while megaJumpActive is true instantly triggers aerial dash โ€” since Bukkit has no event for space-bar while airborne in survival, right-click is the practical in-air trigger.

titikshaa_haha

I want a custom texture for the demi god mace so set a custom model data and give me the number of that

titikshaa_haha

I want a custom texture for the demi god mace so set a custom model data and give me the number of that

titikshaa_haha

I want a custom texture for the demi god mace so set a custom model data and give me the number of that

titikshaa_haha

want a custom texture for the demi god mace so set a custom model data and give me the number of that

Kodari AI
KodariApr 20 at 1:05 am 3,988 (v2)

Everything is already wired up โ€” CustomModelData: 9001 is set in the plugin and the resource pack JSON is ready. Nothing needs changing in the code.


โœ… Your Custom Model Data Number is: 9001

Hereโ€™s the full summary of whatโ€™s already in place:

File
Status
MaceManager.java
โœ…
meta.setCustomModelData(9001)
resourcepack/assets/minecraft/models/item/mace.json
โœ… Override triggers at CMD
9001
โ†’ loads
demigod_mace
model
resourcepack/assets/minecraft/models/item/demigod_mace.json
โœ… Custom display transforms with
layer0: demigod_mace
texture

๐ŸŽจ Only Thing Missing โ€” The PNG Texture

Place your texture here:

Plain Text
resourcepack/assets/minecraft/textures/item/demigod_mace.png

Recommended size: 16ร—16 (static) or 16ร—128 (8-frame animated)

Style suggestions for a โ€œDemi-Godโ€ mace:

  • ๐ŸŸฃ Deep purple/black shaft with gold trim runes

  • โœจ Glowing magenta/gold orb head

  • ๐Ÿ’œ Dark cracked energy lines running down the handle

Free tools to make it:

  • Blockbench โ†’ File โ†’ New Skin โ†’ 16ร—16 item

  • PixilArt โ†’ 16ร—16 canvas online

Once you drop the PNG in, zip the /resourcepack folder (so pack.mcmeta is at the zip root) and host it on your server. The CMD 9001 will auto-apply it to every mace the plugin creates.

titikshaa_haha

i want to add 4 more maces to this plugin and the demi god the main mace should be crafted by placing the 4 other good maces in crafting table or inventory to craft the demi god mace

  1. lunge hardened mace

normal enchantments - density 6 breach 1 wind burst 1 passives speed 2 right click - lunge 5s cd - dash through the air towards your enimies shift + right click mega jump 10 s cooldown loar high into the air and crash down knocking enemies back it is a legendary mace

  1. 2nd mace is bedock mace keep the abikities by yourself but make it very good and legendarry

make 3 and 4th mace by yourslf also keep unique names and make op abilities and textures and do that i have explained

Kodari can make mistakes. Review important code before using.
Files
resourcepack
src
build.gradle
settings.gradle
Code
14 990
src/main/java/com/demigodmace/DemiGodMace.java
package com.demigodmace;

import com.demigodmace.command.BypassCommand;
import com.demigodmace.command.MaceCommand;
import com.demigodmace.listener.MaceListener;
import com.demigodmace.manager.CooldownManager;
import com.demigodmace.manager.MaceManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class DemiGodMace extends JavaPlugin {

    private CooldownManager cooldownManager;
    private MaceManager maceManager;

    @Override
    public void onEnable() {
        this.cooldownManager = new CooldownManager();
        this.maceManager = new MaceManager(this);

        MaceListener listener = new MaceListener(this);
        getServer().getPluginManager().registerEvents(listener, this);

        MaceCommand maceCommand = new MaceCommand(this);
        getCommand("demigodmace").setExecutor(maceCommand);
        getCommand("demigodmace").setTabCompleter(maceCommand);

        BypassCommand bypassCommand = new BypassCommand(this);
        getCommand("bypasscooldown").setExecutor(bypassCommand);
        getCommand("bypasscooldown").setTabCompleter(bypassCommand);

        maceManager.startTasks();

        getLogger().info("Demi-God Mace has been forged and is ready.");
    }

    @Override
    public void onDisable() {
        getLogger().info("Demi-God Mace has been sheathed.");
    }
}