0

Can you create a special sword plugin where when i Shift+ Right click it creates like a cricle arround in a 10x10 block radius its duratation is 10 seconds and no one who was in that radius can leave the circle until it disapears after 10 seconds and make it warden theamed make sure to make it so only operators can obtain it using commands 30 second cooldown and make sure to not add the cooldown to the chat because im making a special plugin for the cooldown to be added to the action bar and dont add in the lore that only op can get it

Kodari AI
KodariMar 16 at 10:57 pm 10,505 (v2)

I’ll create a Warden-themed sword plugin with a circle trap mechanic.

WardenSwordPlugin
A special warden-themed sword that creates an inescapable circle trap when activated. Players shift+right-click to create a 10-block radius barrier that prevents anyone inside from escaping for 10 seconds. Features particle effects, warden aesthetics, and operator-only distribution commands. Includes cooldown management and movement restriction mechanics.

All files created! The plugin features:

  • Warden-themed netherite sword with Sculk Soul particles and Warden roar sound effects

  • Shift + Right Click creates a 10-block radius circle that traps all players inside for 10 seconds

  • Movement blocking prevents trapped players from leaving using teleportation back to circle edge

  • 30-second cooldown (silently tracked, no chat messages)

  • Operator-only command /givewardensword <player> to distribute the sword

  • Visual effects with particle circles showing the boundary

The sword is identified by custom model data (999999) so it’s unique and trackable. Players inside the circle when it’s created cannot escape until the 10 seconds expire.

0

make it so the people who glitch in the border are still able to get hit cuz if they bug in we cant hit them and make the cool down 40 seconds

Kodari AI
KodariMar 16 at 11:04 pm 7,890 (v2)

I’ll fix the border glitch issue by replacing the teleport-back system with a velocity-based knockback, and update the cooldown to 40 seconds.

Changed cooldown to 40 seconds and replaced the teleport-back system with velocity-based knockback that pushes players toward the circle center, keeping them synchronized with the server so they remain hittable.

0

and make it so i can actually hit them cuz it doesnt work and make it so u cant enderpearl out or exit by going up

0

and make it so i can actually hit them cuz it doesnt work and make it so u cant enderpearl out or exit by going up

0

and make it so i can actually hit them cuz it doesnt work and make it so u cant enderpearl out or exit by going up

0

make it so i can hit them and they cant enderpearl out

0

Can u make it so no one can pearl out of the area and no one can exit by going up

Kodari AI
KodariMar 17 at 12:02 am 6,881 (v2)

I’ll read the existing files to understand the current implementation and then add restrictions for ender pearls and upward movement.

I’ll add ender pearl blocking and upward exit prevention to the listener.

Added two restrictions:

  • Ender pearl blocking: Trapped players can’t teleport with ender pearls

  • Upward exit prevention: Trapped players can’t move up (prevents flying/building escape)

0

Can u make like the upwords barrier like 2 blocks higher so i can crit hit

Kodari AI
KodariMar 19 at 1:40 pm 7,620 (v2)

I’ll read the relevant files to understand the barrier system and increase the height by 2 blocks.

I’ll increase the barrier height by 2 blocks so you can perform critical hits. Currently the barrier is 3 blocks high, I’ll make it 5 blocks.

Increased the barrier from 3 to 5 blocks high, giving you 2 extra blocks to jump and perform critical hits while still being trapped in the circle.

0

The ability must have a 40-second cooldown show it in the chat or the actiom bar whenever its in hand make it work in every dimension except pvp dimension

Kodari AI
KodariMar 22 at 8:02 pm 10,610 (v2)

I’ll read the existing files to understand the current implementation and add the cooldown and dimension restrictions.

I’ll add the cooldown display in action bar and dimension restrictions.

Added cooldown display in action bar when holding the sword and dimension restrictions. The ability now:

  • Shows remaining cooldown in action bar every 0.5 seconds when holding the sword

  • Is blocked in worlds listed in blocked-worlds config (default: world_pvp and pvp)

  • Has configurable messages for cooldown display and blocked world notification

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
10 627
src/main/java/com/example/wardensword/WardenSwordPlugin.java
package com.example.wardensword;

import com.example.wardensword.commands.GiveWardenSwordCommand;
import com.example.wardensword.listener.WardenSwordListener;
import com.example.wardensword.manager.ConfigManager;
import com.example.wardensword.manager.WardenSwordManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class WardenSwordPlugin extends JavaPlugin {
    
    private ConfigManager configManager;
    private WardenSwordManager wardenSwordManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.wardenSwordManager = new WardenSwordManager(this);
        
        getCommand("givewardensword").setExecutor(new GiveWardenSwordCommand(this));
        
        getServer().getPluginManager().registerEvents(new WardenSwordListener(this), this);
        
        wardenSwordManager.startCircleTask();
        
        getLogger().info("WardenSwordPlugin has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (wardenSwordManager != null) {
            wardenSwordManager.clearAllCircles();
        }
        getLogger().info("WardenSwordPlugin has been disabled!");
    }
}