Kacper Drelich

make ma 1.20.1 plugin for paper for /givejajko and this drop u player head like egg and if u place this drop a random item what u put in /jajkogui

Kodari AI
KodariSep 12 at 8:04 pm 1
EasterEggDrop
A Paper 1.20.1 plugin enabling players to use /givejajko to obtain a special egg-shaped player head. When placed, this egg drops a random item configured by the player through /jajkogui, which opens a GUI to select and store items for the egg's random drop pool. The plugin handles head creation, placement detection, and random item dispensing.
  1. Create the Gradle Paper 1.20.1 project and plugin metadata.

  2. Implement the custom egg item and /givejajko.

  3. Add /jajkogui loot storage with persistent item serialization.

  4. Handle egg placement by consuming the head and dropping a random configured item.

Created the Paper 1.20.1 Jajko plugin.

Features:

  • /givejajko [amount] gives custom player-head eggs.

  • /jajkogui opens a 54-slot loot editor.

  • Items placed in the GUI are saved to config.yml.

  • Placing a Jajko egg consumes it and drops one random configured item.

  • Creative players keep their egg.

  • Includes Gradle setup, Paper API, XSeries, plugin.yml, and configuration.

Kacper Drelich

give me this plugin 1 more time

Kodari AI
KodariSep 17 at 6:40 pm 1

The plugin is available again in the project:

  • /givejajko [amount] — gives the custom egg player head.

  • /jajkogui — opens the loot configuration GUI.

  • Place items in the GUI to add them to the random loot pool.

  • Place the custom egg to receive one random configured item.

  • Loot is saved in config.yml.

Source files are located in:

Plain Text
src/main/java/com/kodari/jajko/
src/main/resources/plugin.yml
src/main/resources/config.yml
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
11 383
src/main/java/com/kodari/jajko/JajkoPlugin.java
package com.kodari.jajko;

import com.kodari.jajko.command.GiveJajkoCommand;
import com.kodari.jajko.command.JajkoGuiCommand;
import com.kodari.jajko.listener.EggPlaceListener;
import com.kodari.jajko.loot.LootManager;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;

public final class JajkoPlugin extends JavaPlugin {

    private NamespacedKey eggKey;
    private LootManager lootManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        eggKey = new NamespacedKey(this, "jajko_egg");
        lootManager = new LootManager(this);

        getServer().getPluginManager().registerEvents(new EggPlaceListener(this), this);
        getCommand("givejajko").setExecutor(new GiveJajkoCommand(this));
        getCommand("jajkogui").setExecutor(new JajkoGuiCommand(this));
    }

    public NamespacedKey getEggKey() {
        return eggKey;
    }

    public LootManager getLootManager() {
        return lootManager;
    }
}