vardaan dagoat
📎 1 file 3,427 chars
📄
pasted-code-1788672117874.txt
txt 165 lines
▶
Sphere SMP

Concept - Custom spear 

Minecraft version needed = 1.21.11 

Weapon Used - Netherite , Diamond ( Spears )

1. Bungee Spear . Type - Netherite Spear 

Ability - 

Make 's a tornado around the ( player ) holding the netherite spear . When the Tornado Ability activate it will attract every entity around the ability in the radius of 10 blocks . the ability will last lond till seconds ( 20 ) . Cooldown after the usage of ability - ( 1 minute ) 



Commands --

To obtain the spear - [ /sphere:weapons bungee ] ( Operator Only ) 

To activate the Tornado ability - [ /sphere:ability bungee tornado ]

Chat pop ups- -- 

When the ability activate - ( The , Tornado ability has been activated )

When the ability deactivate - ( The , Tornado ability has beend deactivated ) 

After the deactivation/usage of the ability pop up for cooldown - ( The , Tornado Ability is on cooldown )

After the [ 30 ] seconds the cooldown is over it shows - ( The , Tornado ability cooldown is over ) 

																	

Particles


The player who is holding the spear will have a yellow colour particle

Enchants- 

Lunge-3
Sharpness-4
Unbreaking-3
Mending-1
Looting-3



Wither Spear 

Weapon Type = Diamond Spear 

Mincraft Version = 1.21.11

Ability- 

Shoot Wither Skeleton skull at any entity total 3 wither heads can be shooted at the player with cooldown and per head will have damage of 3 hearts easch   . And while hitting player it will have ( 30 ) % of giving the wither effect to the entity who got hitted  while hitting by the diamond spear .
Cooldown for the wither skeleton - ( 30 ) seconds





Commands - - - - -

To get the spear commands  =  [/sphere:weapons wither ] 

To activate the ability = [/sphere:ability wither shootskeleton ]




Chat Pop Ups- 

When the ability got acitivated - ( Your , Wither Ability Has been activated ) 

When first skeleton head shooted = ( 1/3 skeleton fire )

When second skeleton head shooted = ( 2/3 skeleton fire )

When third skeleton head shooted = ( 3/3 skeleton fire )

When the ability got on the cooldown- ( Your , wither ability is now on cooldown )

When the cooldown got over - ( Your , wither ability cooldown is over ) 

When the entity gets the wither effect - ( Wither has beend depleted on the entity )





Particles - 

While Holding the wither spear - will get the black particle 

Enchants- 

Lunge-3
Sharpness-5
Unbreaking-3
Mending-1
Looting-3



---------------------------------------------------------------------------------------------------------------------------------------------------------





Dash Spear 

Minecraft Type - Netherite Spear 

Minecraft version - 1.21.11


Ability - the player can dash with spear while holding the spear .

Max dash blocks - 30 

Ability cooldown - 45 seconds




Commands =

To obtain the the spear - [/sphere:weapons dash]

To dash with the spear - [/sphere:ability dash  ]


Chat pop ups - 

When the dash gets on cooldown - ( Your , Dash is now on cooldown )

When the dash cooldown gets over - ( Your , Dash is cooldown is over )

When the dash ability activated - ( Your , Dash activated )





Particles -

While holding the spear the entity will get white paritcles 


Enchants- 

Lunge-3
Sharpness-5
Unbreaking-3
Mending-1
Looting-3


 

Kodari AI
KodariSep 6 at 5:25 am 1
SphereSpears
SphereSpears is a Minecraft 1.21.11 plugin that introduces three unique craftable spears with distinct abilities. The Bungee Spear creates a 10-block radius tornado that attracts entities for 20 seconds with a 1-minute cooldown. The Wither Spear fires three wither skeleton skulls dealing 3 hearts each with a 30% chance to apply the wither effect. The Dash Spear propels the player up to 30 blocks with a 45-second cooldown. Each spear features custom particles, unique enchantments, operator-only obtain commands, ability activation commands, and comprehensive chat notifications for activation, deactivation, and cooldown states.
  1. Create the Gradle project and sphere plugin manifest for Minecraft 1.21.11.

  2. Add spear item creation and identification with the requested materials, names, enchantments, and operator-only weapons command.

  3. Add the three abilities, cooldowns, activation messages, projectile handling, dash collision checks, attraction, and holding particles.

  4. Register commands/listeners and provide clean shutdown handling.

Created the Sphere SMP plugin project with:

  • Custom Bungee, Wither, and Dash spears

  • Requested enchantments and custom item identification

  • Operator-only /sphere:weapons command

  • /sphere:ability bungee tornado

  • /sphere:ability wither shootskeleton

  • /sphere:ability dash

  • Tornado attraction effect lasting 20 seconds

  • Three Wither skull shots, 6 damage each, with 30% Wither chance

  • 30-block Dash with collision checks

  • 30–60 second cooldowns and messages

  • Yellow, black, and white holding particles

  • Minecraft 1.21.11 Paper/Gradle project setup

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
8 516
src/main/java/com/sphere/SpherePlugin.java
package com.sphere;

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

public final class SpherePlugin extends JavaPlugin {
    private AbilityManager abilityManager;

    @Override
    public void onEnable() {
        SpearManager spearManager = new SpearManager(this);
        abilityManager = new AbilityManager(this, spearManager);
        getServer().getPluginManager().registerEvents(abilityManager, this);

        SphereCommand command = new SphereCommand(spearManager, abilityManager);
        PluginCommand weapons = getCommand("weapons");
        PluginCommand ability = getCommand("ability");
        if (weapons != null) {
            weapons.setExecutor(command);
        }
        if (ability != null) {
            ability.setExecutor(command);
        }

        getServer().getScheduler().runTaskTimer(this, abilityManager::tickHoldingParticles, 0L, 5L);
    }

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