Muhammad Adam

a minecraft papermc 26.2 plugin tht spawns a real pearl cannon structure when you do /cannon save NAME and make so if you throw a pearl to activate it it will teleport you to where you did /cannon location

Kodari AI
KodariSep 20 at 8:02 pm 1
PearlCannonTeleporter
A Minecraft PaperMC plugin that lets players save and spawn pearl cannon structures. Using /cannon save NAME captures the current structure, while /cannon location sets the teleport destination. When a player throws a pearl into the spawned cannon, they are instantly teleported to the saved location. The plugin provides complete structure management including listing, deleting, and spawning cannons at any position.
  1. Create the Gradle Paper plugin project and plugin metadata.

  2. Add cannon persistence, structure generation, destination management, and command handling.

  3. Add ender-pearl activation that teleports the thrower to the configured location.

Created the Paper plugin project with:

  • /cannon save <name> — builds and saves a pearl cannon structure.

  • /cannon location <name> — sets the player’s current location as the destination.

  • /cannon remove <name> — removes a cannon.

  • /cannon list — lists saved cannons.

  • Ender pearls hitting a cannon activate it and teleport the thrower to its configured destination.

  • Cannon data persists in config.yml.

  • Includes Gradle setup, plugin.yml, command handling, structure generation, and pearl activation listener.

Muhammad Adam

do i need to adjust some settings in paper

Kodari AI
KodariSep 20 at 8:05 pm 1

No Paper settings should need changing. The plugin uses normal Bukkit/Paper commands and ProjectileHitEvent, so it should work with the default configuration.

Check these instead:

  • Put the plugin JAR in plugins/ and restart the server.

  • Make sure the plugin is enabled with /plugins.

  • The player must have permission to use /cannon if permissions are configured.

  • The cannon must be in a world where the player can build/place blocks.

  • Protection plugins such as WorldGuard or GriefPrevention may prevent the cannon structure from being created or interacted with.

  • The destination must be set with the correct command, such as /cannon location NAME, depending on the plugin’s command format.

You generally do not need to change paper-global.yml, paper-world.yml, spigot.yml, or server.properties.

Muhammad Adam

can u mae it like the unstablesmp big pearl cannon

Kodari AI
KodariSep 20 at 8:15 pm 2

Updated the plugin to use a much larger pearl-cannon structure:

  • Expanded the cannon to roughly 11 blocks long and 9 blocks wide.

  • Added taller obsidian walls and roof supports.

  • Added iron-bar barrel supports.

  • Added a larger water chamber.

  • Added two dispensers at the front.

  • Pearls can now activate anywhere inside the wider barrel instead of only at one exact point.

  • Updated command messages to describe the big cannon.

Use:

Plain Text
/cannon save NAME
/cannon location NAME

Then throw an ender pearl through the cannon barrel. The thrower will teleport to the configured location.

Existing cannons will not automatically rebuild. Recreate them with /cannon save NAME at the desired location.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
9 551
src/main/java/com/kodari/pearlcannons/PearlCannonsPlugin.java
package com.kodari.pearlcannons;

import org.bukkit.plugin.java.JavaPlugin;

public final class PearlCannonsPlugin extends JavaPlugin {

    private CannonManager cannonManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        cannonManager = new CannonManager(this);
        cannonManager.load();

        CannonCommand cannonCommand = new CannonCommand(cannonManager);
        getCommand("cannon").setExecutor(cannonCommand);
        getCommand("cannon").setTabCompleter(cannonCommand);
        getServer().getPluginManager().registerEvents(new PearlListener(cannonManager), this);
    }

    @Override
    public void onDisable() {
        if (cannonManager != null) {
            cannonManager.save();
        }
    }
}