pengus0746

when i do /blueskull it gives me call goat horn what when used it spawn 30 blocks upfront of u a sqaure of blue wither skulls going down with 50 block radius paper 1.21.11

Kodari AI
KodariJun 24 at 5:23 pm 7
BlueSkull
A Paper 1.21.1 plugin adding a /blueskull command that gives the player a special Call Goat Horn. When used (right-clicked), the horn spawns a 50-block-radius square perimeter of charged (blue) wither skulls 30 blocks in front of the player, all shooting downward. Skulls are identified via PersistentDataContainer so the horn works only for this specific item.

Plan:

  • BlueSkullPlugin — main class, registers command + listener, exposes NamespacedKey

  • BlueSkullCommand — /blueskull gives the goat horn

  • GoatHornListener — on right-click with the horn, spawns the skull square


How it works:

  • /blueskull — gives you a Call Goat Horn (with custom name/lore and a hidden PDC tag)

  • Right-click the horn → spawns a 50-block-radius square perimeter of charged (blue) wither skulls at a point 30 blocks in front of you (rotated to face your direction), all shooting straight down

  • The square is oriented relative to your facing direction — forward/right axes — so it always appears in front of you regardless of which way you’re looking

  • Skulls have setCharged(true) for the blue charged variant and setShooter(player) so damage is attributed to you

pengus0746

make the square 25 x25 and fill the sqare each block having 2 skulls comming down

Kodari AI
KodariJun 24 at 5:26 pm 4
  • Square is now 25×25 (grid indices −12 to +12 on both axes = 25 positions each direction)

  • Every block position spawns 2 charged blue wither skulls shooting straight down — 625 positions × 2 = 1,250 skulls total

pengus0746

pls compile it

Kodari AI
KodariJun 24 at 5:27 pm 4

The project environment doesn’t have a Gradle executable available — compilation isn’t something I’m able to run in this environment. However, you can build it yourself locally:

Shell
# In the project root folder
gradle build
# or if using the wrapper:
./gradlew build

The output JAR will be at build/libs/BlueSkull-1.0.0.jar — drop that into your server’s plugins/ folder and restart.

If you hit any compile errors, paste them here and I’ll fix them immediately.

pengus0746

make it maven

Kodari AI
KodariJun 24 at 5:28 pm 3

Switched to Maven. Build with:

Shell
mvn package

JAR will be at target/BlueSkull-1.0.0.jar.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
5 236
src/main/java/com/kodari/blueskull/BlueSkullPlugin.java
package com.kodari.blueskull;

import com.kodari.blueskull.commands.BlueSkullCommand;
import com.kodari.blueskull.listeners.GoatHornListener;
import lombok.Getter;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;

public class BlueSkullPlugin extends JavaPlugin {

    @Getter
    private NamespacedKey hornKey;

    @Override
    public void onEnable() {
        hornKey = new NamespacedKey(this, "skull_horn");
        getCommand("blueskull").setExecutor(new BlueSkullCommand(this));
        getServer().getPluginManager().registerEvents(new GoatHornListener(this), this);
    }
}