jonasunger75-cmyk

make a plugin so when you left click while holding a wind charge you get boosted up in the air with cool particles

Kodari AI
KodariJul 3 at 10:07 am 1
WindBoost
A Minecraft plugin that lets players launch into the air by left-clicking while holding a Wind Charge. Features a configurable boost power, cooldown system, and a visually impressive particle effect with a spiraling wind column around the player during ascent. Uses XSeries for cross-version compatibility and supports Minecraft 1.21+ Wind Charge items.

All files created. WindBoost lets you left-click with a Wind Charge to launch upward at configurable velocity. A cloud burst fires at your feet on launch, then a 3-strand helix of cloud particles spirals around you for ~1.25 seconds of flight with a trail below. Cooldown and boost power are adjustable in config.yml.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
6 195
src/main/java/com/windboost/WindBoost.java
package com.windboost;

import org.bukkit.plugin.java.JavaPlugin;

public class WindBoost extends JavaPlugin {

    private static WindBoost instance;
    private double boostPower;
    private int cooldownSeconds;
    private boolean particlesEnabled;

    @Override
    public void onEnable() {
        instance = this;
        saveDefaultConfig();
        loadConfig();
        getServer().getPluginManager().registerEvents(new WindBoostListener(this), this);
        getLogger().info("WindBoost enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("WindBoost disabled!");
    }

    public void loadConfig() {
        reloadConfig();
        boostPower = getConfig().getDouble("boost.power", 2.0);
        cooldownSeconds = getConfig().getInt("boost.cooldown-seconds", 3);
        particlesEnabled = getConfig().getBoolean("particles.enabled", true);
    }

    public static WindBoost getInstance() { return instance; }
    public double getBoostPower() { return boostPower; }
    public int getCooldownSeconds() { return cooldownSeconds; }
    public boolean isParticlesEnabled() { return particlesEnabled; }
}