▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/dragon-block-plugin
dragon-block-plugin

dragon-block-plugin

A Paper / Folia plugin (1.21.x) that prevents the Ender Dragon from destroying blocks — unless they're explicitly whitelisted by the server administrator.

Оцените первым
40
0

Dragon Block Plugin

A Paper / Folia plugin (1.21.x) that prevents the Ender Dragon from destroying blocks — unless they're explicitly whitelisted by the server administrator.


Purpose

When players fight the Ender Dragon, the dragon destroys large swaths of terrain as it flies through blocks. On survival / anarchy / kit servers this can:

  • Gut end-island farms (chorus, endermen)
  • Destroy bridges, pathways, and builds near the portal
  • Leave the End dimension permanently scarred

This plugin intercepts both pathways the dragon destroys blocks:

PathwayEvent handledBehaviour
Dragon flying through blocksEntityChangeBlockEventCancelled unless block is whitelisted
Dragon / fireball explosionsEntityExplodeEventNon-whitelisted blocks removed from explosion

Config

File: plugins/dragon-block-plugin/config.yml

# Block names are Material enum values (case-insensitive).
# Empty list = dragon cannot destroy ANY blocks.
whitelisted-blocks: []

Example — allow only obsidian and end stone

whitelisted-blocks:
  - OBSIDIAN
  - END_STONE

Full list of block Material names:
https://jd.papermc.io/paper/1.21/org/bukkit/Material.html


Commands

CommandPermissionDescription
/dragonblock reloaddragonblock.admin (OP by default)Reloads config.yml without a server restart
/dragonblockdragonblock.adminShows usage

Permissions

NodeDefaultDescription
dragonblock.adminopAccess to /dragonblock commands

Installation

  1. Drop the JAR into your server's plugins/ folder
  2. Restart the server (or use a plugin manager like PlugManX)
  3. Edit plugins/dragon-block-plugin/config.yml to whitelist blocks
  4. Run /dragonblock reload to apply changes

Compatibility

PlatformStatus
Paper 1.21.x✅ Fully supported
Folia 1.21.x✅ Fully supported (folia-supported: true)
Spigot 1.21.x⚠️ Untested — the Brigadier command API requires Paper

The plugin uses Paper's Brigadier command API and the Adventure component API. It does not use BukkitScheduler — events fire on the correct region thread in both Paper and Folia.


Build

Requirements: JDK 21+

./gradlew build
# JAR → build/libs/dragon-block-plugin-1.0-SNAPSHOT.jar

Run a test server (requires Paper 1.21.x in Gradle cache):

./gradlew runServer

License

MIT — do whatever you want.

Партнёрский материал

Сервер для плагина dragon-block-plugin - как у профи

Плагин dragon-block-plugin создан для серверов: на своём сервере вы настраиваете его под себя и решаете, кому играть. Создать сервер с плагином dragon-block-plugin для друзей можно за пару минут - BungeeHost всё уже подготовил.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

1.21.x

Платформы

Поддерживаемые окружения

Сервер

Ссылки

Детали

Лицензия:
Опубликован:4 месяца назад
Обновлён:4 месяца назад
Главная