Leo Marin

a dimension under the void similar to the far lands from earlier minecraft where you can only go by splashing yourself with invisibility and going through the void in the overworld when you kill your void self( a version of your skin in black and white where only you can see it and only one spawns of the first player to go down to the void dimension) drops a void slasher a sword equal to a sharpness five netherite sword with strength v with a texture similar to a Spartiate LARP Sword

Kodari AI
KodariNov 15 at 6:58 pm 2
VoidRealmSlasher
Adds a hidden dimension beneath the overworld's void, accessible only by becoming invisible and descending through the void after defeating your personal void self—a black-and-white doppelganger visible only to you, spawning once for the first player to enter. Defeating it drops the Void Slasher, a custom sword with sharpness V and strength V, featuring a Spartiate LARP-inspired texture, enabling further void exploration.

I’ll build the void dimension, entry mechanic, one-time boss and sword. The boss’s monochrome skin and the sword’s custom texture need art assets; I’ll use in-game approximations for now.

Created the void dimension, self-splashed invisibility entry, one-time private boss, and Void Slasher.

The boss currently uses your normal player head rather than a black-and-white skin, and the sword uses the netherite texture. To create those custom assets, enable Kodari Studio in Settings → Generation, or for all projects at https://kodari.ai/settings?tab=features.

Leo Marin

could you make the void self instead an all black skin model with the health of a warden and make the death say it for all in chat that the player has killed there void self and the death sound of a wither play for every player on the server and make when holding the sword have a black trail behind you and make only one void self spawn for the server ever and make no other mobs spawn there and make a little sword icon next to the players name in the tab list when they have the sword in there inventory and make the sword unbreakable and make it so when you crouch and double click your right mouse button a shockwave blast all entities 5 blocks away that are in a 5 block radius

Kodari AI
KodariNov 15 at 7:44 pm 3
  1. Update the Void Self’s appearance, health, one-time spawn, and death announcement.

  2. Block other mobs in the dimension and add the sword’s trail, tab icon, durability, and shockwave.

Updated the Void Self and Void Slasher with the requested health, server-wide death announcement and sound, one-time spawn, mob-spawn restriction, trail, tab icon, unbreakability, and crouch-double-right-click shockwave.

The Void Self uses black armor and a black block head as an approximation, not a true black player skin. Custom art is available if you enable Kodari Studio under Settings → Generation, or for all projects at https://kodari.ai/settings?tab=features.

Leo Marin

i fixed the setting can you fix the model for the void self now

Kodari AI
KodariNov 15 at 7:46 pm 7

Created the all-black skin at src/main/resources/void-self-skin.png.

It isn’t applied to the Void Self yet: the boss is currently a zombie, and a PNG alone can’t give it a player model. Applying it requires a player-NPC system and a skin profile.

Leo Marin

how would i do that

Kodari AI
KodariNov 15 at 9:45 pm 1

Use a player-NPC plugin such as Citizens to give the Void Self a player-shaped model. Then assign it an all-black Minecraft skin through a valid skin profile.

The PNG in your project can’t be applied directly to a player model: Minecraft clients need a skin profile pointing to a hosted skin texture. One way to get that profile is to upload the PNG to a Minecraft account and use that account’s skin for the NPC.

I can update this plugin to use Citizens for the Void Self while preserving its private visibility, health, and one-time spawn. You’d need Citizens installed on the server and a Minecraft account with the black skin applied.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
5 386
src/main/java/com/kodari/voiddimension/VoidDimensionPlugin.java
package com.kodari.voiddimension;

import com.cryptomorin.xseries.XEnchantment;
import com.cryptomorin.xseries.XMaterial;
import com.cryptomorin.xseries.XPotion;
import com.cryptomorin.xseries.XSound;
import com.cryptomorin.xseries.XAttribute;
import com.cryptomorin.xseries.particles.XParticle;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Color;
import org.bukkit.Location;
import org.bukkit.NamespacedKey;
import org.bukkit.Particle;
import org.bukkit.World;
import org.bukkit.WorldCreator;
import org.bukkit.attribute.AttributeModifier;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.entity.Zombie;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.event.entity.EntityDeathEvent;
import org.bukkit.event.entity.EntityTargetLivingEntityEvent;
import org.bukkit.event.entity.PotionSplashEvent;
import org.bukkit.event.entity.CreatureSpawnEvent;
import org.bukkit.event.block.Action;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.event.world.ChunkLoadEvent;
import org.bukkit.inventory.EquipmentSlot;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.inventory.meta.LeatherArmorMeta;
import org.bukkit.persistence.PersistentDataType;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.potion.PotionEffect;
import org.bukkit.projectiles.ProjectileSource;
import org.bukkit.util.Vector;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

