Crudevase

Develop a Minecraft plugin that implements a custom flight system activated by the "/fly" command, allowing players to toggle flight mode with intuitive controls simulating Creative Mode. Ensure smooth movement relative to the player's camera direction, supporting simultaneous key presses for diagonal movement, with configurable flight speed and permission checks. Include user-friendly messages for state changes, ensure compatibility with standard Bukkit APIs for maximum server version support, and provide comprehensive configuration management along with complete source code and testing instructions.

Kodari AI
KodariOct 5 at 5:34 pm 1
FlySystem
Implements a custom flight system for Minecraft servers via the "/fly" command, enabling players to toggle flight mode with Creative Mode-like controls. Features smooth movement relative to camera direction, supporting simultaneous key presses for diagonal movement, configurable flight speed, and permission checks. Includes user-friendly state change messages, compatibility with standard Bukkit APIs for broad server version support, comprehensive configuration management, and complete source code with testing instructions.
  1. Create the Paper 26.2 project setup and plugin metadata.

  2. Implement /fly with configurable speed, permission checks, configurable messages, and restoration of each player’s prior flight settings.

  3. Provide concise in-game testing steps. No NMS is needed: Bukkit’s flight ability already supplies camera-relative movement and diagonal key input.

Implemented KodariFly for Paper 26.2. It uses Bukkit’s built-in flight controls for camera-relative movement and diagonal input; /fly also restores the player’s previous flight permissions and speed when turned off. Speed and messages are configurable in config.yml, and kodarifly.use defaults to operators.

Test it: Compile the project in Kodari (desktop: Compile; phone: ⋮ → Compile Project), then click Compile and download the jar. Install it on a Paper 26.2 server and restart. As an operator, run /fly; test movement with your view direction, diagonal movement, jump, and sneak. Run /fly again to turn it off. Change flight-speed in config.yml and restart to try a different speed.

Crudevase

ZERO-COST AI — MASTER IMPLEMENTATION DIRECTIVE

Target: Windows + Android | Desktop-first | Tauri 2

Act as the principal software architect and senior engineering team.

Build the ZeroCostAI application using the approved architecture.

PLATFORM REQUIREMENTS

  1. Windows is the primary AI workstation.
  2. Android is a companion application with optional independent local inference.
  3. Use Tauri 2, React, TypeScript and Python FastAPI.
  4. Use SQLite for local databases.
  5. Use Rust/Kotlin native adapters where necessary.
  6. Build Windows installers in EXE and MSI formats.
  7. Build Android APK independently.
  8. Share frontend components and business logic wherever technically appropriate.

ARCHITECTURE RULES

  • Keep AI providers independent.
  • Keep frontend independent of model providers.
  • Implement provider capability discovery.
  • Implement hardware-aware model selection.
  • Implement local background job processing.
  • Implement persistent task status.
  • Implement safe cancellation.
  • Implement secure Android-to-Windows pairing.
  • Never expose unauthenticated model endpoints.
  • Do not require cloud accounts.

FREE-FIRST RULES

No paid API dependencies, mandatory subscriptions, paid credits, forced upgrades or application-added watermarks.

Never silently introduce cloud dependencies.

External services must always be optional and clearly identified.

Software must remain usable offline for supported local features.

DEVELOPMENT ORDER

Follow this exact order:

  1. Inspect available development environment.
  2. Create architecture documentation.
  3. Audit dependencies and their licenses.
  4. Initialize the monorepo.
  5. Build the desktop UI.
  6. Build FastAPI backend.
  7. Implement SQLite.
  8. Integrate Ollama.
  9. Integrate llama.cpp.
  10. Implement hardware detection.
  11. Implement model management.
  12. Integrate ComfyUI.
  13. Integrate Piper.
  14. Implement video workflows.
  15. Implement Android companion.
  16. Implement secure pairing.
  17. Implement installers.
  18. Run acceptance tests.

TESTING RULES

Every module must have real tests.

Test actual model inference rather than mocked responses.

Test offline behavior with network access disabled.

Test missing GPU conditions.

Test insufficient RAM and disk space.

Test interrupted generation and recovery.

Test Android pairing and authorization.

Test clean Windows installation.

Test Android installation on a supported device.

Maintain a report containing:

  • Test name
  • Environment
  • Expected result
  • Actual result
  • PASS / FAIL
  • Remaining limitations

MODEL POLICY

Maintain an exact model/version/license registry.

Do not mark models as verified without official license evidence.

Never bundle models with unclear redistribution permissions.

CODE QUALITY

  • No fake functionality.
  • No placeholder implementation presented as complete.
  • No hardcoded secrets.
  • No unsafe file access.
  • No unauthenticated LAN endpoints.
  • No silent error suppression.
  • No unnecessary dependencies.
  • No artificial application feature restrictions.

DELIVERY

Produce complete source code, installation scripts, documentation, Windows installers and Android APK.

Do not claim successful builds until actual builds have been executed.

Start with Phase 1 only.

First inspect the environment and report:

  1. Available tools and SDKs.
  2. Required dependencies.
  3. Architecture diagram.
  4. Repository structure.
  5. Platform-specific risks.
  6. Licensing risks.
  7. Phase 1 implementation plan.

