jssyro.

An enchanted totem that when you click it spawns like 5 stone towers infront of you 1 by one rising layer by layer and to disappea rthemclick again

Kodari AI
KodariOct 15 at 4:19 pm 1
TotemTowerBuilder
TotemTowerBuilder is a Minecraft plugin that adds a special enchanted totem item. When a player right-clicks the totem, it spawns five stone towers in front of them, one by one, rising layer by layer in a sequential animation. Clicking the totem again removes all spawned towers, allowing players to toggle the tower structures on and off. The plugin handles block placement, animation timing, and cleanup, providing an interactive building mechanic for players.

[Generation stopped]

jssyro.

add a comman /stonetotem to get it

Kodari AI
KodariOct 15 at 4:20 pm 1
  1. Add the Paper plugin setup and /stonetotem command.

  2. Give an enchanted, tagged totem that toggles five rising stone towers on right-click.

  3. Restore the original blocks when toggled off, on player quit, or plugin shutdown.

Added /stonetotem to give an enchanted Stone Tower Totem. Right-click it to raise five stone towers layer by layer; right-click again to restore the original blocks. Towers are also restored when the player leaves or the plugin shuts down.

jssyro.

Can you make them more detailed towers like this and make an option where you can choose by 5 modes, 1 mode is to make a circle around you second is to make a detailed bridge under your legs, 3rd is to first sta4rt like an octopus arm and it surrounds u in a sphere and it turns into obsidian 5th is the attack where you can aim at a player and it contains them and if u click again u let them go do this but with multiple other elements like /watertotem /firetotem aka lava water for water

1 image attached
Kodari AI
KodariOct 15 at 4:29 pm 1
  1. Extend the existing totem system with five selectable build modes, including the detailed rising-spire look from the reference.

  2. Add /watertotem and /firetotem elemental versions, with mode selection and aimed-player containment.

  3. Keep toggle, disconnect, and shutdown cleanup safe.

[Generation stopped]

jssyro.

also remove any chat messages that happen i want nothing in chat also make the selection of whichj power work

Kodari AI
KodariOct 15 at 4:31 pm 1
  1. Inspect the existing totem code and command/config setup.

  2. Implement five selectable modes for stone, water, and fire totems, including aimed-player containment.

  3. Remove plugin chat output and ensure powers toggle off and clean up safely.

[Generation stopped]

jssyro.

also make it work on any mob and make a mode for each one that lifts u into the air and then makes a spehere around you

Kodari AI
KodariOct 15 at 4:35 pm 2
  1. Add mob targeting to the containment power.

  2. Add a lift-then-sphere mode for each totem type.

  3. Keep mode selection silent and preserve cleanup behavior.

Added silent /stonetotem, /watertotem, and /firetotem commands. Each gives its enchanted totem.

Select powers by sneak-right-clicking to cycle, or hold the totem and use /stonetotem mode <1-6> (replace with the matching element command). The powers are circle wall, elemental bridge, octopus arms forming an obsidian sphere, rising towers, aimed containment, and lift-then-sphere.

Containment targets any living mob or player in your line of sight. Right-click again to release them and restore the structure. Effects are also cleaned up when the caster leaves or the plugin shuts down. No plugin messages are sent to chat.

jssyro.

ok first of all make in lava totem when ur holding it u have fire resistance and also in lava and water u fall off the water/lava orb and make it so that theres a spire and make a new totem called the totem of ultimate resistance which combines a bunch of the 3 elemenst but make it SOOO much powerful

Kodari AI
KodariOct 15 at 4:39 pm 1
  1. Give the lava/fire totem fire resistance while held.

  2. Fix orb structures so their water/lava surfaces support players instead of letting them fall through.

  3. Add a spire power and a much stronger Totem of Ultimate Resistance combining stone, water, and fire effects.

[Generation stopped]

jssyro.

Also switch any stone bricks or any other material so basicaly Lava is only gonna be Obsidian, Lava water is only water block and stone is only stone

Kodari AI
KodariOct 15 at 4:39 pm 1

The generation was stopped before any content could be produced.

jssyro.

also the mob containment is weird its not an actual orb and the octopus doesnt work and make any power like orb move wit hu