public final class VoidDimensionPlugin extends JavaPlugin implements Listener {
    private final Map<UUID, Long> splashed = new HashMap<>();
    private final Map<UUID, Long> rightClicks = new HashMap<>();
    private final Map<UUID, Long> shockwaveCooldown = new HashMap<>();
    private final Map<UUID, String> originalTabNames = new HashMap<>();
    private World voidWorld;
    private NamespacedKey ownerKey;
    private NamespacedKey swordKey;
    private boolean spawningSelf;

    @Override
    public void onEnable() {
        ownerKey = new NamespacedKey(this, "void_self_owner");
        swordKey = new NamespacedKey(this, "void_slasher");
        voidWorld = new WorldCreator("void_dimension").generator(new VoidGenerator()).createWorld();
        if (voidWorld == null) {
            getLogger().severe("Could not create the void dimension.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }
        getServer().getPluginManager().registerEvents(this, this);
        for (Entity entity : voidWorld.getEntities()) upgradeVoidSelf(entity);
        for (Player player : Bukkit.getOnlinePlayers()) hideOtherSelves(player);
        Bukkit.getScheduler().runTaskTimer(this, this::updateSwordEffects, 1L, 5L);
    }

    @Override
    public void onDisable() {
        for (Player player : Bukkit.getOnlinePlayers()) {
            if (originalTabNames.containsKey(player.getUniqueId())) {
                player.setPlayerListName(originalTabNames.get(player.getUniqueId()));
            }
        }
    }

    @EventHandler(ignoreCancelled = true)
    public void onSplash(PotionSplashEvent event) {
        ProjectileSource shooter = event.getPotion().getShooter();
        if (!(shooter instanceof Player player) || event.getIntensity(player) <= 0) return;
        for (PotionEffect effect : event.getPotion().getEffects()) {
            if (XPotion.matchXPotion("INVISIBILITY").map(p -> p.getPotionEffectType().equals(effect.getType())).orElse(false)) {
                long duration = (long) (effect.getDuration() * event.getIntensity(player) * 50L);
                splashed.put(player.getUniqueId(), System.currentTimeMillis() + duration);
                return;
            }
        }
    }

    @EventHandler(ignoreCancelled = true)
    public void onVoidDamage(EntityDamageEvent event) {
        if (!(event.getEntity() instanceof Player player) || event.getCause() != EntityDamageEvent.DamageCause.VOID) return;
        if (!player.getWorld().equals(Bukkit.getWorlds().get(0))) return;
        if (splashed.getOrDefault(player.getUniqueId(), 0L) < System.currentTimeMillis()) return;
        if (!XPotion.matchXPotion("INVISIBILITY").map(p -> player.hasPotionEffect(p.getPotionEffectType())).orElse(false)) return;
        event.setCancelled(true);
        splashed.remove(player.getUniqueId());
        Location destination = safeDestination(player.getLocation());
        if (!player.teleport(destination)) return;
        player.setFallDistance(0);
        player.sendMessage(ChatColor.DARK_PURPLE + "You have crossed beneath the void.");
        if (!getConfig().getBoolean("void-self-spawned")) {
            getConfig().set("void-self-spawned", true);
            saveConfig();
            spawnVoidSelf(player, destination);
        }
    }

    private Location safeDestination(Location original) {
        int x = Math.max(-1000000, Math.min(1000000, original.getBlockX()));
        int z = Math.max(-1000000, Math.min(1000000, original.getBlockZ()));
        int y = voidWorld.getHighestBlockYAt(x, z) + 1;
        return new Location(voidWorld, x + 0.5, y, z + 0.5, original.getYaw(), original.getPitch());
    }

    private void spawnVoidSelf(Player owner, Location destination) {
        Location spawn = destination.clone().add(3, 0, 0);
        spawn.setY(voidWorld.getHighestBlockYAt(spawn) + 1);
        Zombie self;
        spawningSelf = true;
        try {
            self = voidWorld.spawn(spawn, Zombie.class);
        } finally {
            spawningSelf = false;
        }
        self.setCustomName(ChatColor.DARK_GRAY + owner.getName() + "'s Void Self");
        self.setCustomNameVisible(true);
        self.setRemoveWhenFarAway(false);
        self.setCanPickupItems(false);
        self.getPersistentDataContainer().set(ownerKey, PersistentDataType.STRING, owner.getUniqueId().toString());
        self.setTarget(owner);
        upgradeVoidSelf(self);
        for (Player viewer : Bukkit.getOnlinePlayers()) {
            if (!viewer.getUniqueId().equals(owner.getUniqueId())) viewer.hideEntity(this, self);
        }
    }

    private void upgradeVoidSelf(Entity entity) {
        if (!(entity instanceof Zombie self) || !self.getPersistentDataContainer().has(ownerKey, PersistentDataType.STRING)) return;
        XAttribute.of("max_health").ifPresent(attribute -> {
            if (self.getAttribute(attribute.get()) != null) {
                double oldMax = self.getAttribute(attribute.get()).getBaseValue();
                double health = self.getHealth();
                self.getAttribute(attribute.get()).setBaseValue(500.0);
                if (oldMax != 500.0) self.setHealth(health >= oldMax ? 500.0 : Math.min(health, 500.0));
            }
        });
        XPotion.matchXPotion("FIRE_RESISTANCE").map(p -> p.buildPotionEffect(Integer.MAX_VALUE, 0)).ifPresent(self::addPotionEffect);
        XPotion.matchXPotion("INVISIBILITY").map(p -> p.buildPotionEffect(Integer.MAX_VALUE, 0)).ifPresent(self::addPotionEffect);
        ItemStack head = XMaterial.matchXMaterial("BLACK_CONCRETE").map(XMaterial::parseItem).orElse(null);
        self.getEquipment().setHelmet(head);
        self.getEquipment().setChestplate(blackArmor("LEATHER_CHESTPLATE"));
        self.getEquipment().setLeggings(blackArmor("LEATHER_LEGGINGS"));
        self.getEquipment().setBoots(blackArmor("LEATHER_BOOTS"));
        self.getEquipment().setHelmetDropChance(0);
        self.getEquipment().setChestplateDropChance(0);
        self.getEquipment().setLeggingsDropChance(0);
        self.getEquipment().setBootsDropChance(0);
    }

    private ItemStack blackArmor(String material) {
        ItemStack item = XMaterial.matchXMaterial(material).map(XMaterial::parseItem).orElse(null);
        if (item != null && item.getItemMeta() instanceof LeatherArmorMeta meta) {
            meta.setColor(Color.BLACK);
            item.setItemMeta(meta);
        }
        return item;
    }

    @EventHandler(ignoreCancelled = true)
    public void onCreatureSpawn(CreatureSpawnEvent event) {
        if (event.getLocation().getWorld().equals(voidWorld) && !spawningSelf) event.setCancelled(true);
    }

    @EventHandler
    public void onChunkLoad(ChunkLoadEvent event) {
        if (!event.getWorld().equals(voidWorld)) return;
        for (Entity entity : event.getChunk().getEntities()) {
            upgradeVoidSelf(entity);
            String owner = entity.getPersistentDataContainer().get(ownerKey, PersistentDataType.STRING);
            if (owner != null) for (Player viewer : Bukkit.getOnlinePlayers()) {
                if (!owner.equals(viewer.getUniqueId().toString())) viewer.hideEntity(this, entity);
            }
        }
    }

    private void hideOtherSelves(Player viewer) {
        for (Entity entity : voidWorld.getEntities()) {
            String owner = entity.getPersistentDataContainer().get(ownerKey, PersistentDataType.STRING);
            if (owner != null && !owner.equals(viewer.getUniqueId().toString())) viewer.hideEntity(this, entity);
        }
    }