B
📎 1 file 2,568 chars
📄
Plugin creation.txt
txt 1 lines
▶
The Paper Plugin Master PromptRole: You are a Senior Java Developer specializing in the PaperMC API (targeting version 1.20.1 or newer). Use the Adventure API for all chat, component, and scoreboard styling.Task: Write a Paper plugin that manages two teams: Team End and Team Nether.1. Team Systems & VisualsTeam End: Use NamedTextColor.GOLD (End Stone approximate) for TabList and Tag names.Team Nether: Use NamedTextColor.DARK_RED for TabList and Tag names.Glow Logic: If a Team End player is in World.Environment.NETHER, apply the Glow potion effect. If a Team Nether player is in World.Environment.THE_END, apply the Glow potion effect.Mob Neutrality: Use EntityTargetLivingEntityEvent. Cancel the event if a Nether mob targets a Nether player or an End mob targets an End player.2. Team End - "The Void Soarers"The Leap: If a player sneaks while their offhand is empty, launch them $100$ blocks up (adjust velocity vector).Equipment: Automatically equip an Elytra in the chest slot for 30 seconds upon leaping.Cooldown: 60-second cooldown. Display the remaining time in the ActionBar using a progress bar or countdown.Passive: Disable all fall damage for this team.3. Team Nether - "The Hell Walkers"Lava Frost Walker: When walking on Lava, convert it to Obsidian in a 5-block radius. Use a HashMap to track these blocks and a BukkitRunnable to revert them to Lava exactly 5 seconds later.Passive: Permanent Haste IV while in the Nether environment.World Gen: On ChunkLoadEvent in the Nether, have a small random chance to spawn a Crimson/Warped tree or a small "Ruined Portal" structure if the location is valid (air above netherrack).4. Commands & Data (Persistence)Implement /spawnend and /spawnnether (Permissions: teams.admin).Implement /tpne: Teleports all online players to their respective team spawn points.Storage: Save spawn locations and player team assignments to a config.yml so they persist through restarts.Technical Requirements:Use com.destroystokyo.paper and net.kyori.adventure packages.Optimize the Lava Walker logic to ensure it doesn't cause TPS drops.Use PersistentDataContainer where appropriate for player data.Why this prompt works for Paper:Adventure API: It skips the buggy ChatColor system and uses the modern standard for Paper.Velocity Math: It asks for vector adjustment, which is smoother for "launching" players 100 blocks up than just teleporting them.Resource Management: By mentioning ChunkLoadEvent and PersistentDataContainer, the AI knows to write code that won't lag your server when many players are online.
Kodari AI
KodariApr 13 at 9:52 am

I’ll create a Paper plugin with two competitive teams featuring unique abilities and environment-based mechanics.

TeamWarfare
A Paper plugin featuring two competitive teams (Team End and Team Nether) with unique abilities and passives. Team End can launch into the air with auto-equipping Elytra and immunity to fall damage. Team Nether can walk on lava and gains buffs in their environment. Includes glow effects when in enemy territory, mob neutrality, world generation enhancements, and persistent data storage for team assignments and spawn points.
B

also make team end also that if they do /gateway if they go trough a gateway they go to overworld also make trees spawn randomly in end and spawn with elytra and if die they die they drop all there items but keep the elytra

Kodari AI
KodariApr 13 at 9:56 am 14,333 (v2)

I’ll analyze the project and implement the requested features for the END team.

I’ll implement the requested features for Team END:

  1. Gateway teleportation to overworld

  2. Random tree spawning in the End

  3. Spawn with elytra

  4. Keep elytra on death

All features have been implemented for Team END:

  • /gateway command teleports END team to overworld

  • Gateway blocks automatically teleport END team when walked through

  • Chorus trees spawn randomly in the End (5% chance per chunk)

  • END team spawns with elytra on join/respawn

  • END team keeps elytra when dying (all other items drop)

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
19 1,332
src/main/java/com/teamwarfare/TeamWarfarePlugin.java
package com.teamwarfare;

import com.teamwarfare.command.GatewayCommand;
import com.teamwarfare.command.SpawnEndCommand;
import com.teamwarfare.command.SpawnNetherCommand;
import com.teamwarfare.command.TeleportTeamsCommand;
import com.teamwarfare.listener.EndAbilityListener;
import com.teamwarfare.listener.NetherAbilityListener;
import com.teamwarfare.listener.TeamListener;
import com.teamwarfare.listener.WorldGenListener;
import com.teamwarfare.manager.AbilityManager;
import com.teamwarfare.manager.ConfigManager;
import com.teamwarfare.manager.LavaWalkerManager;
import com.teamwarfare.manager.TeamManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class TeamWarfarePlugin extends JavaPlugin {
    private ConfigManager configManager;
    private TeamManager teamManager;
    private AbilityManager abilityManager;
    private LavaWalkerManager lavaWalkerManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.teamManager = new TeamManager(this);
        this.abilityManager = new AbilityManager(this);
        this.lavaWalkerManager = new LavaWalkerManager(this);
        
        registerListeners();
        registerCommands();
        
        getLogger().info("TeamWarfare plugin enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("TeamWarfare plugin disabled!");
    }
    
    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new TeamListener(this), this);
        getServer().getPluginManager().registerEvents(new EndAbilityListener(this), this);
        getServer().getPluginManager().registerEvents(new NetherAbilityListener(this), this);
        getServer().getPluginManager().registerEvents(new WorldGenListener(this), this);
    }
    
    private void registerCommands() {
        getCommand("spawnend").setExecutor(new SpawnEndCommand(this));
        getCommand("spawnnether").setExecutor(new SpawnNetherCommand(this));
        getCommand("tpne").setExecutor(new TeleportTeamsCommand(this));
        getCommand("gateway").setExecutor(new GatewayCommand(this));
    }
}