treekmudkip

Atlas smp s1 plugin Atlas plugin This plugin has custom items,abilities,passive Gods Gods are a power that players become with their first join. there are a total of 8 gods Artemis Poseidon Rhione Zeus Apollo Plutus Ares Hephaestus And a other 1 event gods (each god limited to only one player) Ymir

What does gods do?

Gods has abilities and pasives into them each one of gods has 2 abilities each has its own 2 unique abilities and passives.

How do you get a god?

You earn a random God when first join. you get a rolling thing like a gambling roll in your screen and chooses a random god. There should be a rolling vfx and sfx How does it work?

A god has 2 abilities you can use What are the controls?

The controls are Crouch+offhand = first ability Crouch+right-click = second ability Or you could use /Ability 1 /Ability 2 To active the Abilties

Gods Abilities and passives Artemis Artemis Passive:

Infinite speed 1 Abilities:

First ability - WindGust WindGust launches people in the air of 22 blocks 30 seconds cooldown Second ability - The Hunt Your attribute scale become 0.5 you become half your normal height and while your in this state. You're invisible and you're armour to players and while your invisible your emitting white particles to let players know youre there this state last for 15 seconds 120 seconds cooldown

Poseidon Poseidon Passive:

Infinite water breathing 2 effect Poseidon abilities:

First Ability-Tidal Wave Tidal Wave summons an 8 blocks tall water tsunami that pushes people away. last for 20 blocks radius when a player get hit by the tsunami they get get slowness effect 1 for 10 seconds. 45 seconds cooldown Second Ability-Tidal Sting Tidal Sting lunges you backwards and upwards you lunges out far away shoots you like a Riptide Trident. 100 seconds cooldown

Rhione Rhione Passive:

Immune to slowness and cobwebs slow down Rhione abilities:

First ability-SnowLatch This ability shoots out a snow whip made out of particles and when the snow whip hit a player they will get pulled into you. 60 seconds cooldown Second ability-Blizzard This ability summons a Blizzard around you it does 2 hearts damage per second the blizzard last for 20 second with a radius of 15 blocks. 100 seconds cooldown

Zeus Zeus Passive:

Every 5 critical hits a lightning strike. strikes your target Infinite speed 1 Zeus Abilities:

First ability-LightningSparx This ability summons a circle within 15 blocks radius, inside the circle lightning will strike a player 3 times if it is inside the circle the lightning will have a damage of 2 hearts 45 seconds cooldown Second ability- Helos's Spear Throws a javeline made out of particles if it hits a player/mob it will have a damage of 2 hearts damage, and it will stun the player/mob for 5 seconds while stunned the player will have a yellow circle made out of particles and after the 5 seconds the particles will loss it shape and gradually disappearing 80 seconds cooldown

Apollo Apollo passive:

Infinite fire resistant effect Apollo Abilities:

First ability-Sun Ray This ability shoots a beam that does 2 hearts damage you can shoot it 1 by 1 and 3 times before the cooldown starts. 35 seconds cooldown Second ability-SolarCatacalysm This ability summons a sun made out of particles above your head for 30 seconds duration this sun has a 20 blocks radius of shooting a player/mob with a beam it if it stands on the 20 blocks radius the sun can detect a target 2 second cooldown per beam it can shoot 2 hearts damag. 90 seconds cooldown

Plutus Plutus Passive:

Infinite hero of the village 5 effect You automatically get fortune 3 in your pickaxe When you make a pickaxe Puluts abilities:

First ability-Midas Touch When you hit a player you only steal one heart per players and you return them after the second duration of 35 seconds,and it gives the player you hit poison effect for 10 seconds. 60 seconds cooldown When hitting a player Second ability-Impact of Greed This ability launches in the air high and when you fall into a block a mace smash hit will execute when you fall into a block

Ares Ares passive:

Infinite Strength 1 Ares abilities:

First ability-BloodLance This ability dashes you into the air for 2 blocks and go to the ground and when you get into the ground mace smashes and it should deal 5 hearts of damage. 60 seconds cooldown Second ability-Crimson Trinity This ability summons a 4 block radius circle and when a player/mob gets into the circle they will get knocked back and get slashed 3 times with a sweep like hit effect the 1 slash deals 2 hearts of damage

