H

One important point: I’ll treat “1-hit normal mobs” as applying to the custom totem powers, while keeping the specific player damage you listed for each totem. Also, the Ultimate Totem’s infinite-pop behavior means it prevents normal death as long as its pop mechanism can activate.

TotemSmp — Complete Plugin Specification

Plugin Name: TotemSmp Description: Make by SpiderPlugins Design: SpiderPlugins Made by: SpiderPlugins Author: 00_spider_00 Discord: SpiderPlugins Instagram: onespideryt

Custom Totems Totem Power Activation Cooldown Pops

Ultimate Totem Warden Beam Sneak + Left Click 30s Infinite

Ghast Totem Ghast Fireball Sneak + Left Click 25s 1

Wither Totem Wither Head Sneak + Left Click 25s 1

Skeleton Totem Harming II arrows, automatic fire for 10s Sneak + Right Click 20s 1

Enderman Totem Infinite Ender Pearls Sneak + Right Click 5s 1

Witch Totem Harming II / Healing II potions Left/Right + Sneak 20s 1

Ender Dragon Totem Dragon Power Ball Sneak + Left Click 20s 1

Elder Guardian Totem Guardian Beam Sneak + Left Click 30s 1

Blaze Totem Infinite Blaze Fireballs Sneak + Left Click 20s 1

Baby Zombie Totem Baby-Zombie-size + Speed I Sneak + Right Click 20s 1

Power behavior Ultimate Totem Warden-beam attack.

Infinite Totem pops.

If the player has the Ultimate Totem available when receiving lethal damage, it activates instead of normal death.

If no usable Ultimate Totem is available, normal death occurs.

30-second power cooldown.

Ghast Totem Fires a Ghast-style fireball.

Target range: 300–500 blocks.

Approximately 7 hearts damage to Protection IV.

Normal mobs can be killed in one hit.

Wither Totem Fires a Wither projectile/head.

Approximately 7–8 hearts against Protection IV. 300–500 block targeting range.

Skeleton Totem Fires Harming II arrows automatically for 10 seconds.

Arrows target the aimed player/mob.

Approximately 1.5 hearts per arrow against Protection IV.

Normal mobs can be one-hit.

Projectile targeting should work with mobile aiming as well.

Enderman Totem Throws Ender Pearls continuously while the power is active.

No direct damage.

5-second cooldown.

Witch Totem Sneak + Left Click: Harming II potion.

Sneak + Right Click: Healing II potion.

Potions should behave like normal Minecraft Harming II and Healing II splash potions.

Harming damages the targeted player/mob; Healing heals the target.

300–500 block targeting.

Ender Dragon Totem Fires an Ender Dragon-style power projectile.

Approximately 6 hearts against Protection IV.

300–500 block range.

Elder Guardian Totem Guardian beam remains connected to the target for 10 seconds.

Deals 2 hearts every 2 seconds.

Total duration: 10 seconds.

300–500 block range.

Blaze Totem Fires Blaze fireballs.

Infinite fireballs during the power activation.

Approximately 6 hearts against Protection IV.

Normal mobs can be one-hit.

Baby Zombie Totem Makes the player visually/physically behave at approximately baby-Zombie size for 10 seconds.

Grants Speed I for 10 seconds.

No direct damage.

20-second cooldown.

Totem Pop System

For Ghast, Wither, Skeleton, Enderman, Witch, Ender Dragon, Elder Guardian, Blaze and Baby Zombie:

One pop only.

If the player uses the totem to prevent death → the totem is consumed/destroyed.

If the player dies without triggering the custom totem → the custom totem drops normally.

Works in main hand and off-hand.

The system should recognize the custom totem regardless of which hand contains it.

Ultimate Totem:

Infinite pops.

It should behave as the player's permanent survival totem until the Ultimate Totem is removed/disabled.

Targeting

All offensive custom-totem powers should support:

Players Mobs Mobile players Crosshair/aim targeting Long-distance targeting Minimum range: 300 blocks Maximum range: 500 blocks The targeting system should use the player's actual look direction/crosshair rather than requiring a mouse-only interaction.

Totem Spin System

/ts start When enabled:

All online players without custom Totems receive the spinning Totem animation.

Players who already have a custom Totem should not receive the spin again.

Players joining later also receive the spin if they don't already have a custom Totem.

The animation displays the 10 non-Ultimate custom Totems in a circular spinning arrangement.

After the animation, the selected/assigned custom Totem is placed into the player's inventory.

The Ultimate Totem is excluded from this automatic spin system.

/ts stop Stops the spin system.

Players joining after /ts stop do not receive the spin.

Players who already received a Totem don't receive another spin.

Inventory GUI When a player opens their custom Totem:

Totem name Custom Totem Name Lore How to Use: Sneak + Left Click Cooldown: 20 seconds Power Duration: 10 seconds The information should be compact so it doesn't unnecessarily cover the screen.

The GUI should clearly show:

Totem name Power How to use Cooldown Duration Pop count

Commands

/ts start /ts stop /ts restart /ts undo

/ts tiv <player> /ts tecv <player>

/ts tgive <player> <custom_totem> /ts tremove <player> <custom_totem>

/ts tut give <player> <password>

/ts tpower stop <custom_totem> /ts tpower start <custom_totem>

