nebulax4e

Can you make a lootdrop plugin with detailed animations make the lootbox a barrel and maybe a parachute if you can make this plugin work for 1.21.11 paper java 21-25

Kodari AI
KodariSep 21 at 11:26 am 2
LootDropParachute
A Minecraft Paper plugin that creates an interactive loot drop system using barrels as lootboxes. Players can spawn a barrel that drops from the sky with a visual parachute animation, complete with a custom GUI for opening the loot. The plugin features a particle effect trail following the falling barrel, a parachute canopy visual above the barrel during descent, and a landing impact effect with dust particles. Players interact with the barrel to open a loot GUI displaying randomized rewards. The system includes configurable drop heights, loot tables, and cooldown timers. Built for Paper 1.21.11 on Java 21+, the plugin provides a complete package with config.yml for customization, loot table definitions, and full animation support using Bukkit's particle and sound systems.
  1. Create the Paper/Gradle project for Java 21+ and Paper 1.21.11.

  2. Add configurable weighted loot, automatic/manual drops, and barrel claim protection.

  3. Add a server-side animation system with descending barrel display, parachute particles, landing effects, and claim effects.

  4. Register commands, listeners, persistence markers, and cleanup behavior.

[Generation stopped]

nebulax4e

Can you make a lootdrop plugin with detailed animations make the lootbox a barrel and maybe a parachute if you can make this plugin work for 1.21.11 paper java 21-25 I Want a configurable ingame lootbox config and the config should include what items should be inside of random lootboxes and u can manage their chances You cant break the lootbox or right click it and just take everything you need to hit it a configurable of times Lootboxes dont spawn randomly they have to be spawned by admins to a specific coordinates setted by the admins

Kodari AI
KodariSep 21 at 11:36 am 4
  1. Inspect the existing loot-drop implementation and build configuration.

  2. Add admin-placed lootbox locations with configurable hit-to-open behavior and protection.

  3. Add weighted random loot configuration and reward delivery.

  4. Complete barrel/parachute animations, commands, persistence, and cleanup for Paper 1.21.11 / Java 21–25.

  1. Protected barrel interaction is now hit-based: left-clicks advance a configurable counter, right-clicks never open it, and only the final hit starts the claim animation.

  2. Admin drops now require explicit world/X/Y/Z coordinates, with automatic random spawning disabled and exact-Y placement enabled.

  3. I’m tightening the configurable loot and protection behavior next, including chance-based entries and non-player destruction paths.

Implemented the LootDrop plugin for Paper 1.21.11 with Java 21 compatibility.

Features added:

  • Admin-only coordinate spawning:

    Plain Text
    /lootdrop drop <world> <x> <y> <z>
    
  • Random/automatic spawning removed.

  • Barrel lootboxes with configurable hit requirements:

    YAML
    settings:
      required-hits: 5
    
  • Left-clicking the barrel counts as a hit.

  • Right-clicking cannot open or access the barrel.

  • Configurable weighted loot using chance:

    YAML
    loot:
      diamonds:
        material: DIAMOND
        min: 2
        max: 8
        chance: 6
    
  • Rewards are randomly selected according to their configured chances.

  • Loot is stored inside the protected barrel until successfully claimed.

  • Barrel cannot be:

    • Broken by players

    • Opened as an inventory

    • Destroyed by explosions

    • Moved by pistons

    • Drained by hoppers

  • Hit progress survives reloads and server restarts.

  • Lootboxes are recovered after restarting the server.

  • Animated barrel descent using BlockDisplay.

  • Configurable parachute particle canopy and support lines.

  • Landing particle and sound effects.

  • Hit sounds and claim animation.

  • Configurable claim animation duration.

  • Loot timeout support.

  • Exact admin coordinates are respected with:

    YAML
    settings:
      use-highest-block: false
    

The main configuration is in:

Plain Text
src/main/resources/config.yml

The project is configured for:

Plain Text
Paper 1.21.11
Java 21 bytecode
Compatible with Java 21–25 runtimes
nebulax4e

the white dust effect is not alligned perfectly and also make it broadcast the cords to everyone and make the hits text a bar like an actual bar and make it detailed when you hit the lootbox maybe size up the lootbox eachtime you hit and also the hit counter is not accurate and yea theres no /lootdrop config command that lets you change the config inside of minecraft

Kodari AI
KodariSep 21 at 11:59 am 3
  1. Fix the parachute/dust geometry so the visual effects stay centered on the barrel.

  2. Broadcast exact lootbox coordinates when an admin spawns one.

  3. Replace hit progress with an accurate configurable bar and add stronger per-hit scaling/feedback.

  4. Add /lootdrop config subcommands for in-game configuration changes and reload support.

