rogalskip3-rgb
📎 1 file 1,222 chars
📄
pasted-code-1771134822098.txt
txt 28 lines
▶
Create a full Minecraft Spigot 1.21.4 plugin named "Lotnia" that does exactly the following:

1. Player steps on a pressure plate (allow setting any block as a jump pad via command).
2. When stepping on the pad:
   - player is launched into the air (launch velocity configurable via command / config)
   - automatically activates a glider
   - the glider is implemented using:
     - an invisible chicken that the player sits on
     - two white banners on the sides as wings
     - player cannot dismount manually
3. Upon touching any block on the ground:
   - glider automatically deactivates
   - chicken and banners are removed
4. Plugin config allows setting:
   - launch velocity
   - glider forward speed
   - glider vertical speed
   - banner colors
5. Plugin provides a command: /lotnia   to change launch and flight parameters
6. All features are built into a single JAR, ready to drop into Paper/Spigot 1.21.4
7. Plugin registers all necessary events and works independently, no additional plugins required
8. plugin.yml should have:
   - name: Lotnia
   - version: 1.0
   - api-version: 1.21

Provide the complete Java code for the plugin, ready to compile and run.
Kodari AI
KodariFeb 15 at 5:54 am 8,524 (v2)

I’ll create a complete Minecraft glider plugin called “Lotnia” with launch pads and a rideable glider system.

Lotnia
A glider plugin that launches players into the air from pressure plates and activates an automatic glider system. Players ride an invisible chicken with banner wings that can be controlled mid-flight. Features configurable launch pads, flight mechanics, and customizable banner colors. Glider automatically deactivates upon landing.

Plugin complete! The Lotnia glider system features:

Core Features:

  • Step on any pressure plate to launch into the air

  • Automatic glider activation with invisible chicken mount and banner wings

  • Player can control direction by looking around while gliding

  • Glider auto-deactivates on ground contact

  • Configurable launch pads, speeds, and banner colors

  • Admin command /lotnia <height> <forward> to adjust flight parameters

Technical Implementation:

  • Uses XSeries for 1.21.4 compatibility

  • Invisible chicken as vehicle with disabled AI

  • Two armor stands with banners positioned as wings

  • Real-time wing positioning using vector math

  • Prevents manual dismount during flight

  • Automatic cleanup on landing or disconnect

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
9 460
src/main/java/com/lotnia/Lotnia.java
package com.lotnia;

import com.lotnia.command.LotniaCommand;
import com.lotnia.listener.LaunchListener;
import com.lotnia.manager.ConfigManager;
import com.lotnia.manager.GliderManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class Lotnia extends JavaPlugin {
    private ConfigManager configManager;
    private GliderManager gliderManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.gliderManager = new GliderManager(this);
        
        Bukkit.getPluginManager().registerEvents(new LaunchListener(this), this);
        
        getCommand("lotnia").setExecutor(new LotniaCommand(this));
        
        getLogger().info("Lotnia plugin enabled!");
    }
    
    @Override
    public void onDisable() {
        if (gliderManager != null) {
            gliderManager.removeAllGliders();
        }
        getLogger().info("Lotnia plugin disabled!");
    }
}