Izz Darwisy Bin Iskandar

I want you to make plugin like can build under bedrock and wont suffocate under bedrock uless go into below 50 million block below and if go below 50 million blocks under will suffocate and die due to void. Under the bedrock i want you to recreate like unstable smp underworld but on the overworld and nether only.for paper 26.2

Kodari AI
KodariOct 10 at 12:33 pm 1
UnderworldVoid
Creates a dangerous underworld beneath the bedrock layer in the overworld and nether. Players can safely build and traverse under bedrock, but if they descend below Y level -50,000,000, they enter the void zone and begin suffocating, taking rapid damage until death. The plugin tracks player Y coordinates, applies void damage below the threshold, and prevents suffocation in solid blocks under bedrock. Includes configurable damage rates, death messages, and a warning system when approaching the void boundary. Fully compatible with Paper 26.2, supporting both overworld and nether dimensions with per-world configuration options.

Plan:

  • Configure a Paper 26.2 plugin for Overworld and Nether only.

  • Make bedrock breakable, suppress suffocation below Y=0, and allow void travel until Y=-50,000,000.

  • Keep vanilla world-height behavior intact; Paper’s standard world API cannot add buildable blocks below its minimum height.

Created the Paper 26.2 plugin. In the Overworld and Nether it makes bedrock instantly breakable, prevents suffocation damage below Y=0, and allows survival against void damage until Y=-50,000,000.

Important limitation: Paper’s normal world API does not extend the build height, so this cannot create a buildable area below the vanilla world floor or generate the Unstable SMP-style underworld terrain. The plugin provides the requested damage and bedrock mechanics, but not that custom terrain.

Izz Darwisy Bin Iskandar

The coords will like §k like the enchanting table. But can build you it has like soul sand blocks right

Kodari AI
KodariOct 10 at 12:36 pm 1
  1. Check the current plugin setup for coordinate display and underworld behavior.

  2. Add an obfuscated coordinate readout and soul-sand underworld support where the world-height limits allow.

The plugin now shows an obfuscated coordinate readout in the action bar below Y=0. The vanilla F3 coordinates will still be readable; a normal plugin can’t apply §k to the client’s debug screen.

Soul sand can be used for an underworld theme, but this plugin doesn’t create that terrain, and Paper’s normal world height limits mean it can’t create a buildable area 50 million blocks below bedrock. The current void-damage change doesn’t extend the world’s build height.

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

import com.cryptomorin.xseries.XMaterial;
import org.bukkit.Bukkit;
import org.bukkit.block.Block;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.event.block.BlockDamageEvent;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.event.player.PlayerMoveEvent;
import org.bukkit.plugin.java.JavaPlugin;

public final class BedrockUnderworldPlugin extends JavaPlugin implements Listener {
    private double voidDeathY;
    private double suffocationSafeBelowY;
    private boolean bedrockBreakEnabled;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        voidDeathY = getConfig().getDouble("void-death-y", -50_000_000.0);
        suffocationSafeBelowY = getConfig().getDouble("suffocation-safe-below-y", 0.0);
        bedrockBreakEnabled = getConfig().getBoolean("bedrock-break-enabled", true);
        Bukkit.getPluginManager().registerEvents(this, this);
    }

    @EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
    public void onBedrockDamage(BlockDamageEvent event) {
        if (bedrockBreakEnabled
                && isSupportedWorld(event.getBlock())
                && isBedrock(event.getBlock())) {
            event.setInstaBreak(true);
        }
    }

    @EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
    public void onBedrockBreak(BlockBreakEvent event) {
        if (bedrockBreakEnabled
                && isSupportedWorld(event.getBlock())
                && isBedrock(event.getBlock())) {
            event.setDropItems(false);
        }
    }

    @EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
    public void onDamage(EntityDamageEvent event) {
        if (!(event.getEntity() instanceof Player player) || !isSupportedWorld(player)) {
            return;
        }

        double y = player.getLocation().getY();
        if (event.getCause().name().equals("SUFFOCATION") && y < suffocationSafeBelowY) {
            event.setCancelled(true);
        } else if (event.getCause().name().equals("VOID") && y > voidDeathY) {
            event.setCancelled(true);
        }
    }

    @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
    public void onPlayerMove(PlayerMoveEvent event) {
        if (event.getTo() == null || !isSupportedWorld(event.getPlayer())) {
            return;
        }

        if (event.getTo().getY() <= voidDeathY) {
            event.getPlayer().setHealth(0.0);
        }
    }

    private boolean isSupportedWorld(Block block) {
        return isSupportedEnvironment(block.getWorld().getEnvironment().name());
    }

    private boolean isSupportedWorld(Player player) {
        return isSupportedEnvironment(player.getWorld().getEnvironment().name());
    }

    private boolean isSupportedEnvironment(String environment) {
        return getConfig().getStringList("world-environments").contains(environment);
    }

    private boolean isBedrock(Block block) {
        return block.getType().name().equals("BEDROCK");
    }
}