anupyadavonline

Can you make a plugin with custom totem abilities . There are 10 different types of totem with each different ability

Kodari AI
KodariFeb 24 at 3:58 pm 17,270 (v2)

I’ll create a custom totem abilities plugin with 10 unique totems, each with different special effects.

CustomTotemAbilities
A unique totem plugin featuring 10 distinct totem types with custom abilities. Includes enhanced undying, strength, speed, healing aura, fire immunity, water breathing, temporary flight, wealth generation, teleportation, and phoenix explosion totems. Each totem activates on death with configurable effects, particle displays, and custom model data support for resource packs.

Plugin created with 10 unique custom totems! Each totem activates when held during death, providing unique abilities: enhanced undying buffs, strength boost, speed boost, area healing, fire immunity + burn enemies, water breathing, temporary flight, wealth drops, teleportation to spawn, and phoenix explosion. Use /totem <type> to give totems, and configure all abilities, particles, sounds, and effects in config.yml.

All files have been successfully generated! The CustomTotemAbilities plugin is now complete with:

Core Features:

  • 10 unique totem types with distinct abilities

  • Custom model data support for resource packs

  • Configurable effects, particles, and sounds

  • Permission-based totem usage

  • Tab completion for commands

Totem Types:

  1. Undying - Enhanced protection with regeneration, fire resistance, and absorption

  2. Strength - Grants strength and damage resistance

  3. Speed - Blazing speed, jump boost, and fast digging

  4. Healing - Heals player and nearby allies in radius

  5. Fire - Fire immunity and ignites nearby enemies

  6. Water - Water breathing, dolphin’s grace, and conduit power

  7. Flight - Temporary creative-style flight

  8. Wealth - Drops valuable items (diamonds, emeralds, gold)

  9. Teleport - Teleports to spawn or bed

  10. Phoenix - Resurrects with explosive launch and fire effects

Commands:

  • /totem <type> [player] [amount] - Give custom totems

All totems activate when held in hand during death, just like vanilla totems!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
8 702
src/main/java/com/customtotems/CustomTotemAbilities.java
package com.customtotems;

import com.customtotems.commands.TotemCommand;
import com.customtotems.listeners.TotemListener;
import com.customtotems.managers.TotemManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class CustomTotemAbilities extends JavaPlugin {
    
    private TotemManager totemManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.totemManager = new TotemManager(this);
        
        getServer().getPluginManager().registerEvents(new TotemListener(this), this);
        
        getCommand("totem").setExecutor(new TotemCommand(this));
        
        getLogger().info("CustomTotemAbilities has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (totemManager != null) {
            totemManager.cleanup();
        }
        getLogger().info("CustomTotemAbilities has been disabled!");
    }
}