The parachute ring and support lines are currently derived from the display entity origin, while the barrel’s visual center is half a block above that origin. I’m centralizing all descent particles on one exact barrel-center anchor so the white canopy and lines share the same X/Z and connect at the same Y.

Admin-created drops will now announce the actual resolved landing coordinates to every online player, including the world name. I’ll use the manager’s landing location so the broadcast remains correct when “use highest block” is enabled.

The hit count can overshoot because it increments before the completion branch, and interaction events can be emitted for both hands. I’m clamping hits to the required total, processing only the main hand, showing a proportional action-bar progress bar, and adding a short scaled barrel display plus expanding particle/sound feedback on every valid hit.

The in-game configuration command will support generic path edits without requiring a restart: get, set, reload, and save. This lets admins change hit counts, animation values, and loot chances such as /lootdrop config set loot.diamonds.chance 10; values are parsed as booleans/numbers when appropriate and saved immediately.

Implemented:

  • Aligned parachute effects: all white smoke, canopy, support lines, and barrel particles now use one exact barrel-center anchor.

  • Global coordinate broadcast: admin drops broadcast the resolved landing coordinates to everyone:

    Plain Text
    A supply drop is descending to world X Y Z!
    
  • Accurate hit counter:

    • Only main-hand interactions count.

    • Hits are clamped to the required amount.

    • Progress persists correctly.

    • Action-bar progress bar displays like:

      Plain Text
      Lootbox [████████░░░░░░░░░░░░] 8/20
      
  • Detailed hit animation:

    • Expanding particle ring.

    • Hit sound with changing pitch.

    • Temporary barrel scaling animation.

    • Final-hit title and securing animation.

  • In-game config management:

    Plain Text
    /lootdrop config get settings.required-hits
    /lootdrop config set settings.required-hits 10
    /lootdrop config set loot.diamonds.chance 12
    /lootdrop config set loot.diamonds.min 5
    /lootdrop config set animation.parachute true
    /lootdrop config reload
    /lootdrop config save
    

All /lootdrop config commands require the existing lootdrop.admin permission. Configuration changes are saved immediately and apply dynamically where possible.

nebulax4e

nooo i want a dialog or a inventory gui

Kodari AI
KodariSep 21 at 11:59 am 1

The generation was stopped before any content could be produced.

nebulax4e

nooo i want a dialog or an inventory gui since its needed for the lootdrop items to be configurable easily and make everything configurable easily too

Kodari AI
KodariSep 21 at 12:07 pm 2
  1. Replace the text-only configuration flow with an inventory GUI for admins.

  2. Add GUI navigation for global settings and weighted loot entries.

  3. Add item editing controls, chance/min/max controls, and save/reload actions.

  4. Register the GUI listener and preserve the existing drop, hit, protection, and animation behavior.

Implemented an inventory-based admin configuration GUI.

Open the GUI

Plain Text
/lootdrop config

or:

Plain Text
/lootdrop config gui

Main settings GUI

Admins can now configure by clicking buttons:

  • Required hits

  • Landed timeout

  • Use highest block

  • Hit-bar length

  • Descent duration

  • Descent height

  • Parachute on/off

  • Claim animation duration

  • Save configuration

  • Reload configuration

Changes save directly to config.yml.

Loot editor GUI

The loot menu allows admins to:

  • View all configured loot entries

  • Add loot by holding an item and clicking Add loot from hand

  • Copy the held item’s:

    • Material

    • Display name

    • Lore

  • Edit minimum amount

  • Edit maximum amount

  • Edit weighted chance

  • Delete loot entries

Example workflow:

Plain Text
/lootdrop config
→ Loot items
→ Add loot from hand

The existing text commands still work for console and advanced configuration paths, but admins can now manage the important settings and loot table entirely through the inventory GUI.

nebulax4e

hey man the lootbox animation when hitting it doesnt work maybe just remove the scale up effect and add a entity.wither.break.block playsound whenever hitting the lootbox and also the fucking parachute effect is not in the middle of the blocks bro and also add a sound effect when the lootbox is coming down and also make it so theres a title bar above every players that broadcast the cords of where the lootbox is

Kodari AI
KodariSep 21 at 12:23 pm 1
  1. Remove the unreliable hit scaling, add the Wither block-break hit sound, and add a descent sound.

  2. Re-center the parachute and landing particles on the barrel’s actual block center.

  3. Add a synchronized coordinate title/subtitle announcement for every player during the drop.