Then implement Phase 1 and verify it before moving forward.

Kodari AI
KodariOct 31 at 3:30 pm 1
  1. Inspect the current workspace and available toolchain.

  2. Report the requested architecture, repo shape, and platform/licensing risks as Phase 1 findings.

  3. Implement only Phase 1’s inspection/report artifact and verify it; don’t initialize the monorepo or start later phases.

Phase 1 is complete. I added docs/PHASE1_ENVIRONMENT_REPORT.md with the environment inventory, provisional architecture diagram, proposed repository structure, dependency requirements, platform and licensing risks, and Phase 1 verification result.

  1. Available tools: Linux x86_64 shell, Git, Python 3.12, and the Turso sqlite3 CLI. Node.js, Rust/Cargo, Tauri CLI, pip, FastAPI, Android SDK tools, Java/Gradle, and Windows build tools were not found on PATH.

  2. Required dependencies: The report lists the toolchains needed for the React/TypeScript + Tauri app, FastAPI backend, SQLite, Android adapters, local runtimes, and Windows installers. These are planned requirements, not installed or audited dependencies.

  3. Architecture: The report describes shared frontend packages, a Windows Tauri host and local FastAPI backend, SQLite-backed jobs, provider adapters, and an Android companion with optional local inference. LAN pairing is opt-in and authenticated.

  4. Repository structure: A proposed monorepo layout is included; it has not been initialized.

  5. Platform risks: Windows packaging, hardware variability, offline operation, job recovery, Android device limits, and pairing security are documented.

  6. Licensing risks: No dependencies or models are marked verified. The report calls out the need to audit exact versions, transitive licenses, and model/voice redistribution terms.

  7. Phase 1 verification: The workspace is currently a clean Paper 26.2 plugin project, not a ZeroCostAI repository. I verified the report exists and contains all requested sections. No ZeroCostAI code, installers, APKs, or inference tests were built; work stopped before Phase 2 as requested.

Kodari can make mistakes. Review important code before using.
Files
docs
src
build.gradle
settings.gradle
Code
6 289
src/main/java/dev/kodari/kodarifly/FlyPlugin.java
package dev.kodari.kodarifly;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.plugin.java.JavaPlugin;

public final class FlyPlugin extends JavaPlugin implements CommandExecutor, Listener {
    private final Map<UUID, FlightState> activeFlights = new HashMap<>();

    @Override
    public void onEnable() {
        saveDefaultConfig();
        getCommand("fly").setExecutor(this);
        getServer().getPluginManager().registerEvents(this, this);
    }

    @Override
    public void onDisable() {
        for (Player player : Bukkit.getOnlinePlayers()) {
            FlightState previousState = activeFlights.remove(player.getUniqueId());
            if (previousState != null) {
                restoreFlightState(player, previousState);
            }
        }
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (!(sender instanceof Player player)) {
            sendMessage(sender, "messages.player-only", "&cOnly players can use this command.");
            return true;
        }

        if (!player.hasPermission("kodarifly.use")) {
            sendMessage(sender, "messages.no-permission", "&cYou do not have permission to use /fly.");
            return true;
        }

        if (args.length != 0) {
            sendMessage(sender, "messages.usage", "&cUsage: /fly");
            return true;
        }

        UUID playerId = player.getUniqueId();
        FlightState previousState = activeFlights.remove(playerId);
        if (previousState != null) {
            restoreFlightState(player, previousState);
            sendMessage(player, "messages.disabled", "&eFlight disabled.");
            return true;
        }

        activeFlights.put(playerId, FlightState.capture(player));
        player.setFlySpeed(configuredFlightSpeed());
        player.setAllowFlight(true);
        player.setFlying(true);
        sendMessage(player, "messages.enabled", "&aFlight enabled.");
        return true;
    }

    @EventHandler
    public void onPlayerQuit(PlayerQuitEvent event) {
        Player player = event.getPlayer();
        FlightState previousState = activeFlights.remove(player.getUniqueId());
        if (previousState != null) {
            restoreFlightState(player, previousState);
        }
    }

    private float configuredFlightSpeed() {
        double speed = getConfig().getDouble("flight-speed", 0.1D);
        if (!Double.isFinite(speed)) {
            speed = 0.1D;
        }
        return (float) Math.max(0.0D, Math.min(1.0D, speed));
    }

    private void restoreFlightState(Player player, FlightState state) {
        player.setFlying(false);
        player.setAllowFlight(state.allowFlight());
        if (state.allowFlight()) {
            player.setFlying(state.flying());
        }
        player.setFlySpeed(state.flySpeed());
    }

    private void sendMessage(CommandSender sender, String path, String defaultMessage) {
        String message = getConfig().getString(path, defaultMessage);
        sender.sendMessage(ChatColor.translateAlternateColorCodes('&', message));
    }

    private record FlightState(boolean allowFlight, boolean flying, float flySpeed) {
        private static FlightState capture(Player player) {
            return new FlightState(player.getAllowFlight(), player.isFlying(), player.getFlySpeed());
        }
    }
}