SakuraPhantoms 为末地维度添加了氛围感十足的被动型幻翼。这些生物会和平地飞翔,只有在玩家主动攻击时才会变得具有攻击性。
为什么选择这个插件?
最初它是为我自己的服务器开发的(因此带有“Sakura”名称),在未能找到合适的替代品后,我决定将其公开发布。大多数现有的环境幻翼插件都存在遗留代码、优化不佳或使用了拖慢服务器性能的重型方法等问题。
SakuraPhantoms 以 性能优先 为原则编写。代码整洁、现代,并经过严格优化,确保在增添氛围的同时不会影响你的 TPS(每秒刻数)。
特性
- 被动行为: 幻翼会在末地自然生成,但除非被挑衅,否则不会发起攻击。
- 高度优化: 使用高效的检测机制和轻量级调度来最小化对服务器的影响。没有重型循环或未优化的实体追踪。
- 智能生成: 包含可配置的每个区块和每个玩家的生成上限,以防止实体泛滥。
- 防卡死系统: 内置智能任务,检测幻翼是否卡在地形中,并温柔地将它们移开。
- 完全可配置: 所有方面均可通过
config.yml 进行自定义(生成几率、半径、高度、上限等)。
配置
### 配置说明
该插件开箱即用,但你可以调整所有内容:
* 生成间隔与几率。
* 最小/最大生成半径及高度偏移量。
* 每个玩家/区块的幻翼硬性上限。
* 防卡死灵敏度。# PassivePhantoms Configuration
spawn:
# 生成尝试之间的间隔(单位:刻,20 刻 = 1 秒)
interval-ticks: 100
# 每次生成尝试成功的几率(每位玩家,范围 0.0 - 1.0)
chance: 0.15
# 每个区块允许的最大幻翼数量
max-per-chunk: 3
# 每位玩家周围(在最大半径区域内)允许的最大幻翼数量
max-per-player: 8
# 生成的最小玩家距离(方块)
min-radius: 20
# 生成的最大玩家距离(方块)
max-radius: 40
# 玩家上方的最小高度偏移
min-height-offset: 10
# 玩家上方的最大高度偏移
max-height-offset: 30
anti-stuck:
# 卡死检测之间的间隔(单位:刻)
check-interval-ticks: 100
# 幻翼不被视为卡死所需的最小移动距离(方块)
min-movement-distance: 2.0
# 在传送幻翼之前进行的卡死检测次数
max-stuck-checks: 3
命令与权限
/sakuraphantoms reload — 重新加载配置文件。
- 权限:
sakuraphantoms.reload(默认:OP)
SakuraPhantoms adds atmospheric, passive Phantoms to the End dimension. These creatures will fly around peacefully and only become aggressive if a player attacks them first.
Why this plugin?
Originally developed for my own server (hence the "Sakura" name), I decided to release this publicly after failing to find a suitable alternative. Most existing ambient phantom plugins suffer from legacy code, poor optimization, or heavy methods that drag down server performance.
SakuraPhantoms was written with performance first in mind. The code is clean, modern, and strictly optimized to ensure it adds atmosphere without costing you TPS.
Features
- Passive Behavior: Phantoms spawn naturally in the End but will not attack unless provoked.
- Highly Optimized: Uses efficient checks and lightweight scheduling to minimize server impact. No heavy loops or unoptimized entity tracking.
- Smart Spawning: Includes configurable limits per chunk and per player to prevent entity spam.
- Anti-Stuck System: Includes a smart task that detects if phantoms are stuck in terrain and gently unstucks them.
- Fully Configurable: Every aspect is customizable via
config.yml (spawn chance, radius, height, limits, and more).
Config
### Configuration
The plugin is ready to use out of the box, but you can tweak everything:
* Spawn intervals and chances.
* Minimum/Maximum spawn radius and height offsets.
* Hard limits on phantoms per player/chunk.
* Anti-stuck sensitivity.# PassivePhantoms Configuration
spawn:
# Interval between spawn attempts in ticks (20 ticks = 1 second)
interval-ticks: 100
# Chance for spawn attempt to succeed per player (0.0 - 1.0)
chance: 0.15
# Maximum phantoms allowed per chunk
max-per-chunk: 3
# Maximum phantoms allowed around one player (in max-radius area)
max-per-player: 8
# Minimum distance from player for spawn (blocks)
min-radius: 20
# Maximum distance from player for spawn (blocks)
max-radius: 40
# Minimum height offset above player
min-height-offset: 10
# Maximum height offset above player
max-height-offset: 30
anti-stuck:
# Interval between stuck checks in ticks
check-interval-ticks: 100
# Minimum distance phantom must move to not be considered stuck (blocks)
min-movement-distance: 2.0
# Number of stuck checks before teleporting phantom
max-stuck-checks: 3
Commands & Permissions
/sakuraphantoms reload — Reload the configuration file.
- Permission:
sakuraphantoms.reload (Default: OP)
评论 0
登录后参与评分
还没有评论,来抢沙发吧