The hit animation no longer spawns a temporary scaling display; each valid hit now uses the Wither block-break sound. I also corrected the drop’s location model so the barrel center is not offset by an extra half-block, and the descent sound now uses valid Minecraft sound keys.

  • Removed the unreliable barrel scaling animation.

  • Added entity.wither.break_block on every valid hit.

  • Fixed the parachute and particle positioning by removing the extra half-block coordinate offset.

  • Added descent sounds using entity.phantom.flap, both when spawning and periodically during descent.

  • Added a global title announcement for every online player:

    • Title: SUPPLY DROP INCOMING

    • Subtitle: world and exact coordinates

  • Added configurable title timing:

    YAML
    animation:
      announcement-title:
        fade-in: 10
        stay: 70
        fade-out: 15
    
  • Added configurable title messages:

    YAML
    messages:
      drop-title: '&bSUPPLY DROP INCOMING'
      drop-title-subtitle: '&fCoordinates: &e%world% &f%x% %y% %z%'
    
nebulax4e

can you make the paracute effect in the center of the lootbox

Kodari AI
KodariSep 21 at 12:59 pm 1

Fixed the parachute alignment.

The falling lootbox display was offset by half a block, while the particle effects were centered on the actual barrel block. The display now uses the block’s corner position while all parachute particles and support lines use the exact barrel center, keeping everything aligned during descent.

nebulax4e

can you add configurable rarities and also the parachute only has white on it isnt there supposed to be red white red white red white

and also

common is a barrel 5 hits uncommon is a green concrete 10 hits rare is an ice block 20 hits epic is an amethyst block 35 hits legendary is a resin block 50 hits mythic is a netherite block 67 hits

Kodari AI
KodariOct 24 at 8:32 am 1
  1. Add configurable rarity tiers with the requested block types and hit requirements, and connect rarity selection to loot drops.

  2. Alternate the parachute canopy particles red/white around the full canopy.

[Generation stopped]

nebulax4e

can you add configurable rarities and also the parachute only has white on it isnt there supposed to be red white red white red white

and also

common is a barrel 5 hits uncommon is a green concrete 10 hits rare is an ice block 20 hits epic is an amethyst block 35 hits legendary is a resin block 50 hits mythic is a netherwart block 67 hits extra tier is netherite is a netherite block 150 hhits

Kodari AI
KodariOct 24 at 8:39 am 1
  1. Add configurable rarity tiers with the requested blocks and hit counts, and wire rarity selection into lootbox behavior.

  2. Alternate red and white particles across the parachute canopy.

Rarity will be selected by configurable weights for each drop. The tier’s block will identify the drop visually, and its hit requirement will control unlocking; the placed loot container remains a barrel internally so its inventory, hit tracking, and recovery continue to work. The rarity editor will be accessible directly from /lootdrop config and let admins adjust hit counts, weights, and block materials.

The tier configuration and editor are in place. I’m updating the canopy ring now so adjacent points alternate red dust and the configured white particle around the full parachute.

Added configurable rarity tiers. Open /lootdrop config → Rarity tiers to adjust each tier’s hit count, spawn weight, and block material (hold a block and click Set block from hand).

Defaults are common—Barrel, 5 hits; uncommon—Green Concrete, 10; rare—Ice, 20; epic—Amethyst Block, 35; legendary—Resin Block, 50; mythic—Nether Wart Block, 67; and extra—Netherite Block, 150. Drops are selected by weight; the defaults favor common tiers.

The parachute canopy now alternates red dust and the configured white particle around the ring. Tier blocks are the visible drop model; a barrel remains underneath to store loot and hit progress.

nebulax4e

when a rarity drops down and hits its cords it turns into a barrel

Kodari AI
KodariOct 24 at 8:47 am 1

Fixed: when the drop lands, its configured rarity block now stays in the world instead of being replaced by a barrel. Hit tracking, claiming, and block protection still work on the rarity block.

nebulax4e

make rarity items configurable bro

Kodari AI
KodariOct 24 at 9:16 am 1

The generation was stopped before any content could be produced.

nebulax4e

make rarity items configurable bro and can you make it so admins can choose what rarity to drop down and also can you make it so others can hit the lootdrop too not just one and first one to end it gets it

Kodari AI
KodariOct 24 at 9:25 am 3
  1. Make each rarity’s loot items configurable in the config GUI.

  2. Let admins choose a rarity when spawning a drop.

  3. Allow everyone to contribute hits; the first player to finish claims it.