Hephaestus Hephaestus passive:

Infinite fire resistant effect Hephaestus abilities:

First ability- Fire Ring This ability summons a fire ring that you carry the fire ring has a 8 blocks radius and deals 1 hearts damage per second and every water and cobweb gets melted Second ability- Colossals Stun This ability shoots a fire ball that stuns every target who gets hit for 6 seconds with a damage of 2 hearts

Ymir Ymir passive:

Every tameable mob get tamed by the player who has ymir god Immune to all negative effects Ymir abilities First ability-Ymir's Call This Ability plays a shrieking scream that every target who hears it gets a blinding 1 , slowness 2 effect for 10 seconds 45 seconds cooldown

Second Ability-Fritz's Last Order Every player nearby by 10 blocks radius gets strucked by lightning and get stunned for 5 seconds every players that is stunned have a circle particle around them and eventually gets removed after they get unstunned. 60 seconds cooldown Custom items God Reroller (rerolls your god,but your blessings stays the same,the event gods are unrollable) How to craft a reroller?

Materials enchanted golden apple,netherite ingot ,blessings Recipe NI NI NI EG B EG NI NI NI God picker (pick what god you want,but your blessings stays the same,events god are unpickable, limited items for admin only) Blessings (the item used to upgrade your god, dropped by a players,craftable) Materials: Enchanted golden apple, Recipe None None None None EG None None None None Commands /Atlas Gui (opens a gui that gives you custom items and the gods) /Cooldown Reset (reset your gods Abilities cooldown /Atlas Setblessinsg player 1-5 (sets the chosen player's blessings) /Atlas setgod player god (sets the chosen player's god) Add vfx,sfx,text color,vfx particles to everything

Kodari AI
KodariOct 25 at 2:25 am 3
AtlasGods
AtlasGods is a Minecraft plugin that assigns players a random god upon first join with an animated rolling effect featuring VFX and SFX. Eight unique gods each possess two abilities and passives, activated via crouch+offhand, crouch+right-click, or commands. Abilities include wind gusts, tidal waves, blizzards, lightning strikes, solar beams, midas touches, blood lances, fire rings, and more, all with particle effects and cooldowns. Custom items include God Reroller, God Picker, and Blessings for upgrading. Commands manage god assignment, blessing levels, cooldown resets, and an Atlas GUI for item access.
  1. Build the plugin foundation and persistent god/blessing data.

  2. Add god abilities, passives, cooldowns, controls, and combat effects.

  3. Add the Atlas GUI, custom items/recipes, commands, and first-join god roll.

Created the Atlas SMP plugin with persistent god and blessing data, first-join god rolls, the eight standard gods and single-player Ymir assignment, ability controls/cooldowns/passives, and visual effects.

Added the /atlas GUI, custom-item crafting and use, blessing drops on player death, Plutus’s Fortune pickaxe passive, and /ability, /cooldown reset, /atlas setblessings, and /atlas setgod commands.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
10 1,187
src/main/java/com/atlas/smp/AtlasPlugin.java
package com.atlas.smp;

import com.cryptomorin.xseries.XEnchantment;
import com.cryptomorin.xseries.XSound;
import com.cryptomorin.xseries.particles.XParticle;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.NamespacedKey;
import org.bukkit.entity.Player;
import org.bukkit.entity.Tameable;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.Action;
import org.bukkit.event.entity.EntityDeathEvent;
import org.bukkit.event.entity.EntityPotionEffectEvent;
import org.bukkit.event.inventory.CraftItemEvent;
import org.bukkit.event.player.PlayerInteractEntityEvent;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerSwapHandItemsEvent;
import org.bukkit.inventory.EquipmentSlot;
import org.bukkit.inventory.ItemStack;
import org.bukkit.persistence.PersistentDataType;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.Random;

public final class AtlasPlugin extends JavaPlugin implements Listener {
    private final Random random = new Random();
    private NamespacedKey itemKey;
    private GodManager godManager;
    private AbilityManager abilityManager;
    private GodMenu godMenu;

    @Override
    public void onEnable() {
        itemKey = new NamespacedKey(this, "atlas_item");
        godManager = new GodManager(this);
        abilityManager = new AbilityManager(this);
        godMenu = new GodMenu(this);
        getServer().getPluginManager().registerEvents(this, this);
        getServer().getPluginManager().registerEvents(abilityManager, this);
        getServer().getPluginManager().registerEvents(godMenu, this);
        AtlasItems.registerRecipes(this);
        getCommand("atlas").setExecutor(new AtlasCommand(this));
        getCommand("ability").setExecutor(new AtlasCommand(this));
        getCommand("cooldown").setExecutor(new AtlasCommand(this));
    }

    public NamespacedKey getItemKey() {
        return itemKey;
    }

    public GodManager getGodManager() {
        return godManager;
    }

    public AbilityManager getAbilityManager() {
        return abilityManager;
    }

    public GodMenu getGodMenu() {
        return godMenu;
    }

    public Random getRandom() {
        return random;
    }

    @EventHandler
    public void onJoin(PlayerJoinEvent event) {
        Player player = event.getPlayer();
        if (godManager.hasGod(player.getUniqueId())) return;
        AtlasGod chosen = AtlasGod.rollable().get(random.nextInt(AtlasGod.rollable().size()));
        for (int step = 0; step < 15; step++) {
            int rollStep = step;
            Bukkit.getScheduler().runTaskLater(this, () -> {
                if (!player.isOnline()) return;
                AtlasGod display = AtlasGod.rollable().get(rollStep % AtlasGod.rollable().size());
                player.sendTitle("§6" + display.displayName(), "§eThe gods are choosing you...", 0, 5, 0);
                XSound.matchXSound("BLOCK_NOTE_BLOCK_CHIME").ifPresent(sound -> sound.play(player));
                XParticle.of("FIREWORK").ifPresent(particle -> player.getWorld().spawnParticle(particle.get(), player.getLocation().add(0, 1, 0), 8, .5, .5, .5, .03));
            }, step * 4L);
        }
        Bukkit.getScheduler().runTaskLater(this, () -> {
            if (!player.isOnline()) return;
            godManager.setGod(player.getUniqueId(), chosen);
            player.sendTitle("§6§l" + chosen.displayName(), "§fYour divine abilities have awakened", 5, 60, 15);
            XSound.matchXSound("ENTITY_PLAYER_LEVELUP").ifPresent(sound -> sound.play(player));
            XParticle.of("TOTEM_OF_UNDYING").ifPresent(particle -> player.getWorld().spawnParticle(particle.get(), player.getLocation().add(0, 1, 0), 35, .8, 1, .8, .12));
        }, 60L);
    }

    @EventHandler
    public void onSwap(PlayerSwapHandItemsEvent event) {
        Player player = event.getPlayer();
        if (!player.isSneaking()) return;
        event.setCancelled(true);
        abilityManager.activate(player, 1);
    }

    @EventHandler
    public void onInteract(PlayerInteractEvent event) {
        if (event.getHand() != EquipmentSlot.HAND) return;
        ItemStack item = event.getItem();
        String itemId = AtlasItems.id(this, item);
        if (itemId != null && (event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK)) {
            event.setCancelled(true);
            useCustomItem(event.getPlayer(), item, itemId);
            return;
        }
        if (event.getPlayer().isSneaking() && (event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK)) {
            abilityManager.activate(event.getPlayer(), 2);
        }
    }

    private void useCustomItem(Player player, ItemStack item, String id) {
        switch (id) {
            case "reroller" -> {
                godManager.setGod(player.getUniqueId(), AtlasGod.rollable().get(random.nextInt(AtlasGod.rollable().size())));
                consumeOne(player, item);
                player.sendMessage("§aThe gods have chosen §6" + godManager.getGod(player).displayName() + "§a. Your blessings remain unchanged.");
                XParticle.of("TOTEM_OF_UNDYING").ifPresent(particle -> player.getWorld().spawnParticle(particle.get(), player.getLocation().add(0, 1, 0), 20, .5, .8, .5, .1));
            }
            case "god_picker" -> godMenu.openPicker(player);
            case "blessing" -> {
                if (godManager.getBlessings(player.getUniqueId()) >= 5) {
                    player.sendMessage("§cYou already have the maximum of 5 blessings.");
                } else {
                    godManager.setBlessings(player.getUniqueId(), godManager.getBlessings(player.getUniqueId()) + 1);
                    consumeOne(player, item);
                    player.sendMessage("§dBlessing added. Total: §f" + godManager.getBlessings(player.getUniqueId()));
                }
            }
            default -> player.sendMessage("§cThat Atlas item is not recognized.");
        }
    }

    private void consumeOne(Player player, ItemStack item) {
        if (player.getGameMode().name().equals("CREATIVE")) return;
        if (item.getAmount() <= 1) player.getInventory().setItemInMainHand(null);
        else item.setAmount(item.getAmount() - 1);
    }

    @EventHandler
    public void onDeath(EntityDeathEvent event) {
        if (!(event.getEntity() instanceof Player)) return;
        ItemStack blessing = AtlasItems.create(this, "blessing", "NETHER_STAR", "Blessing", "§7A divine token used to upgrade your god.");
        if (blessing != null) event.getDrops().add(blessing);
    }

    @EventHandler
    public void onPotionEffect(EntityPotionEffectEvent event) {
        if (!(event.getEntity() instanceof Player player) || event.getNewEffect() == null) return;
        AtlasGod god = godManager.getGod(player);
        if (god != AtlasGod.YMIR && god != AtlasGod.RHIONE) return;
        String type = event.getNewEffect().getType().getName();
        boolean negative = type.equalsIgnoreCase("SLOW") || type.equalsIgnoreCase("SLOWNESS")
                || type.equalsIgnoreCase("BLINDNESS") || type.equalsIgnoreCase("POISON")
                || type.equalsIgnoreCase("WITHER") || type.equalsIgnoreCase("WEAKNESS")
                || type.equalsIgnoreCase("HUNGER") || type.equalsIgnoreCase("CONFUSION")
                || type.equalsIgnoreCase("NAUSEA") || type.equalsIgnoreCase("MINING_FATIGUE")
                || type.equalsIgnoreCase("LEVITATION") || type.equalsIgnoreCase("DARKNESS")
                || type.equalsIgnoreCase("BAD_OMEN") || type.equalsIgnoreCase("UNLUCK")
                || type.equalsIgnoreCase("TRIAL_OMEN") || type.equalsIgnoreCase("RAID_OMEN")
                || type.equalsIgnoreCase("GLOWING");
        if (negative && (god == AtlasGod.YMIR || type.equalsIgnoreCase("SLOW") || type.equalsIgnoreCase("SLOWNESS"))) {
            event.setCancelled(true);
        }
    }

    @EventHandler
    public void onCraft(CraftItemEvent event) {
        if (!(event.getWhoClicked() instanceof Player player) || event.getCurrentItem() == null) return;
        String type = event.getCurrentItem().getType().name();
        if (godManager.getGod(player) != AtlasGod.PLUTUS || !type.endsWith("_PICKAXE") || event.getCurrentItem().getItemMeta() == null) return;
        XEnchantment.matchXEnchantment("FORTUNE").ifPresent(enchantment -> {
            ItemStack result = event.getCurrentItem().clone();
            result.addUnsafeEnchantment(enchantment.getEnchant(), 3);
            event.setCurrentItem(result);
        });
    }

    @EventHandler
    public void onTameableInteract(PlayerInteractEntityEvent event) {
        if (godManager.getGod(event.getPlayer()) != AtlasGod.YMIR) return;
        if (!(event.getRightClicked() instanceof Tameable tameable) || tameable.isTamed()) return;
        tameable.setOwner(event.getPlayer());
        event.getPlayer().sendMessage("§bThe creature answers Ymir's call.");
        XParticle.of("SNOWFLAKE").ifPresent(particle -> event.getRightClicked().getWorld().spawnParticle(particle.get(), event.getRightClicked().getLocation().add(0, 1, 0), 15, .5, .5, .5, .02));
    }
}