bose_07.2

WantedLabs

I want you to make a plugin where you can have POWERS (Fire, Water, Wind or Nature), there is a command for OP called /setpowers [WORLD] [LANGUAGE (english/Spanish)] So the first time you enter this world, you will recieve a book where you have to click RECIEVE POWER, and you will recieve a random power (fire, water, wind, or nature). I want the powers to have 3 abilities: Fire - Fire Resistance (Unlocked killing a blaze, permanent) - FireWalk (Kill a blaze + be in the nether 20 mins, this ability makes gives you an enchantes blaze powder, you click it and with a 2 mins cooldown, you have speed 2, amd where ever you walk it puts on fire (during 30s)) - Sneak+Jump 3 Seconds (puts a barrier of fire particles around you, whoever tries to go inside is put on fire and moved back, during 30s, with a 2min cooldown). WATER - Drowned (Die by drowning and recieve permanent conductivity) - Storm (let you be reached by a lightning during a storm and recieve an enchanted nautilus shell, when clicked it starts a storm and you can use the shell as a trident with riptide every 5s. during 1min, cooldown of 3 mins - Sneak+Jump 3s (water particles appear around you during 30s, whoever tries to pass through it is launched back and recieves mining fatigue for 10s, cooldown of 2mins). WIND - Breeze (use a wind charge and unlock the who needs rockets achievement, you recieve knockback and explosion knockback resistance at max level. permanent) - WindCharger (kill 3 breezes to recieve an enchanted windcharge, when clicked you launch everyone near you 10 blocks high and you get launched 100 blocks high (you recieve NO fall damage, others yes), cooldown of 2mins) - Sneak+Jump 3s (white particles appear around you, whoever tries to attack/go through the shield gets launched 10 blocks back. Shield on during 30s, with 2mins cooldown). NATURE - grow a tree (Grow a Tree you placed and recieve permanent haste 2, and a place block range of 6 blocks) - Over The World (go to the block limit at ~320 blocks high and recieve an enchanted apple, when clicked you become a Phantom, you can go through blocks, you are completly invisible (even the armor is invisible), during 30s, 3mins cooldown) - Sneak+Jump 3s (Dirt particles appear around you, whoever tries to go through or attack you, gets launched 2 blocks back and can't move for 1s, during 30s, 2min cooldown). Good Luck. Minecraft Paper 26.1.2 Java

Kodari AI
KodariJul 19 at 1:41 pm 42
WantedLabs
A Paper plugin adding elemental Powers (Fire, Water, Wind, Nature) to worlds chosen via /setpowers [world] [language]. Players entering an enabled world receive a Power Book granting a random element. Each power has 3 abilities unlocked through gameplay: a permanent passive, an active ability with cooldown, and a sneak+jump shield. Includes bilingual (English/Spanish) messages, per-player YAML persistence, and custom enchanted-glow ability items.
A powers plugin for Paper 1.21 where players get random elemental powers (Fire, Water, Wind, Nature) in configured worlds. Admins use /setpowers [world] [language] to enable a world and set its language (English/Spanish). Players receive a book to claim a random power, then unlock 2 passive/active abilities through in-game challenges (killing mobs, surviving conditions, reaching heights) plus a built-in Sneak+Jump shield ability per power. Includes cooldown management, YAML player-data persistence, custom glowing items, particle effects, and bilingual messages.

Iโ€™ll build the WantedLabs powers plugin now.

A Paper 1.21 plugin adding elemental Powers: Fire, Water, Wind, Nature. Admins enable worlds with /setpowers with language support (English/Spanish). Players get a Power Book on first join to an enabled world, granting a random power. Each power has 3 abilities: two unlocked via in-game conditions (killing mobs, surviving events, reaching heights) granting special enchanted items with active abilities and cooldowns, plus a passive Sneak+Jump shield ability with particle effects that repels or damages nearby entities. Includes per-player YAML data persistence, bilingual messages, and full event-driven ability logic.

Plugin is complete: Fire/Water/Wind/Nature powers with book distribution, per-power ability unlocks (kill conditions, timed survival, height thresholds), active items with cooldowns, sneak+jump particle shields, bilingual messages (English/Spanish), and YAML-based per-player persistence. /setpowers <world> <english/spanish> (permission wantedlabs.admin) enables a world.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
20 1,500
src/main/java/com/wantedlabs/WantedLabs.java
package com.wantedlabs;

import com.wantedlabs.commands.SetPowersCommand;
import com.wantedlabs.listeners.FireListener;
import com.wantedlabs.listeners.JoinListener;
import com.wantedlabs.listeners.NatureListener;
import com.wantedlabs.listeners.PowerBookListener;
import com.wantedlabs.listeners.SneakJumpListener;
import com.wantedlabs.listeners.WaterListener;
import com.wantedlabs.listeners.WindListener;
import com.wantedlabs.managers.ConfigManager;
import com.wantedlabs.managers.LanguageManager;
import com.wantedlabs.managers.PowerManager;
import com.wantedlabs.utils.ItemFactory;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class WantedLabs extends JavaPlugin {

    private ConfigManager configManager;
    private LanguageManager languageManager;
    private PowerManager powerManager;
    private ItemFactory itemFactory;

    private FireListener fireListener;
    private WaterListener waterListener;
    private WindListener windListener;
    private NatureListener natureListener;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.configManager = new ConfigManager(this);
        this.languageManager = new LanguageManager(this, configManager);
        this.itemFactory = new ItemFactory(this);
        this.powerManager = new PowerManager(this, configManager);

        this.fireListener = new FireListener(this);
        this.waterListener = new WaterListener(this);
        this.windListener = new WindListener(this);
        this.natureListener = new NatureListener(this);

        getServer().getPluginManager().registerEvents(new JoinListener(this), this);
        getServer().getPluginManager().registerEvents(new PowerBookListener(this), this);
        getServer().getPluginManager().registerEvents(new SneakJumpListener(this), this);
        getServer().getPluginManager().registerEvents(fireListener, this);
        getServer().getPluginManager().registerEvents(waterListener, this);
        getServer().getPluginManager().registerEvents(windListener, this);
        getServer().getPluginManager().registerEvents(natureListener, this);

        SetPowersCommand setPowersCommand = new SetPowersCommand(this);
        if (getCommand("setpowers") != null) {
            getCommand("setpowers").setExecutor(setPowersCommand);
            getCommand("setpowers").setTabCompleter(setPowersCommand);
        }

        getServer().getScheduler().runTaskTimer(this, () -> powerManager.saveAll(), 6000L, 6000L);
    }

    @Override
    public void onDisable() {
        if (powerManager != null) {
            powerManager.saveAll();
        }
    }
}