Obed Lazo

26.2 spigot, make ghasts spawn on the overworld in oceans and sky, idk if theres a biome that defines sky, make their fireballs break no blocks, but the fireball impact deals blindness 25s, nausea 10 25s, and wither 50 5s, make withers skeletons spawn in every biome in the overworld, with full netherite protection 5, unbreaking 7, they can drop they're armor, and piglin brutes in every biome of the end and overworld, same armor as wther skeletons, withers skeletons with netherite swords sharpness 15, piglin brutes with netherite axessharpness 15, Ravagers with strength 25 in all biomes, with a wither skeleton on top of them with full netherite protection 5, and unbreaking 7, with bows with punch 5 and power 75, make the wither, piglin brute, ghast, and ravager, spawn rarely

Kodari AI
KodariOct 26 at 2:18 am 1
ApocalypticMobs
Enhances Minecraft overworld and end biomes with rare, powerful mob spawns. Ghasts spawn in oceans and sky areas, their fireballs break no blocks but inflict blindness, nausea, and wither on impact. Wither skeletons spawn everywhere in the overworld wearing full netherite armor with protection 5 and unbreaking 7, wielding sharpness 15 netherite swords, and can drop their gear. Piglin brutes appear in all end and overworld biomes with identical armor and sharpness 15 axes. Ravagers with strength 25 spawn in all biomes, carrying wither skeleton riders equipped with punch 5 power 75 bows. All these mobs spawn rarely for challenging encounters.
  • Create the Spigot 26.2 Gradle project and plugin metadata.

  • Add rare, configurable spawning for the requested mobs and equip them as specified.

  • Make custom ghast fireballs harmless to blocks and apply the requested impact effects.

Created RareWorldMobs for Spigot 26.2. It adds configurable rare spawns for the requested mobs, equips skeletons and brutes with the specified gear, and gives ravagers a strength-25 wither-skeleton rider. Brutes are protected from zombification so they remain brutes in the Overworld.

Custom ghasts spawn over oceans or at high altitude. Their fireballs leave blocks intact and apply blindness for 25 seconds, nausea X for 25 seconds, and wither L for 5 seconds to nearby living entities.

Obed Lazo

make a plugin spigot 26.2, make enchantments never stop stacking in the anvil, like two protection 4 will give a protection 5, or two fortune 3 give fortune 4, make this work only with tools, excluding enchanting books'

Kodari AI
KodariOct 26 at 5:10 am 1
  • Replace the mob plugin behavior with an anvil listener for gear items (never enchanted books).

  • Allow equal enchantment levels to combine into the next level repeatedly, beyond the enchantment’s normal cap.

  • Update the plugin metadata and remove the obsolete mob-spawn configuration.

Updated the plugin to let equal enchantments on matching gear combine into the next level, even above their normal cap—for example, Protection IV + IV → V. This supports armor, tools, and weapons, but excludes enchanted books.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
3 118
src/main/java/com/kodari/rareworldmobs/RareWorldMobsPlugin.java
package com.kodari.rareworldmobs;

import org.bukkit.enchantments.Enchantment;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.PrepareAnvilEvent;
import org.bukkit.inventory.AnvilInventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.Map;
import java.util.Set;

public final class RareWorldMobsPlugin extends JavaPlugin implements Listener {
    private static final Set<String> GEAR_TYPES = Set.of(
            "BOW", "CROSSBOW", "TRIDENT", "FISHING_ROD", "SHIELD", "MACE", "ELYTRA",
            "SHEARS", "FLINT_AND_STEEL", "CARROT_ON_A_STICK", "WARPED_FUNGUS_ON_A_STICK"
    );

    @Override
    public void onEnable() {
        getServer().getPluginManager().registerEvents(this, this);
    }

    @EventHandler
    public void onPrepareAnvil(PrepareAnvilEvent event) {
        AnvilInventory inventory = event.getInventory();
        ItemStack left = inventory.getItem(0);
        ItemStack right = inventory.getItem(1);
        if (!isGear(left) || !isGear(right) || !left.getType().equals(right.getType())) {
            return;
        }

        boolean hasEqualEnchantment = right.getEnchantments().entrySet().stream()
                .anyMatch(entry -> left.getEnchantmentLevel(entry.getKey()) == entry.getValue());
        if (!hasEqualEnchantment) {
            return;
        }

        ItemStack result = event.getResult() == null ? left.clone() : event.getResult().clone();
        ItemMeta meta = result.getItemMeta();
        if (meta == null) {
            return;
        }

        for (Map.Entry<Enchantment, Integer> entry : right.getEnchantments().entrySet()) {
            int leftLevel = left.getEnchantmentLevel(entry.getKey());
            if (leftLevel == 0) {
                if (event.getResult() == null) {
                    meta.addEnchant(entry.getKey(), entry.getValue(), true);
                }
                continue;
            }

            int rightLevel = entry.getValue();
            int combinedLevel = leftLevel == rightLevel
                    ? leftLevel + 1
                    : Math.max(leftLevel, rightLevel);
            if (combinedLevel > meta.getEnchantLevel(entry.getKey())) {
                meta.addEnchant(entry.getKey(), combinedLevel, true);
            }
        }

        result.setItemMeta(meta);
        event.setResult(result);
        if (inventory.getRepairCost() < 1) {
            inventory.setRepairCost(1);
        }
    }

    private boolean isGear(ItemStack item) {
        if (item == null || item.getType().isAir()) {
            return false;
        }
        String type = item.getType().name();
        return type.endsWith("_PICKAXE")
                || type.endsWith("_AXE")
                || type.endsWith("_SHOVEL")
                || type.endsWith("_HOE")
                || type.endsWith("_SWORD")
                || type.endsWith("_HELMET")
                || type.endsWith("_CHESTPLATE")
                || type.endsWith("_LEGGINGS")
                || type.endsWith("_BOOTS")
                || GEAR_TYPES.contains(type);
    }
}