jovanovicrelja

i need you to make a plugin that works like this:

X Gem: summons a ring of tnt-s around you, and launches you 15 blocks in the air and giving u slow falling for 10 seconds. 2 minute cooldown.

Y Gem: gives you temporary wings which u can use to fly for 20 seconds, the wings are like a elytra with rockets, also launches you 30 blocks in the air per usage gives you permanent speed 1. 2 minute cooldown.

Z Gem: shoots tnt minecarts in the direction you`re looking, shoots 2 carts per hit, and u can use it 5 times per usage until the cooldown, gives you permanent strength 1. 2 minute cooldown.

Q Gem: all the gems combined, has all the abilities from the X, Z and the Y gem, can throw ender dragon breath balls at people. total of 3 balls per usage. gives you permanent regeneration 1. cooldown is 5 minutes

make a custom texture pack for all the gems: the X gem is fully red with some type of glowing effect, same as the Y gem, which is green, and the Z gem, which is dark blue, the q gem is red green and dark blue combined

make altars for all the gems, to get the q gem u need to hold the x, y, and the z gem. make player heads drop on death of people. make custom recipes for every gem and a custom animation when u craft it. if the any of the gems is destroyed, the recipes open up, if the gems are already crafted, they cannot be crafted again.

make a command to /give gems, and to summon altars, and to paste them on the coordinates we want

Kodari AI
KodariOct 31 at 8:58 pm 3
ElementalGems
A Minecraft plugin introducing four elemental gems with unique abilities. X Gem summons TNT rings, launches players 15 blocks with slow falling. Y Gem grants temporary elytra flight with rockets and permanent speed. Z Gem fires TNT minecarts with permanent strength. Q Gem combines all abilities plus dragon breath projectiles. Features custom glowing textures, craftable altars, player head drops, custom recipes with crafting animations, one-time crafting system, and commands to give gems and summon altars at specified coordinates.
  1. Build the gem plugin: abilities, cooldowns, passives, unique recipes, altars, admin commands, and player-head drops.

  2. Add plugin/build configuration and model-data hooks; custom textures need Kodari Studio, which is disabled for this project.

Implemented the gem plugin with /gems give <player> <x|y|z|q> and /gems altar <gem> <world> <x> <y> <z> (also /gems summon). Right-click a gem to use it; sneak-right-click the Q Gem to cycle through its X, Y, Z, and Q abilities.

  • X launches you upward, gives 10 seconds of Slow Falling, and summons a TNT ring.

  • Y launches you upward and provides temporary elytra wings with rockets for 20 seconds; it also grants permanent Speed I.

  • Z launches two TNT minecarts per use, with five uses before its cooldown; it grants permanent Strength I.

  • Q includes the other gem abilities, has three dragon-fireball uses, and grants permanent Regeneration I. It also grants the Speed and Strength passives.

  • Each gem has an altar recipe and craft animation. Q requires the X, Y, and Z Gems. Recipes are available again when a gem item is destroyed or despawns. Players drop their head on death.

The gems have custom model-data values, but the texture pack itself wasn’t generated because Kodari Studio is disabled for this project. Enable it via Settings → Generation; it’s also available for all projects at https://kodari.ai/settings?tab=features.

jovanovicrelja

can u make tthe texture now?

Kodari AI
KodariOct 31 at 9:03 pm 9

Created the four 64×64 gem textures:

  • X: gem-resource-pack/assets/minecraft/textures/item/x_gem.png

  • Y: gem-resource-pack/assets/minecraft/textures/item/y_gem.png

  • Z: gem-resource-pack/assets/minecraft/textures/item/z_gem.png

  • Q: gem-resource-pack/assets/minecraft/textures/item/q_gem.png

They’re the artwork; model mappings are still needed for Minecraft to display them on the gem items.

jovanovicrelja

dumbass

Kodari AI
KodariOct 31 at 9:03 pm 1

The generation was stopped before any content could be produced.

jovanovicrelja

the plugin doesent work, the abilities dont work, make them use on shift-right click. also the passives should be like infinite

Kodari AI
KodariOct 31 at 9:04 pm 1
  1. Change gem activation to shift-right-click and check that the listener handles all gem abilities.

  2. Make the gem passives continuously active while the gem is held, without expiring.

Updated gem use to Shift + right-click. Q Gem abilities now activate with Shift + right-click; plain right-click cycles Q’s selected ability. Speed, Strength, and Regeneration passives are refreshed every second with a 60-second effect, so they stay active continuously for players who have unlocked them.

jovanovicrelja

the recipes dont work, the y,z,and q gem dont work and when i dont have the gems i still have all the passive effects

Kodari AI
KodariOct 31 at 9:11 pm 2
  1. Fix gem recipe registration and crafting behavior.

  2. Repair Y, Z, and Q ability activation.

  3. Remove passive effects when a player no longer carries the corresponding gem.

Fixed altar ingredient checks and consumption, including gem items in the offhand. Y now launches about 30 blocks and waits until you’re descending before activating the elytra glide. Passives now stay active only while you carry the gem that grants them, and are removed when you don’t.

Z launches two TNT minecarts per Shift-right-click, up to five uses. For Q, normal right-click cycles abilities; Shift-right-click activates the selected one, including its three dragon fireballs.

jovanovicrelja

the crafting still doesent work, for the q gem make the x ability shift right click, y shift left click, and z shift ctrl, for the main q gem ability shift and 1

Kodari AI
KodariOct 31 at 9:18 pm 1
  1. Trace and fix why altar crafting still fails.

  2. Update Q Gem controls: Shift-right-click for X, Shift-left-click for Y, Shift-Ctrl for Z, and Shift+1 for Q’s main ability.

The altar now recognizes clicks on its full 5×5 crafting surface, including its center marker. Next I’m changing Q Gem input handling.

Fixed altar detection so clicking anywhere on the altar’s 5×5 floor—or its center lodestone—starts the crafting check.

Q Gem controls are now:

  • Shift + right-click: X ability

  • Shift + left-click: Y ability

  • Shift + Ctrl: Z ability (detected as sneaking while sprint is toggled)

  • Shift + 1: Q’s dragon-fireball ability when selecting hotbar slot 1 while holding or selecting the Q Gem

jovanovicrelja

so the q gem has a cooldown for each of the abilities it should be only when u use one of them that u have a cooldown for the specific ability

Kodari AI
KodariOct 31 at 9:22 pm 1
  1. Give each Q ability its own cooldown and charge counter.

  2. Keep standalone X/Y/Z gems on their existing cooldown behavior.

Q Gem abilities now have separate 5-minute cooldowns: using X, Y, Z, or the main Q ability only puts that ability on cooldown. Z’s five uses and Q’s three fireballs also track charges independently.

jovanovicrelja

shift ctrl doesent work and also make the texturesssssssssssssss

Kodari AI
KodariOct 31 at 9:27 pm 1
  1. Fix Q Gem’s Shift+Ctrl Z-ability input.

  2. Create or finish the four gem textures.

Fixed Q’s Z input: Shift+Ctrl now triggers on either sprint-state transition while you’re sneaking and holding the Q Gem.

The four gem textures were already in the project; I completed their Minecraft 1.21.4 item-model mappings. The pack is in gem-resource-pack/—load it as a resource pack to see the custom gem artwork.

jovanovicrelja

NOW THE SAME THING IS HAPPENING WITH THE Q GEM IT DOESENT WORK

Kodari AI
KodariOct 31 at 9:30 pm 1
  1. Fix the Q Gem’s Shift+Ctrl input, which currently ignores sprint-toggle events unless they turn sprint on.

  2. Preserve the separate Z ability cooldown and charge logic.

Fixed the Q Gem’s Shift+Ctrl input: the Z ability now responds to either sprint-state toggle while you’re sneaking with the Q Gem in your main hand. Its separate cooldown and charges are unchanged.

jovanovicrelja

it still has the cooldiwn for every gem on q gem

Kodari AI
KodariOct 31 at 9:35 pm 1
  1. Isolate Q Gem cooldowns and charges from standalone X/Y/Z tracking.

  2. Keep separate Q keys for X, Y, Z, and the main ability so using one cannot block another.

Q Gem abilities now use cooldown and charge tracking separate from the standalone gems. Each Q ability—X, Y, Z, and main Q—has its own cooldown, so using one won’t put the others on cooldown.

jovanovicrelja

i deleted the gems through the creative inventtory and it says tthey are still active

Kodari AI
KodariNov 1 at 10:11 am 1

Added a post-inventory-click refresh, including creative inventory clicks. When you delete a gem, its passive effects are now cleared after the inventory update instead of waiting for the periodic refresh.

jovanovicrelja

also change the altars make them look really cool and that u cant destory them

Kodari AI
KodariNov 1 at 10:16 am 1
  1. Find how altars are built and identify every way their blocks can be broken or modified.

  2. Upgrade the altar’s in-game appearance and protect its structure from destruction.

The altar is currently just a small floor and lodestone, with no break or explosion protection. I’m adding a lit, raised corner-pillar design and protection for the altar’s floor, center, and pillars against breaking, explosions, entity block changes, and pistons.

Updated altars to have colored inlays, obsidian corner pillars, and glowing caps. Saved altars get the new design on plugin startup. Players can’t break altar blocks, and explosions, pistons, and entity block changes won’t destroy or move them.

jovanovicrelja

THE Q GEM STILL DOESENT WORK AND THE ALTARS DONT WORK

Kodari AI
KodariNov 1 at 10:33 am 1
  1. Trace and fix Q Gem ability handling.

  2. Trace and fix altar detection and crafting.

Fixed both issues:

  • Q’s main ability now runs after the hotbar switches to slot 1. Z also recognizes a sprint toggle while sneaking, or sprint followed by sneak within 0.5 seconds. Bukkit exposes sprint-state events, not raw Ctrl key presses.

  • Altars now craft on left- or right-click. If the last live gem is deleted from inventory, the stale “already active” state is cleared so its altar recipe becomes available again.

jovanovicrelja

when i use the q gems the cooldown cant impact other gems, the z gem ability is shift + F, but dont make it offhand if u are holding the gem, also the q gem ability is shift + 1

Kodari AI
KodariNov 1 at 10:38 am 1

[Generation stopped]

jovanovicrelja

when a gem is desttroyed, make it a server wide announceement and a sound effect happenes when it is destroyed

Kodari AI
KodariNov 1 at 10:40 am 1
  1. Route gem destruction through one check so recipes only reopen when no live copy remains.

  2. Broadcast the destruction and play a server-wide sound when that happens.

Gem destruction now broadcasts to the whole server and plays a Wither-death sound for online players. The recipe only reopens—and the announcement plays—when no live copy of that gem remains.

jovanovicrelja

DAWG THE Q GEM ABILITIES ARE:

X GEM: shift right click Y GEM: shift left click Z GEM: shift + 1 Q GEM: shift + 2

AND THE ALTARS STILL ARE SHIOT

Kodari AI
KodariNov 1 at 10:45 am 1
  1. Set the gem abilities to the exact Shift+click/number controls you listed, keeping cooldowns isolated by gem.

  2. Trace and fix the altar structure, recipe, and interaction so the altars actually work.

[Generation stopped]

jovanovicrelja

also the x gem launches u 20 blocks

Kodari AI
KodariNov 1 at 10:47 am 1

[Generation stopped]

jovanovicrelja

DAWG THE Q GEM ABILITIES ARE:

X GEM: shift right click Y GEM: shift left click Z GEM: shift + 1 Q GEM: shift + 2

AND THE ALTARS STILL ARE SHIT

also the x gem launches u 20 blocks

Kodari AI
KodariNov 1 at 10:53 am 3
  1. Set the gem abilities to the exact Shift+click/number controls you listed.

  2. Make the altars work reliably and improve their appearance.

  3. Set the X Gem launch to 20 blocks.

  1. The current handlers already map X to Shift+right-click, Y to Shift+left-click, Z to Shift+1, and Q to Shift+2; their cooldown maps are separate.

  2. Inspecting the altar recipe, structure detection, and click flow to find why they still fail.

  3. Set the X Gem launch to reach 20 blocks.

  1. Controls: X = Shift+right-click; Y = Shift+left-click; Z = Shift+1; Q = Shift+2. Z/Q still use separate cooldown tracking, and releasing Shift right after the keypress won’t cancel the activation.

  2. Altars: Rebuilt as larger colored platforms with illuminated pillars. Crafting no longer resets a gem’s crafted state before checking ingredients. Altar blocks are protected from breaking, explosions, pistons, and entity block changes.

  3. X Gem: Increased the launch to about 20 blocks upward; slow falling remains enabled.

jovanovicrelja

PUT SOME SOUND EFFECTS AND THE FUCKING GEM CONTROLS DONT WORK THE Q GEM DOESENT WORK

Kodari AI
KodariNov 3 at 5:11 pm 1
  1. Fix the Shift+click and Shift+number ability detection, especially Q Gem activation.

  2. Add sound feedback to gem abilities.

  1. Q/Z controls: Shift+1 and Shift+2 now also work if the server registers the hotbar change just before it registers Shift; the matching gem must still be held or in the selected slot.

  2. Ability sounds: Added distinct launch, wings, TNT, and dragon-fireball sounds for the gem abilities.

jovanovicrelja

so add to the q gem, shift+1 = dragon ball shift+2 = 15 second invincibility = take no damage at all for 15 seconds cooldown on the first ability = 3 minutes cooldown on the second ability = 7.5 minutes

also when i use the abilities on numbers 1 and 2 make it so i dont switch to my 1 and 2 hotbar slot

Kodari AI
KodariNov 3 at 5:17 pm 1
  1. Update Q Gem’s Shift+1/Shift+2 abilities, durations, and independent cooldowns.

  2. Prevent those ability keys from changing the selected hotbar slot.

Q Gem controls are updated: Shift+1 launches the dragon fireball with a 3-minute cooldown; Shift+2 grants 15 seconds of damage immunity with a 7.5-minute cooldown. Both abilities have separate cooldowns, and the hotbar slot is kept from changing when the ability activates.

jovanovicrelja

okay, the z gem doesentt work and i need a command to clear the cooldown, also on the q gem make the first ability 3 dragon balls before the cooldown, and make effect particles for when u enable invincibility, and i need a command to clear the gems

Kodari AI
KodariNov 3 at 5:22 pm 1
  1. Fix Z Gem activation.

  2. Add an admin command to clear gem cooldowns.

  3. Make Q’s first ability launch three dragon balls before cooldown starts.

  4. Add particles when Q’s invincibility activates.

  5. Add an admin command to clear gems.

[Generation stopped]

jovanovicrelja

also make a command so i can see all keybinds for gems

Kodari AI
KodariNov 3 at 5:24 pm 2
  1. Fix Z Gem activation.

  2. Add commands to clear gem cooldowns, clear gems, and list gem keybinds.

  3. Update Q Gem to fire three dragon balls and add invincibility particles.

Z now listens for Shift+1 when the Z Gem is held and prevents the slot switch. I’m adding the cooldown, gem-clear, and keybind commands under the existing /gems command.

The new /gems admin actions and public /gems keybinds are in place. I’m updating Q’s fireball ability to launch a three-shot volley and adding a particle burst when invincibility starts.

Z Gem’s Shift+1 now activates when you’re holding it, without switching hotbar slots. Q’s Shift+1 launches three dragon balls; Shift+2 grants 15 seconds of invincibility with a totem-and-sparkle particle burst. Their existing cooldowns remain 3 minutes and 7.5 minutes.

Commands added:

  • /gems keybinds — shows all gem controls; available without admin permission.

  • /gems clearcooldown <player|all> — clears cooldowns and charged uses.

  • /gems clear <player|all> — removes gems from a player, or from all online players and dropped items.

jovanovicrelja

add it so i can clear specific gems from specific players, clear all gems and even if theyre on the floor or stashed, and make them burn in lava and shi

Kodari AI
KodariNov 3 at 5:30 pm 2
  1. Add removal of a chosen gem from a specific player.

  2. Make global clearing reach dropped gems and stored gems, not just online inventories.

  3. Make gems burn up in lava.

/gems clear <player> <gem> now removes only that gem from an online player. Next I’m extending global cleanup to player ender chests and stored containers, then adding explicit lava destruction for dropped gems.

Added:

  • /gems clear <player> <x|y|z|q> to remove one gem type from an online player.

  • /gems clear <player> or /gems clear <player> all to remove all their gems.

  • /gems clear all [x|y|z|q|all] to clear gems from online players, dropped items, ender chests, and containers in loaded chunks, including gems inside shulker boxes.

  • Dropped gems are now destroyed when they enter lava.

Offline player inventories and containers in unloaded chunks aren’t scanned by this command.

jovanovicrelja

also when they are on the floor

Kodari AI
KodariNov 3 at 5:32 pm 1

/gems clear all already removes gem items dropped on the ground, and /gems clear all <x|y|z|q> removes only that gem type. Dropped gems lying in lava are also destroyed by the existing lava check.

jovanovicrelja

make the y gem launch u up 350 block and then smash into the ground at the coordinates ur looking at, dealing a lot of damage but not taking fall damaga

Kodari AI
KodariNov 4 at 6:02 pm 1

The generation was stopped before any content could be produced.

jovanovicrelja

actually 75 blocks

Kodari AI
KodariNov 4 at 6:04 pm 1

Plan: replace the Y Gem’s wings with a controlled 75-block ascent and a dive to the ground coordinates you’re looking at; deal area damage on impact and suppress fall damage for the whole move.

Y Gem’s ability now launches you 75 blocks upward, then dives to the ground coordinates you’re looking at and deals 20 damage to nearby living entities. Fall damage is suppressed during the ability.

jovanovicrelja

it doesent work

Kodari AI
KodariNov 4 at 6:12 pm 1

Plan:

  • Replace Y Gem’s leftover Elytra code with a real 75-block ascent and aimed dive.

  • Cancel fall damage during the move and deal impact damage at the landing point.

  • Clean up the move safely if the player quits, dies, or changes worlds.

Fixed the Y Gem: its code was still activating temporary Elytra wings. Now sneak + left-click launches you 75 blocks up, dives to the solid ground you’re looking at, prevents fall damage during the move, and deals 20 damage to nearby living entities on impact.

jovanovicrelja

it looks a bit weird on my screen i cant look anywhere also the first q gem ability doesent worj

Kodari AI
KodariNov 4 at 6:20 pm 1
  • Keep the Y Gem’s camera rotation under player control during ascent and dive; lock the landing target when the ascent ends.

  • Make Shift+1 cancel the hotbar change and launch Q’s three dragon fireballs using their fireball direction API.

Y Gem no longer forces your camera direction: you can look around during the ascent, and it aims the slam where you’re looking when the dive begins. Q Gem’s Shift+1 now cancels the hotbar switch and launches all three dragon fireballs with an explicit fireball direction.

jovanovicrelja

the y gem still doesentt work

Kodari AI
KodariNov 4 at 6:51 pm 1

Y Gem activation now works with sneak + left-click or right-click while holding it. If it’s still on cooldown from testing, use /gems clearcooldown <yourname> and try again.

jovanovicrelja

no the shit is bugged i cant move my cam when i enable the ability

Kodari AI
KodariNov 4 at 7:01 pm 1

I found the cause: the Y Gem teleports you every tick, which keeps snapping the client’s view. I’ll replace those repeated teleports with velocity-based movement so the camera stays under your control while the slam still aims at the block you’re looking at.

Fixed the Y Gem’s camera lock: its ascent and dive now use velocity instead of teleporting every tick, so you can look around freely. It still rises for 30 ticks, locks the target you’re looking at when the dive begins, and cancels fall damage during the slam.

Kodari can make mistakes. Review important code before using.
Files
gem-resource-pack
src
build.gradle
settings.gradle
Code
22 1,634
src/main/java/com/kodari/gemartifacts/GemPlugin.java
package com.kodari.gemartifacts;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class GemPlugin extends JavaPlugin {
    private GemItems gemItems;
    private GemManager gemManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        gemItems = new GemItems(this);
        gemManager = new GemManager(this, gemItems);
        getServer().getPluginManager().registerEvents(gemManager, this);

        PluginCommand command = getCommand("gems");
        if (command != null) {
            GemCommand gemCommand = new GemCommand(gemManager);
            command.setExecutor(gemCommand);
            command.setTabCompleter(gemCommand);
        }
        gemManager.startPassiveRefresh();
    }

    @Override
    public void onDisable() {
        if (gemManager != null) {
            gemManager.shutdown();
        }
    }
}