/ts help /ts info Ultimate Totem Password

Command: /ts tut give OneSpiderYt LadleSlayerMeow

Password:

LadleSlayerMeow

The password must actually be checked by the command.

Only a correct password should allow the Ultimate Totem to be given.

Inventory / Ender Chest Commands

/ts tiv <player> Opens the selected player's inventory so the administrator can see their custom Totems.

/ts tecv <player> Opens the player's Ender Chest so the administrator can check custom Totems stored there.

/ts tremove <player> <custom_totem> Searches:

Player inventory Player Ender Chest and removes the requested custom Totem wherever it is found.

Restart / Undo /ts restart Should:

Remove all custom Totems from inventories.

Remove all custom Totems from Ender Chests.

Reset the TotemSmp state.

Restart/reinitialize the plugin systems.

/ts undo Should restore the previous TotemSmp state after an accidental restart/reset, using a saved backup of the previous state.

Power Controls Example:

/ts tpower stop Skeleton Stops Skeleton Totem powers.

/ts tpower start Skeleton Re-enables Skeleton Totem powers.

All custom Totems should be enabled by default.

Permissions All administrative commands should be OP-only by default.

For example:

totemsmp.admin totemsmp.give totemsmp.remove totemsmp.power totemsmp.ultimate

Normal players should only be able to use their Totems.

Important implementation detail

For the custom Totem item itself, the plugin should use a unique persistent identifier (such as a NamespacedKey/PersistentDataContainer tag), rather than identifying the item only by its display name. This prevents renamed normal Totems from accidentally becoming custom Totems.

And the plugin should store the Totem state persistently so a server restart doesn't accidentally duplicate or delete players' legitimate Totems.

This is a fairly large plugin because it combines custom combat projectiles, targeting, death/pop handling, GUIs, persistent inventory/Ender Chest tracking, animations, cooldowns, and the spin system.

Kodari AI
KodariSep 15 at 7:44 am 18
TotemSmp
A comprehensive Minecraft plugin adding ten custom totems with unique combat powers. Features include Warden Beam, Ghast Fireball, Wither Head, automatic Harming arrows, infinite Ender Pearls, potion throwing, Dragon Power Ball, Guardian Beam, Blaze Fireballs, and Baby Zombie transformation. Implements a totem pop system preventing death, with the Ultimate Totem offering infinite pops. Includes a spinning totem animation system, inventory GUI displaying totem stats, admin commands for giving/removing totems, power controls, restart/undo functionality, and persistent totem storage using NamespacedKey identifiers. Targeting system supports players and mobs up to 500 blocks with crosshair aiming.
  1. Build the Paper plugin foundation, persistent Totem state, tagged custom-item system, and commands.

  2. Implement each Totem’s activation, cooldown, targeting, projectile/beam behavior, and resurrection pops.

  3. Add the information GUI, spin assignment animation, join handling, restart backup, and undo restoration.

Created the TotemSmp Paper plugin foundation with:

  • Persistent PDC-tagged custom Totem items and persistent spin/power state.

  • /ts administration suite, Ultimate password validation, inventory/Ender Chest inspection, removal, reset backup, and undo.

  • Cooldowns, power enable/disable controls, resurrection pop handling for main/off-hand Totems, including infinite Ultimate pops.

  • Long-distance look-direction targeting, projectile attacks, beam powers, timed Skeleton/Blaze/Enderman/Baby Zombie effects, and normal-mob one-hit handling.

  • Compact Totem information GUI.

  • Persistent /ts start spin assignment for eligible online and joining players.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
15 1,225
src/main/java/com/spiderplugins/totemsmp/TotemSmpPlugin.java
package com.spiderplugins.totemsmp;

import com.spiderplugins.totemsmp.command.TotemCommand;
import com.spiderplugins.totemsmp.gui.TotemGuiListener;
import com.spiderplugins.totemsmp.gui.TotemGuiService;
import com.spiderplugins.totemsmp.listener.TotemListener;
import com.spiderplugins.totemsmp.service.SpinService;
import com.spiderplugins.totemsmp.service.TotemItemService;
import com.spiderplugins.totemsmp.service.TotemPowerService;
import com.spiderplugins.totemsmp.service.TotemStateService;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class TotemSmpPlugin extends JavaPlugin {
    private TotemItemService itemService;
    private TotemStateService stateService;
    private TotemPowerService powerService;
    private TotemGuiService guiService;
    private SpinService spinService;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        this.itemService = new TotemItemService(this);
        this.stateService = new TotemStateService(this, this.itemService);
        this.powerService = new TotemPowerService(this, this.stateService);
        this.guiService = new TotemGuiService(this.itemService);
        this.spinService = new SpinService(this, this.itemService, this.stateService);

        Bukkit.getPluginManager().registerEvents(new TotemListener(this), this);
        Bukkit.getPluginManager().registerEvents(new TotemGuiListener(), this);

        PluginCommand command = getCommand("ts");
        if (command != null) {
            TotemCommand executor = new TotemCommand(this);
            command.setExecutor(executor);
            command.setTabCompleter(executor);
        }
    }

    @Override
    public void onDisable() {
        if (this.spinService != null) {
            this.spinService.cancelAll();
        }
        if (this.stateService != null) {
            this.stateService.save();
        }
    }
}