S

создай плагин 26.2 paper java 25, в этом плагине каждые 3 часа или по команду запускаеться эвент Гуманоиды, в этом эвенте спавняться 10 НЛО на разных координатах, около каждого нло по 5 пришелцев со своей моделью и текстурой, у них хп как у голема только в 2 раза меньше, когда ты убиваешь последнего пришельца, а урон у них 0.5 хп, выпадает ключ карта, и ты можешь зайти в нло, в нло интерьер и сундук с лутом, в сундуке может быть

золотой слиток и железный слиток; изумруд, аметист, алмаз и другие драгоценные камни/кристаллы; зачарованная книга; золотое яблоко и золотая морковь; соты и блок мёда; инструменты (например, кирка); красный камень (редстоун) и прочие ресурсы.

ключ карта в каждом нло разная

Kodari AI
KodariJul 23 at 2:10 pm 3

I’ll create the HumanoidsEvent plugin — a Paper 1.21+ event system where UFOs with aliens spawn every 3 hours, players fight them, collect key cards, and loot UFO interiors.

HumanoidsEvent
A Paper 1.21+ event plugin where UFOs with armed aliens spawn across the world every 3 hours or on command. Each UFO has 5 aliens (50 HP, 0.5 damage) with custom models. Killing all aliens drops a unique key card to enter the UFO interior with a loot chest containing gold, iron, emeralds, amethysts, diamonds, enchanted books, golden apples, honey blocks, tools, redstone, and more.

Let me create all 12 files:

S

The compilation failed with this error:

code
Compilation failed with 1 error(s):

ERROR in src/main/java/com/humanoidevent/interior/UFOInterior.java at line 12: ';' expected
import org.bukkit.block.data.type.Chest as ChestData;
                                       ^


=== COMPILATION ERROR ANALYSIS ===

SYNTAX ERRORS:
  - Line 12: ';' expected
ACTION: Check for missing semicolons or brackets

FILES TO INVESTIGATE:
  - src/main/java/com/humanoidevent/interior/UFOInterior.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariJul 23 at 2:11 pm 1

Java doesn’t support import ... as .... Removing the unused import.

S

Сделай чтобы писали координаты этих 10 нло

Kodari AI
KodariJul 23 at 2:21 pm 1

Готово. Теперь при запуске события в чат выводятся координаты всех 10 НЛО в формате:

Plain Text
[Гуманоиды] Событие началось! Координаты НЛО:
  НЛО #1: 123, 64, -456
  НЛО #2: 789, 72, 101
  ...
  НЛО #10: -234, 68, 567
S

сделай чтобы зомби не уходили далеко от нло, с ник карта не падает, и можно снять майк с манекена нло, и сделай чтобы нло стоялала на земле, и когда ты использовал ключ карту на нло ПКМ, спавнилсяя сундук с рандом лутом который я писал выше

Kodari AI
KodariJul 23 at 2:40 pm 3

Now I understand all the files. Let me implement all the changes:

  1. Aliens stay near UFO — add a tether task

  2. Key card given directly to player — not dropped on ground

  3. Remove “майк” (chestplate) from UFO armor stand — visible, with removable chestplate

  4. UFO on ground — armor stand at ground level

  5. Right-click UFO with key card → spawns loot chest at the UFO location

Now let me update UFOEntity — on ground, visible with chestplate, and key card goes to killerLet me rewrite the entire file with all changes:

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
12 1,202
src/main/java/com/humanoidevent/HumanoidsEventPlugin.java
package com.humanoidevent;

import com.humanoidevent.command.HumanoidEventCommand;
import com.humanoidevent.listener.EventListener;
import com.humanoidevent.manager.EventManager;
import com.humanoidevent.manager.KeyCardManager;
import com.humanoidevent.manager.LootManager;

import org.bukkit.plugin.java.JavaPlugin;

public class HumanoidsEventPlugin extends JavaPlugin {

    private EventManager eventManager;
    private KeyCardManager keyCardManager;
    private LootManager lootManager;

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

        this.keyCardManager = new KeyCardManager(this);
        this.lootManager = new LootManager(this);
        this.eventManager = new EventManager(this);

        getCommand("humanoidevent").setExecutor(new HumanoidEventCommand(this));
        getServer().getPluginManager().registerEvents(new EventListener(this), this);

        eventManager.startTimer();

        getLogger().info("HumanoidsEvent включён!");
    }

    @Override
    public void onDisable() {
        if (eventManager != null) {
            eventManager.stopEvent();
        }
        getLogger().info("HumanoidsEvent выключен!");
    }

    public void reloadPluginConfig() {
        reloadConfig();
    }

    public EventManager getEventManager() {
        return eventManager;
    }

    public KeyCardManager getKeyCardManager() {
        return keyCardManager;
    }

    public LootManager getLootManager() {
        return lootManager;
    }
}