tarquin8or
📎 1 file 1,364 chars
📄
pasted-code-1776336842813.txt
txt 43 lines
▶
Core Flow:

Custom item: Nether Star "&c&lHunt Orb" lore "&7Right-click → select target (5min hunt)".

Right-click → 3-row INVENTORY GUI "&6Select Target" with online players' skulls (skip self).

Click skull → starts 5-minute hunt.

Hunt Mechanics (Overworld, instant):

Target: Warden surge—title "&8&lWARDEN AWAKENS" "&7Vanished..." (5s), sonic boom (vol 2), blindness/nausea (10s), darkness.

Invis Isolation:
Who	Sees Target	Sees Others	Sees Hunter
Hunter	Yes	No	Yes
Target	No	No	Yes only
Others	No	Yes	No

Loop: warden.ambient, sculk_sensor particles, slowness 2 (3s), ash particles.

Timer & Cancel:

Hunt auto-ends after exactly 5 minutes: Restore visibilities, clear effects, message "&eHunt expired: %target% survived!".

Hunter cancel: Right-click Hunt Orb during hunt → ends immediately, message "&cHunt cancelled.", same cleanup.

End/Cleanup (death/timer/cancel):

Restore show player to all players, clear potions, delete hunt vars.

Broadcast: Death="&c%hunter% hunted %target%!", Survived="&e%target% survived %hunter%!", Cancel="&c%hunter% cancelled on %target%".

Vars: {hunt.active::%hunter uuid%} = target uuid; {hunt.timer::%hunter uuid%} = task id.

Commands/Perms:

/givehunt → give orb.

/hunt list → active hunts.

/hunt end  admin cancel.

Perm: hunt.use. Cooldown 30s {hunt.cd::%uuid%}.
Kodari AI
KodariApr 16 at 10:58 am 18,829 (v2)

I’ll create a thrilling hunt system plugin with GUI-based target selection and warden-themed effects.

HuntOrb
A thrilling hunt system where players use a Hunt Orb to initiate timed hunts against other players. Features warden-themed effects, complex visibility mechanics where hunters and targets are isolated from others, particle effects, and ambient sounds. Includes cooldown system, admin commands for hunt management, and automatic cleanup on hunt completion or player death.

Let me create this hunt system with GUI-based target selection, warden effects, and complex visibility mechanics.

All files created! This plugin features:

  • Hunt Orb Item: Nether Star with right-click functionality

  • GUI System: Clickable inventory showing online player heads for target selection

  • Warden Effects: Title, sonic boom sound, blindness/nausea/darkness on hunt start

  • Visibility Isolation: Hunter and target can only see each other, hidden from everyone else

  • Effect Loop: Continuous warden ambient sounds, particle effects, and slowness every 3 seconds

  • 5-Minute Timer: Auto-ends hunt with configurable duration

  • Cancellation: Right-click Hunt Orb again to cancel active hunt

  • Death Detection: Ends hunt when target dies

  • Commands: /givehunt, /hunt list, /hunt end <player>

  • Cooldown System: 30-second configurable cooldown between hunts

  • Admin Controls: Full hunt management and monitoring

tarquin8or

how to test it when I only have my self

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
20 1,026
src/main/java/com/huntorb/HuntOrb.java
package com.huntorb;

import com.huntorb.command.GiveHuntCommand;
import com.huntorb.command.HuntCommand;
import com.huntorb.inventory.gui.GUIListener;
import com.huntorb.inventory.gui.GUIManager;
import com.huntorb.listener.ItemInteractListener;
import com.huntorb.listener.PlayerDeathListener;
import com.huntorb.listener.PlayerQuitListener;
import com.huntorb.manager.HuntManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class HuntOrb extends JavaPlugin {
    private GUIManager guiManager;
    private HuntManager huntManager;

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

        this.guiManager = new GUIManager();
        this.huntManager = new HuntManager(this);

        registerListeners();
        registerCommands();

        getLogger().info("HuntOrb has been enabled!");
    }

    @Override
    public void onDisable() {
        if (huntManager != null) {
            huntManager.cleanup();
        }

        getLogger().info("HuntOrb has been disabled!");
    }

    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new ItemInteractListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerDeathListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerQuitListener(this), this);
    }

    private void registerCommands() {
        getCommand("givehunt").setExecutor(new GiveHuntCommand(this));
        getCommand("hunt").setExecutor(new HuntCommand(this));
    }
}