teampingu

create a plugin for a scavenger hunt with 30 random items, hard, but obtainable in under 2 hours. exclude all items from the end. make it so the items are detected in the players inventory. reward is a netherite chestplate. broad cast the items on the left side of the screen. Players have to obtain one item to see the next item on the list. make it all unique items and 1-of-each. make sure as soon as the players get the items in their inventory the next item gets unlocked. the netherite chestplate should be indestructable

Kodari AI
KodariJul 4 at 5:24 pm 2

I’ll create a scavenger hunt plugin with 30 random items, sequential unlocking, and an indestructible netherite chestplate reward.

ScavengerHunt
A scavenger hunt plugin that challenges players to find 30 random items in survival mode, excluding End-exclusive items. Items are detected in the player's inventory in real-time, with each item unlocking the next. A sidebar scoreboard shows progress and the current target. The reward is an indestructible Netherite Chestplate.

Now let me create all the files for this project.

ScavengerHunt
A scavenger hunt plugin with 30 sequential random items. Players must find each item in order, with the next item only revealed after the current one is obtained. Features a sidebar scoreboard showing progress and a reward of an indestructible Netherite Chestplate. All items are obtainable in survival mode, excluding End-exclusive items.

Let me verify the build structure is correct:

Let me create all the project files now.

Wait, I need to add the getSession and sendStatus methods to HuntManager and getItems to HuntSession. Let me fix these.

Now let me also add the plugin.yml commands section and update the command to register properly:

Let me verify all files are created:

Good, I can see all files are created. Let me fix a few issues I notice:

  1. PlayerData.java is unused dead code — delete it

  2. Items include End-exclusive items (Elytra, Dragon’s Breath, Shulker Shell) — must replace

  3. Config default list has same problem

Now let me verify everything compiles and review the final state:

<xml> </xml>

</xml>

<xml> </xml>

</xml>

<xml> </xml>

</xml>

Now let me verify by reading the updated files:

teampingu

make it so the netherite chestplate can be enchanted like a normal chestplate and make it so the chestplate doesnt burn or explode. also make it so when someone completes the scavenger hunt, the scavenger hunt ends for everybody. also, make it so the items are harder to obtain.

Kodari AI
KodariJul 4 at 5:35 pm 1

Let me read all current files, then make the changes.

Now I have a clear picture. Here’s the plan:

  1. Harder items — replace all 30 defaults with items that require real gameplay (no easy mining/farming basics)

  2. Chestplate enchantable — already works with setUnbreakable(true) (anvils/enchanting tables still work), just needs to lose HIDE_UNBREAKABLE so players know it’s unbreakable but can apply enchants normally

  3. Chestplate fire/explosion proof — protect it on death (keep in inventory) and as a dropped item (cancel fire/lava/explosion damage)

  4. Hunt ends globally — when one player finishes, all hunts end, broadcast to everyone, prevent new starts

  5. Netherite chestplate protection via its OWN file — I’ll create a dedicated listener

Let me implement everything. Starting with HuntManager (the biggest change), then the listener, then config.

Good. Now update the HuntListener to handle chestplate protection and the global completion:

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
9 583
src/main/java/com/scavengerhunt/ScavengerHunt.java
package com.scavengerhunt;

import com.scavengerhunt.command.HuntCommand;
import com.scavengerhunt.data.HuntManager;
import com.scavengerhunt.listener.HuntListener;
import com.scavengerhunt.util.ScoreboardManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class ScavengerHunt extends JavaPlugin {

    private static ScavengerHunt instance;
    private HuntManager huntManager;
    private ScoreboardManager scoreboardManager;

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

        this.huntManager = new HuntManager(this);
        this.scoreboardManager = new ScoreboardManager(this);

        Bukkit.getPluginManager().registerEvents(new HuntListener(this), this);

        getCommand("scavengerhunt").setExecutor(new HuntCommand(this));

        getLogger().info("ScavengerHunt enabled!");
    }

    @Override
    public void onDisable() {
        if (huntManager != null) {
            huntManager.shutdown();
        }
        getLogger().info("ScavengerHunt disabled!");
    }

    public static ScavengerHunt getInstance() {
        return instance;
    }

    public HuntManager getHuntManager() {
        return huntManager;
    }

    public ScoreboardManager getScoreboardManager() {
        return scoreboardManager;
    }
}