一款适用于 Spigot/Paper 的插件,将新生成的末地城物品框中展示的鞘翅转化为可再生、每位玩家限领一次的奖励。

行为逻辑
- 仅监控配置好的末地世界中新生成的区块。现有的末地城保持不变。
- 用受保护的显示层和浮动文字替换新的鞘翅物品框。
- 玩家可以左键或右键点击该物品框以领取一份鞘翅。
- 每位玩家每个物品框只能领取一次;领取记录保存在
plugins/RenewableElytra/claims.yml 中。
- 保护物品框、其全息投影、背后的方块以及被物品框占据的方块免受破坏、放置、流体、掉落物、爆炸和活塞的影响。
renewableelytra.admin 权限仅允许执行 /renewableelytra reload 命令,以及通过 Shift+左键点击来移除物品框。
安装
下载插件并将其复制到服务器的 plugins/ 目录,然后重启服务器。
配置
plugins/RenewableElytra/config.yml 包含要监控的世界标识符、全息文本、消息和领取记录保存间隔。配置的世界可以通过 Bukkit 名称(例如 world_the_end)或其命名空间维度键(例如 minecraft:the_end)指定。
默认 config.yml:
# 在这些世界名称中,新生成的末地城鞘翅物品框将成为可再生资源。
worlds:
- minecraft:the_end
hologram:
# 可以自由添加、删除或重新排序行。支持 MiniMessage 格式。
lines:
- "<aqua>Renewable Elytra</aqua>"
- "<gray>Click to receive</gray>"
messages:
received: "<green>You received this End City's renewable Elytra!"
already-claimed: "<yellow>You have already claimed this Elytra."
inventory-full: "<red>Make room in your inventory before claiming this Elytra."
# 领取记录将按此间隔刷新,并在插件禁用时同时刷新。
save-interval-seconds: 60
更改配置后运行 /renewableelytra reload。它将更新所有当前加载的可再生框架全息文本。
A Spigot/Paper plugin that turns the Elytra displayed in a newly generated End City
item frame into a renewable, one-per-player reward.

Behaviour
- Watches only newly generated chunks in configured End worlds. Existing End
Cities are left unchanged.
- Replaces new Elytra item frame with a protected display and floating text.
- Players can left- or right-click the frame to receive one Elytra.
- Each player may claim each frame once; claims persist in
plugins/RenewableElytra/claims.yml.
- Keeps the frame, its hologram, its backing block, and the block occupied by
the frame safe from breaking, placement, fluids, falling blocks, explosions,
and pistons.
renewableelytra.admin grants only /renewableelytra reload
and Shift+left-clicking a frame to remove it.
Installation
Download the plugin and copy it to the server's plugins/
directory and restart the server.
Configuration
plugins/RenewableElytra/config.yml contains the watched world identifiers,
hologram text, messages, and claim save interval. A configured world can be
specified by either its Bukkit name (for example world_the_end) or its
namespaced dimension key (for example minecraft:the_end).
Default config.yml:
# World names in which newly generated End City Elytra frames become renewable.
worlds:
- minecraft:the_end
hologram:
# Add, remove, or reorder lines freely. MiniMessage formatting is supported.
lines:
- "<aqua>Renewable Elytra</aqua>"
- "<gray>Click to receive</gray>"
messages:
received: "<green>You received this End City's renewable Elytra!"
already-claimed: "<yellow>You have already claimed this Elytra."
inventory-full: "<red>Make room in your inventory before claiming this Elytra."
# Claims are flushed at this interval and also when the plugin disables.
save-interval-seconds: 60
Run /renewableelytra reload after changing the configuration. It updates
the text of all currently loaded renewable-frame holograms.
评论 0
登录后参与评分
还没有评论,来抢沙发吧