Kodari AI
KodariOct 15 at 4:43 pm 2
  1. Fix the octopus and mob-containment powers, and make active structures follow their owner.

  2. Restrict each element to its intended blocks; make water/lava orbs physically support players.

  3. Add held lava-to-tem immunity and a stronger ultimate-resistance totem with a spire power.

Updated the totem powers:

  • Orb powers now form complete spheres and follow the player; containment spheres follow the captured mob or player. The octopus mode now builds eight outward-reaching arms before forming its sphere.

  • Stone powers use only stone, water powers only water blocks, and fire/lava powers only obsidian. Water orbs are filled and their water is prevented from flowing away.

  • Added /ultimatetotem, with the exact item name Totem of Ultimate Resistance, mixed elemental structures, a taller lift-and-sphere power, and stronger resistance effects while held.

  • Added mode 7, Spire, to each totem. Totem actions remain silent in chat.

jssyro.

Make one also magma which crates an orb like saturn a ring around you and if anyone gets near you they get levitated like the shulker and it throws them away by 30 blocks

Kodari AI
KodariOct 15 at 4:49 pm 2
  1. Add a magma totem command and item.

  2. Build a Saturn-like obsidian ring around its holder; nearby entities get launched upward and knocked back about 30 blocks.

  3. Keep the effect silent and clean it up on toggle, logout, and plugin shutdown.

Added /magmatotem. Its enchanted Magma Totem builds a magma-block orb with a Saturn-like ring that follows you. Nearby living entities are levitated and launched outward with strong knockback—roughly 30 blocks when unobstructed. Right-click again to turn it off and restore replaced blocks.

jssyro.

Also in the ultimate totem all me to create as many orbs as i want withotu despawning the last one and then make amega feature in it where if you stand still and you can blast all the stone around you and any mob in a 200 player radius will be frozen in the orb

Kodari AI
KodariOct 15 at 4:54 pm 1
  1. Check how ultimate totems create, track, and toggle orbs.

  2. Let each activation retain its own orb; add a stationary-charge mega ability that clears nearby stone and traps mobs within 200 blocks.

  3. Keep cleanup behavior intact and avoid chat output.

[Generation stopped]

jssyro.

How do i use the blast power than freezes all the mobs in a 200 radius

Kodari AI
KodariOct 15 at 4:55 pm 1

The 200-block freeze blast isn’t implemented yet, so there’s no way to activate it. The current ultimate totem only has modes 1–7: hold it and use /ultimatetotem mode <1-7> to select a mode, then right-click to activate it.

jssyro.

ok can u mak eit

Kodari AI
KodariOct 15 at 4:56 pm 1

[Generation stopped]

jssyro.

Also in the ultimate totem all me to create as many orbs as i want withotu despawning the last one and then make amega feature in it where if you stand still and you can blast all the stone around you and any mob in a 200 player radius will be frozen in the orb

Kodari AI
KodariOct 15 at 4:57 pm 1
  1. Let ultimate-totem orbs persist independently instead of despawning the previous orb.

  2. Add a stationary-charge mega blast that clears nearby stone and traps mobs within 200 blocks in an orb.

[Generation stopped]

jssyro.

I meant any mob in a 200 player radius is freezed in the comninationb of elements

Kodari AI
KodariOct 15 at 5:00 pm 2

Plan:

  1. Add Ultimate mode 8 with a stationary charge.

  2. On release, trap every mob within a 200-block spherical radius in an Ultimate-element orb and freeze it.

  3. Restore each mob’s AI/gravity and the changed blocks when the effect is toggled off or the plugin shuts down.

Ultimate mode 8 is added. Hold the Ultimate Totem, select it with /ultimatetotem mode 8, then right-click and stand still for about 4 seconds. Mobs within 200 blocks are frozen inside mixed-element orbs. Right-click again to release them and restore the replaced blocks.

jssyro.

expand this and make it easier to switch between modes add 10 more cool feature to each totem

Kodari AI
KodariOct 16 at 6:05 pm 1

Plan:

  1. Inspect the current totem mode/power handling.

  2. Make mode switching easier to use.

  3. Add ten distinct abilities for each existing totem type, keeping their elemental identities.

