HomeJavaModsEnderDragonCompanion
EnderDragonCompanion
ModsJava

EnderDragonCompanion

by BeruiiuFengxuan · on Modrinth

A plugin that allows you to have an Ender Dragon as a pet. Free Minecraft Java mod for 1.21.10.

⬇ Download on Modrinth
EnderDragonCompanion — screenshot 1

EnderDragonCompanion

A Paper 1.21.10 plugin: Hatch your own Ender Dragon companion that follows you like a tamed wolf, fights alongside you, breathes dragon's breath, and can be ridden in flight once mature.

I. Gameplay Overview

Stage Description
Hatching Right-click a placed Dragon Egg block to spawn a baby Ender Dragon
Baby Stage Follows/wanders/sits like a tamed wolf, automatically attacks the target the owner is attacking, and retaliates when attacked; defaults to maturing in 20 minutes
Adult Scale resets to 1.0, can be ridden for flight and breathe dragon's breath
Daily Growth Each in-game day: health +1 (no cap by default), attack damage +0.2 (capped at 100)

II. Core Mechanics

  1. Invisible Wolf AI Brain

Each dragon is bound to an invisible, silent tamed wolf that serves as its "AI brain":

  1. Dragon Combat (Assisted Fighting)
  1. Growth System
  1. Mounted Flight
  1. Sit / Stand (Stop Following)

Either of the following toggles sit/stand:

When sitting, the dragon (and its invisible wolf) stays in place and stops following the owner.

  1. Death & Drops

III. Items

Item How to Obtain Purpose
Dragon Egg /enderdragon egg Right-click to place and hatch a dragon
§dDragon Whistle /enderdragon whistle Hold and right-click to mount your adult dragon (right-click air or dragon)
§6Dragon Whip /enderdragon whip Hold and right-click to make your dragon sit/stand (right-click dragon or air)

IV. Commands

Command Permission Description
/enderdragon egg [player] enderdragon.admin Give a player a Dragon Egg
/enderdragon grow [player] enderdragon.admin Instantly mature the player's dragon (for testing)
/enderdragon remove [player] enderdragon.admin Remove the player's dragon and its invisible wolf
/enderdragon whistle [player] enderdragon.admin Give a Dragon Whistle
/enderdragon whip [player] enderdragon.admin Give a Dragon Whip
/enderdragon reload enderdragon.admin Reload the configuration file
/enderdragon info None (all players) View your dragon's status (name/baby or adult/health/growth progress)

enderdragon.admin is granted to ops by default.

V. Configuration Parameters (config.yml)

Hatching Settings
hatch:
  one-dragon-per-player: true   # Each player can own at most 1 dragon

Baby Dragon Settings
baby:
  scale: 0.5                    Baby dragon scale (adult is 1.0; due to vanilla dragon model limitations, this config does not take effect — the dragon spawns at full size)
  follow-distance: 4.0          Follow distance from owner when not mounted (controlled by wolf AI)
  follow-height-offset: 3.0     Hover height: blocks above the wolf the dragon hovers at
  follow-speed: 1.1             Follow flight speed (movement step in blocks/tick)
  attack-distance: 3.5          Horizontal distance threshold for the dragon to lunge at a target
  attack-cooldown-ticks: 25     Ram attack cooldown (ticks; 20 ticks = 1 second)
  attack-damage: 2.0            (Reserved; actual damage is based on growth attack damage)
  growth-seconds: 1200          Seconds to mature into an adult dragon (default 20 minutes)
  invulnerable: true            Whether baby dragons are immune to damage
  teleport-range: 200           Range within which the wolf auto-teleports to the owner if too far away

Adult Dragon Settings
adult:
  follow-distance: 7.0          Follow distance when not mounted
  follow-height-offset: 6.0     Hover height when not mounted
  follow-speed: 0.9             Follow flight speed
  attack-distance: 4.5          Ram attack horizontal distance threshold
  attack-cooldown-ticks: 20     Ram attack cooldown (ticks)
  attack-damage: 5.0             (Reserved; actual damage is based on growth attack damage)

 Mounted Flight Settings
ride:
  speed: 1.6                     Flight speed (blocks/tick)
  vertical-speed: 1.0            Ascend speed while holding spacebar
  breath-cooldown-seconds: 3.0   Dragon's breath cooldown (seconds)
  breath-damage: 6.0             Damage dealt per dragon's breath tick
  breath-radius: 3.0            Dragon's breath cloud radius
  breath-damage-players: true   # Whether dragon's breath damages other players (dragon/owner/rider are immune)

 Health Growth
health:
  initial: 1.0                   Initial health at hatching
  per-day: 1.0                  Health gained per in-game day
  max-cap: -1                    Health cap; -1 = no cap (default)

Attack Damage Growth
attack-damage:
  start: 1.0                    Initial attack damage at hatching
  per-day: 0.2                  Attack damage gained per in-game day
  max-cap: 100.0                 Attack damage cap

 Combat Assist
combat:
  assist-range: 16.0             Maximum range for dragon to assist in attacking (against wolf-selected target)
  assist-against-players: false # Whether to help the owner attack other players
  retaliate: true               Whether the dragon retaliates when attacked
  ram-distance: 2.5             Distance threshold: below this value, ram (above it, only chase)

 Death Drops
death:
  drop-egg: true                # Whether the dragon drops a Dragon Egg on death (can be re-hatched)

Note: config.yml is only auto-generated on the first run of the plugin. After modifying parameters, use /enderdragon reload for a hot-reload. If an old config file already exists on the server, you must manually add new parameters or delete the file and regenerate it.