Per-rarity loot editing is wired up; tiers with no custom entries continue to use the global loot table. Next I’m adding admin-selected rarity spawning.

Admins can now force a tier with /lootdrop drop <world> <x> <y> <z> <rarity>; leaving off rarity still picks by weight. I’m checking hit and claim ownership for the shared-progress behavior.

  1. Rarity loot: In /lootdrop config → Rarity tiers → select a tier → Configure rarity loot, admins can add and edit that tier’s weighted reward items. Tiers without custom loot still use the global loot table.

  2. Choose a drop tier: Use /lootdrop drop <world> <x> <y> <z> <rarity>. Tab completion suggests configured rarities; omit the rarity to keep random weighted selection.

  3. Shared hits and winner: Any player can contribute to the drop’s shared hit count. Nearby players now see the shared progress, and the player who lands the final hit gets the loot after the claim animation.

nebulax4e

you fucking piece of shit you cant even interact with the loot rarity table sincce its quote unquote empty then how do you put the lloot items you dumb shit

Kodari AI
KodariOct 24 at 9:36 am 1

Fixed the rarity loot editor: clicking Configure rarity loot was immediately reopening the rarity screen, so the empty loot table never stayed open.

To add rewards, hold the item in your main hand, open that rarity’s loot table, then click Add loot from hand. The empty table now shows that instruction too.

nebulax4e

btw can you fix everything since i dont want the loot thingy not just rarity but commonly loot table to put stuff you have to hold something in your hand to put it in but thats too time consuming

Kodari AI
KodariOct 25 at 12:56 am 1
  1. Make the common loot table accept items directly from the player inventory, without requiring them in hand.

  2. Apply the same quicker item-entry flow to each rarity’s loot table.

Updated both the common and per-rarity loot tables: click an item in your inventory while the table is open to add it, then edit its settings. The item stays in your inventory; its current stack size becomes the reward amount.

nebulax4e

when putting in an enchanted item it unenchants

Kodari AI
KodariOct 25 at 4:14 am 1

The generation was stopped before any content could be produced.

nebulax4e

when putting in an enchanted item it unenchants and also can you make the breaking sound the block's breaking sound like whatever the block's breaking soundd is and also can you also add a landing down sound and also make everything 50x better and not time consuming

Kodari AI
KodariOct 25 at 4:20 am 1
  1. Preserve enchantments and full item metadata when adding loot.

  2. Play each block’s own break sound and add a configurable landing sound.

  3. Make the loot-editing flow faster without disrupting existing settings.

  1. Full item metadata is now saved with loot entries, so enchantments survive reward generation. I’m updating the drop’s impact sounds next.

Rarity blocks now use their own break sound on hits and their fall sound on landing; custom hit/landing sounds remain available in config. I’m removing the forced editor detour so multiple rewards can be added in one pass.

  • Enchanted items now keep their enchantments and other metadata when added as loot and when generated as rewards.

  • Loot drops play the rarity block’s break sound on hits and its fall sound when landing. Custom hit and landing sounds can still be set in config; auto uses the block’s sounds.

  • Faster loot setup: click items in your inventory to add them, and the loot list stays open so you can add more without reopening it. Click an entry later to edit it; its icon also shows the saved item metadata.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
12 1,891
src/main/java/com/kodari/lootdrop/LootDropPlugin.java
package com.kodari.lootdrop;

import com.kodari.lootdrop.command.LootDropCommand;
import com.kodari.lootdrop.gui.LootDropConfigGui;
import com.kodari.lootdrop.listener.LootDropListener;
import com.kodari.lootdrop.listener.LootDropGuiListener;
import com.kodari.lootdrop.manager.LootDropConfig;
import com.kodari.lootdrop.manager.LootDropManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class LootDropPlugin extends JavaPlugin {
    private LootDropConfig lootDropConfig;
    private LootDropManager lootDropManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.lootDropConfig = new LootDropConfig(this);
        this.lootDropManager = new LootDropManager(this, lootDropConfig);
        this.lootDropManager.start();

        LootDropCommand command = new LootDropCommand(this, lootDropManager, lootDropConfig);
        if (getCommand("lootdrop") != null) {
            getCommand("lootdrop").setExecutor(command);
            getCommand("lootdrop").setTabCompleter(command);
        }
        Bukkit.getPluginManager().registerEvents(new LootDropListener(lootDropManager, lootDropConfig), this);
        Bukkit.getPluginManager().registerEvents(new LootDropGuiListener(new LootDropConfigGui(this)), this);
    }

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

    public void reloadLootDropConfig() {
        reloadConfig();
    }
}