Added ten new powers to each of the five totems—50 new modes total. They cover themed wards, speed and strength boosts, healing, shockwaves, freezing, pulling, launching, levitation, and a powerful final burst.

Switch powers with sneak + right-click, or use /stonetotem next / prev (and the matching command for your totem); numeric mode selection still works. The selected power is shown in a title, and the item lore shows its name and controls.

jssyro.

None of the magma powers work

Kodari AI
KodariOct 16 at 6:10 pm 1

[Generation stopped]

jssyro.

None of the new powers work

Kodari AI
KodariOct 16 at 6:11 pm 1

The mode handler is running the shared powers, but two problems make some appear broken: Magma modes display labels that don’t match their actual powers, and the resistance/strength buffs use legacy effect names. I’m correcting both so the selected power matches what activates and those buffs resolve on current servers.

Fixed the Magma mode names so they match the powers that actually activate, and updated the resistance and strength effects to use current potion names. The changes are in StoneTotemPlugin.java.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
3 1,062
src/main/java/com/kodari/stonetotem/StoneTotemPlugin.java
package com.kodari.stonetotem;

import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.block.TileState;
import org.bukkit.block.data.BlockData;
import org.bukkit.event.block.BlockFromToEvent;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Mob;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.Action;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.player.PlayerMoveEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.inventory.EquipmentSlot;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.persistence.PersistentDataType;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitRunnable;
import org.bukkit.scheduler.BukkitTask;
import org.bukkit.util.RayTraceResult;
import org.bukkit.util.Vector;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.UUID;

public final class StoneTotemPlugin extends JavaPlugin implements Listener {
    private static final int MODE_COUNT = 17;
    private static final int ULTIMATE_MODE_COUNT = 18;
    private static final int MAGMA_MODE_COUNT = 11;
    private static final int LIFT_HEIGHT = 6;
    private static final String[] STONE_EXTRA_POWERS = {
            "Granite Ward", "Earthrunner", "Mountain Strength", "Stoneheart Recovery",
            "Seismic Shockwave", "Granite Prison", "Boulder Vortex", "Faultline Eruption",
            "Pillar Lift", "Mountain Breaker"
    };
    private static final String[] WATER_EXTRA_POWERS = {
            "Tidal Ward", "Current Rush", "Tide Empowerment", "Healing Spring",
            "Surge Wave", "Icebound Current", "Whirlpool", "Geyser Launch",
            "Rising Tide", "Tsunami"
    };
    private static final String[] FIRE_EXTRA_POWERS = {
            "Obsidian Ward", "Cinder Dash", "Blazing Force", "Phoenix Renewal",
            "Inferno Burst", "Lava Lock", "Ember Vortex", "Volcanic Eruption",
            "Firestorm Lift", "Obsidian Cataclysm"
    };
    private static final String[] ULTIMATE_EXTRA_POWERS = {
            "Prismatic Ward", "Cosmic Dash", "Titan Might", "Eternal Renewal",
            "Elemental Shockwave", "Prismatic Stasis", "Gravity Well", "Skyfall",
            "Ascendant Lift", "Ultimate Cataclysm"
    };
    private static final String[] MAGMA_EXTRA_POWERS = {
            "Magma Shell", "Molten Rush", "Eruption", "Thermal Renewal",
            "Magma Shockwave", "Molten Prison", "Magma Vortex", "Volcano Launch",
            "Lava Lift", "Supernova"
    };

    private final Map<UUID, TotemEffect> activeEffects = new LinkedHashMap<>();
    private final Set<UUID> immobilizedPlayers = new HashSet<>();
    private Material totemMaterial;
    private Material stoneMaterial;
    private Material obsidianMaterial;
    private Material waterMaterial;
    private Material magmaMaterial;
    private NamespacedKey elementKey;
    private NamespacedKey modeKey;
    private BukkitTask heldEffectsTask;

