zezusta123

create a plugin that i can fly bees with like pig mechanic so when i click ctrl or shift idk what is it it gives a boost make the bees be 50% faster than sprinting

Kodari AI
KodariMay 26 at 2:07 pm 6,316 (v2)

I’ll create a bee riding plugin with boost mechanics similar to the old pig riding system.

BeeRider
A fun plugin that lets players ride and control bees in flight. Right-click bees with a flower to mount them and fly around at speeds 50% faster than sprinting. Press shift to activate a turbo boost that propels you forward with particle effects. Features configurable speed settings, boost cooldowns, and flight controls. Perfect for adding a unique transportation method to your server.

Now I’ll create the plugin files:

Perfect! I’ve created BeeRider - a bee riding plugin with the following features:

Core Mechanics:

  • Right-click bees with a flower (dandelion by default) to mount them

  • Bees fly at 1.5x speed (50% faster than sprinting)

  • Press SHIFT while riding to activate a turbo boost (2.5x speed)

  • Look up/down to control altitude

  • Smooth flight controls with particle effects during boost

Features:

  • Boost cooldown system (60 ticks default)

  • Fall damage immunity while riding

  • Bee damage immunity when being ridden

  • Sound effects and particle trails during boost

  • Fully configurable speeds, cooldowns, and messages

  • Permission system (beerider.ride, beerider.boost)

  • /beerider reload command for live config updates

The bee flies continuously and smoothly based on where you look, with vertical controls for ascending/descending. The shift key triggers the speed boost with cool particle effects!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
6 437
src/main/java/com/beerider/BeeRider.java
package com.beerider;

import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;

public class BeeRider extends JavaPlugin {

    private BeeRideListener rideListener;

    @Override
    public void onEnable() {
        // Save default config
        saveDefaultConfig();

        // Register listener
        rideListener = new BeeRideListener(this);
        getServer().getPluginManager().registerEvents(rideListener, this);

        getLogger().info("BeeRider has been enabled!");
    }

    @Override
    public void onDisable() {
        // Clean up active riders
        if (rideListener != null) {
            rideListener.cleanup();
        }

        getLogger().info("BeeRider has been disabled!");
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (command.getName().equalsIgnoreCase("beerider")) {
            if (args.length > 0 && args[0].equalsIgnoreCase("reload")) {
                if (!sender.hasPermission("beerider.admin")) {
                    sender.sendMessage(color("&cYou don't have permission to use this command!"));
                    return true;
                }

                reloadConfig();
                if (rideListener != null) {
                    rideListener.reloadSettings();
                }
                sender.sendMessage(color(getConfig().getString("messages.config-reloaded", "&aConfiguration reloaded!")));
                return true;
            } else {
                sender.sendMessage(color("&e&lBeeRider &7v" + getDescription().getVersion()));
                sender.sendMessage(color("&7Use a flower to ride bees and shift to boost!"));
                sender.sendMessage(color("&7/beerider reload &8- &7Reload configuration"));
                return true;
            }
        }
        return false;
    }

    /**
     * Translate color codes
     */
    public String color(String message) {
        return ChatColor.translateAlternateColorCodes('&', message);
    }
}