VI. Technical Notes (Admin Reference)

末影龙伙伴 (EnderDragonCompanion)

一款 Paper 1.21.10 插件:孵化一只属于你的末影龙伙伴,它像驯服的狼一样跟随你、陪你战斗、帮你喷吐龙息,成年后还可以骑乘飞行。

一、玩法总览

阶段 说明
孵化 右键放置的龙蛋方块,生成一只幼年末影龙
幼龙期 像原版驯服狼一样跟随/游荡/坐下,自动攻击主人攻击的目标,被攻击时反击;默认 20 分钟成年
成年 体型恢复 1.0,可以骑乘飞行、喷吐龙息
每日成长 每过一个游戏日,生命值 +1(默认不封顶)、攻击力 +0.2(封顶 100)

二、核心机制说明

  1. 隐形狼 AI 大脑

每条龙都绑定一只隐形、无声的驯服狼作为"AI 大脑":

  1. 龙的攻击(辅助战斗)
  1. 成长系统
  1. 骑乘飞行
  1. 坐下 / 站起(停止跟随)

以下任一方式都可以切换坐/站:

坐下后龙(及隐形狼)原地停留,不再跟随主人。

  1. 死亡与掉落

三、物品道具

物品 获取 用途
龙蛋 /enderdragon egg 右键放置孵化龙
§d驯龙哨 /enderdragon whistle 手持右键骑乘自己的成年龙(右键空气或右键龙均可)
§6驯龙鞭 /enderdragon whip 手持右键让龙坐下/站起(右键龙或右键空气均可)

四、命令

命令 权限 说明
/enderdragon egg [玩家] enderdragon.admin 给玩家发放龙蛋
/enderdragon grow [玩家] enderdragon.admin 让该玩家的龙立刻成年(测试用)
/enderdragon remove [玩家] enderdragon.admin 删除该玩家的龙及其隐形狼
/enderdragon whistle [玩家] enderdragon.admin 发放驯龙哨
/enderdragon whip [玩家] enderdragon.admin 发放驯龙鞭
/enderdragon reload enderdragon.admin 重新加载配置文件
/enderdragon info 无(所有玩家) 查看自己龙的状态(名字/幼成年/生命/成长进度)

enderdragon.admin 默认授予 op。

五、配置文件参数(config.yml)

# 孵化设置
hatch:
  one-dragon-per-player: true   # 每位玩家最多同时拥有 1 条龙

# 幼龙设置
baby:
  scale: 0.5                    # 幼龙体型缩放(成年为 1.0,由于原版龙模型限制,该配置不生效,即龙出生时就为正常大小)
  follow-distance: 4.0          # 未骑乘时与主人的跟随距离(由狼 AI 控制)
  follow-height-offset: 3.0     # 悬停高度:龙位于狼头顶上方多少格
  follow-speed: 1.1             # 跟随飞行速度(格/tick 的移动步长)
  attack-distance: 3.5          # 龙扑击目标的水平距离阈值
  attack-cooldown-ticks: 25     # 龙撞击冷却(tick,20 tick = 1 秒)
  attack-damage: 2.0            # (保留项,实际伤害按攻击力成长计算)
  growth-seconds: 1200          # 成长为成年龙所需秒数(默认 20 分钟)
  invulnerable: true            # 幼龙是否免疫伤害
  teleport-range: 200           # 玩家过远时狼自动传送到主人附近的范围

# 成年龙设置
adult:
  follow-distance: 7.0          # 未骑乘时跟随距离
  follow-height-offset: 6.0     # 未骑乘时悬停高度
  follow-speed: 0.9             # 跟随飞行速度
  attack-distance: 4.5          # 扑击水平距离阈值
  attack-cooldown-ticks: 20     # 撞击冷却(tick)
  attack-damage: 5.0            # (保留项,实际伤害按攻击力成长计算)

# 骑乘设置
ride:
  speed: 1.6                    # 飞行速度(格/tick)
  vertical-speed: 1.0           # 按住空格上升速度
  breath-cooldown-seconds: 3.0  # 龙息冷却(秒)
  breath-damage: 6.0            # 龙息每次结算的伤害值
  breath-radius: 3.0            # 龙息云团半径
  breath-damage-players: true   # 龙息是否伤害其他玩家(自己的龙/主人/骑手免疫)

# 血量成长
health:
  initial: 1.0                  # 孵化时初始血量
  per-day: 1.0                  # 每过一天增加的血量
  max-cap: -1                   # 血量上限,-1 = 不封顶(默认不封顶)

# 攻击力成长
attack-damage:
  start: 1.0                    # 孵化时初始攻击力
  per-day: 0.2                  # 每过一天增加的攻击力
  max-cap: 100.0                # 攻击力上限(封顶伤害)

# 战斗辅助
combat:
  assist-range: 16.0            # 龙参与攻击的最大范围(对狼选中的目标)
  assist-against-players: false # 是否帮助主人攻击其他玩家
  retaliate: true               # 龙被攻击时是否反击攻击者
  ram-distance: 2.5             # 距离阈值:低于此值使用撞击(高于只追击)

# 死亡掉落
death:
  drop-egg: true                # 龙死亡时是否掉落龙蛋(可重新孵化)

注意:config.yml 只在插件首次运行时自动生成。修改参数后可用 /enderdragon reload 热重载;如果服务端已存在旧版配置文件,需手动添加新参数或删除该文件重新生成。

六、技术说明(管理员参考)

EnderDragonCompanion is a free Minecraft Java mod. Compatible with Minecraft 1.21.10. Available via Modrinth. Download it and open it directly in the game.

Explore more