    @Override
    public void onEnable() {
        totemMaterial = Material.matchMaterial("TOTEM_OF_UNDYING");
        stoneMaterial = Material.matchMaterial("STONE");
        obsidianMaterial = Material.matchMaterial("OBSIDIAN");
        waterMaterial = Material.matchMaterial("WATER");
        magmaMaterial = Material.matchMaterial("MAGMA_BLOCK");
        if (totemMaterial == null || stoneMaterial == null || obsidianMaterial == null || waterMaterial == null
                || magmaMaterial == null) {
            getLogger().severe("This server does not support the materials required by Totems.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }

        elementKey = new NamespacedKey(this, "totem_element");
        modeKey = new NamespacedKey(this, "totem_mode");
        getServer().getPluginManager().registerEvents(this, this);
        registerTotemCommand("stonetotem", Element.STONE);
        registerTotemCommand("watertotem", Element.WATER);
        registerTotemCommand("firetotem", Element.FIRE);
        registerTotemCommand("ultimatetotem", Element.ULTIMATE);
        registerTotemCommand("magmatotem", Element.MAGMA);
        heldEffectsTask = new BukkitRunnable() {
            @Override
            public void run() {
                for (Player player : getServer().getOnlinePlayers()) {
                    Element heldElement = isTotem(player.getInventory().getItemInMainHand())
                            ? getElement(player.getInventory().getItemInMainHand())
                            : isTotem(player.getInventory().getItemInOffHand())
                            ? getElement(player.getInventory().getItemInOffHand()) : null;
                    if (heldElement == Element.FIRE || heldElement == Element.ULTIMATE) {
                        applyHeldEffect(player, "FIRE_RESISTANCE", 0);
                    }
                    if (heldElement == Element.ULTIMATE) {
                        applyHeldEffect(player, "DAMAGE_RESISTANCE", 2);
                        applyHeldEffect(player, "ABSORPTION", 2);
                        applyHeldEffect(player, "REGENERATION", 1);
                    }
                }
            }
        }.runTaskTimer(this, 0L, 20L);
    }

    @Override
    public void onDisable() {
        if (heldEffectsTask != null) {
            heldEffectsTask.cancel();
        }
        for (UUID playerId : new ArrayList<>(activeEffects.keySet())) {
            removeEffect(playerId);
        }
    }

    private void registerTotemCommand(String name, Element element) {
        getCommand(name).setExecutor((sender, command, label, args) -> {
            if (!(sender instanceof Player player)) {
                return true;
            }
            if (args.length == 0) {
                Map<Integer, ItemStack> overflow = player.getInventory().addItem(createTotem(element));
                overflow.values().forEach(item -> player.getWorld().dropItemNaturally(player.getLocation(), item));
                return true;
            }
            String modeArgument = args.length == 1 ? args[0]
                    : args.length == 2 && args[0].equalsIgnoreCase("mode") ? args[1] : "";
            ItemStack held = player.getInventory().getItemInMainHand();
            if (!isTotem(held) || getElement(held) != element) {
                return true;
            }
            int mode = getMode(held);
            if (modeArgument.equalsIgnoreCase("next")) {
                mode = mode % maxMode(element) + 1;
            } else if (modeArgument.equalsIgnoreCase("previous") || modeArgument.equalsIgnoreCase("prev")) {
                mode = (mode - 2 + maxMode(element)) % maxMode(element) + 1;
            } else {
                try {
                    mode = Integer.parseInt(modeArgument);
                } catch (NumberFormatException exception) {
                    return true;
                }
            }
            if (mode >= 1 && mode <= maxMode(element)) {
                updateTotemMeta(held, element, mode);
                player.getInventory().setItemInMainHand(held);
                showSelectedPower(player, element, mode);
            }
            return true;
        });
    }

    @EventHandler
    public void onTotemClick(PlayerInteractEvent event) {
        if (event.getHand() != EquipmentSlot.HAND || event.getItem() == null || !isTotem(event.getItem())) {
            return;
        }
        if (event.getAction() != Action.RIGHT_CLICK_AIR && event.getAction() != Action.RIGHT_CLICK_BLOCK) {
            return;
        }

        event.setCancelled(true);
        Player player = event.getPlayer();
        ItemStack item = event.getItem();
        Element element = getElement(item);
        if (element == null) {
            return;
        }
        if (player.isSneaking()) {
            removeEffect(player.getUniqueId());
            int nextMode = getMode(item) % maxMode(element) + 1;
            updateTotemMeta(item, element, nextMode);
            player.getInventory().setItemInMainHand(item);
            showSelectedPower(player, element, nextMode);
            return;
        }