deadphantomyt

Create a lightweight Minecraft Java plugin for Paper 1.21.11 inspired by Glory SMP Season 2 with a complete custom fruit power system.

Core Requirements:

* Add a total of 11 custom fruits: Fire, Ice, Lightning, Wind, Shadow, Light, Earth, Water, Gravity, Toxic, and Darkness. * All fruits must be consumable items (right-click to eat). * Eating a fruit grants a permanent power to the player. * Each player can only have ONE fruit at a time. * If a player already has a fruit, they cannot consume another.

Abilities:

* Players can activate their fruit ability using SHIFT + RIGHT CLICK. * Each ability must have a 30-second cooldown. * Each fruit must include unique particle effects + sound effects for visual impact.

Fruit Abilities + Particles:

🔥 Fire Fruit:

* Explosion attack * Particles: FLAME, LAVA, SMOKE * Sound: Explosion

❄️ Ice Fruit:

* Slows enemies / freeze effect * Particles: SNOWFLAKE, CLOUD * Sound: Glass break / freeze

⚡ Lightning Fruit:

* Lightning strike at target * Particles: ELECTRIC_SPARK, FLASH * Sound: Thunder

🌪️ Wind Fruit:

* Dash forward * Particles: CLOUD, SWEEP_ATTACK * Sound: Whoosh

🌑 Shadow Fruit:

* Invisibility * Particles: SMOKE, PORTAL * Sound: Enderman teleport

✨ Light Fruit:

* Speed boost * Particles: END_ROD, GLOW * Sound: Beacon activate

🌍 Earth Fruit:

* Resistance / tank ability * Particles: BLOCK (dirt/stone), FALLING_DUST * Sound: Stone hit

🌊 Water Fruit:

* Water breathing / aquatic boost * Particles: BUBBLE, SPLASH * Sound: Water ambient

🌌 Gravity Fruit:

* High jump * Particles: PORTAL, DRAGON_BREATH * Sound: End portal

☠️ Toxic Fruit:

* Poisons nearby players * Particles: SPELL_MOB, VILLAGER_ANGRY * Sound: Witch throw

🌑 Darkness Fruit:

* Passive: Permanent Strength I * Ability: Domain Expansion:

* Applies blindness + slowness to nearby players * Radius: ~6 blocks * Particles: SMOKE, SOUL_FIRE_FLAME, DRAGON_BREATH (dark aura) * Sound: Wither spawn

Commands:

  1. /withdraw <fruit>

* Gives the player a specific fruit item

  1. /startsmp

* Starts the SMP * Gives all players one random fruit * Automatically activates their power * Broadcast start message

PvP System (Fruit Stealing):

* Player kills player:

* Victim drops their fruit * Victim loses power * Non-PvP death:

* No fruit drop

Gameplay Rules:

* Fruits can be dropped normally * Permanent power system * One fruit per player only

Technical Requirements:

* Clean modular Java structure:

* Main class * Fruit listener * Death listener * Commands * Data manager * Use Paper API 1.21 * Add null checks (no crashes) * Keep plugin lightweight

Goal:

Create a visually rich, PvP-focused SMP plugin with strong abilities, particle effects, and a fruit-stealing system similar to Glory SMP.

Kodari AI
KodariApr 25 at 3:51 am 10,962 (v2)

I’ll create a Glory SMP-inspired fruit power system with 11 unique fruits, abilities, particle effects, and PvP fruit-stealing mechanics.

GloryFruits
A Glory SMP-inspired fruit power system with 11 unique fruits including Fire, Ice, Lightning, Wind, Shadow, Light, Earth, Water, Gravity, Toxic, and Darkness. Players consume fruits to gain permanent abilities activated via SHIFT + RIGHT CLICK with 30-second cooldowns. Features PvP fruit-stealing mechanics where killing a player drops their fruit, rich particle effects, sound effects, and special abilities like domain expansion for the Darkness fruit.

Perfect! I’ve created a complete Glory SMP-inspired fruit power system with all requested features:

Core Features: ✅ 11 unique fruits (Fire, Ice, Lightning, Wind, Shadow, Light, Earth, Water, Gravity, Toxic, Darkness) ✅ One fruit per player restriction ✅ SHIFT + RIGHT CLICK to activate abilities ✅ 30-second cooldown system ✅ Rich particle effects and sounds for each fruit ✅ PvP fruit-stealing (fruit drops on player kill) ✅ /withdraw <fruit> command for admins ✅ /startsmp command to distribute random fruits to all players

Unique Abilities:

  • 🔥 Fire: Explosion attack

  • ❄️ Ice: Freeze enemies

  • ⚡ Lightning: Lightning strike

  • 🌪️ Wind: Dash forward

  • 🌑 Shadow: Invisibility

  • ✨ Light: Speed boost

  • 🌍 Earth: Resistance tank

  • 🌊 Water: Aquatic powers

  • 🌌 Gravity: High jump

  • ☠️ Toxic: Poison aura

  • 🌑 Darkness: Passive Strength I + Domain Expansion (blindness/slowness aura)

The plugin uses XSeries for cross-version compatibility, features clean modular architecture, and includes proper null checks throughout. All abilities have visual particle effects and unique sounds!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
9 651
src/main/java/com/gloryfruits/GloryFruits.java
package com.gloryfruits;

import com.gloryfruits.command.StartSMPCommand;
import com.gloryfruits.command.WithdrawCommand;
import com.gloryfruits.fruit.FruitManager;
import com.gloryfruits.listener.DeathListener;
import com.gloryfruits.listener.FruitListener;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class GloryFruits extends JavaPlugin {
    
    private FruitManager fruitManager;
    
    @Override
    public void onEnable() {
        this.fruitManager = new FruitManager();
        
        getCommand("withdraw").setExecutor(new WithdrawCommand(this));
        getCommand("startsmp").setExecutor(new StartSMPCommand(this));
        
        Bukkit.getPluginManager().registerEvents(new FruitListener(this), this);
        Bukkit.getPluginManager().registerEvents(new DeathListener(this), this);
        
        getLogger().info("GloryFruits has been enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("GloryFruits has been disabled!");
    }
    
    public FruitManager getFruitManager() {
        return fruitManager;
    }
}