RessourcePackManager (RPM) 插件
by Kartoffel_Licht
RPM 插件是一个面向现代 Paper 服务器的资源包管理器及自定义内容扩展。
它具备功能性。毕竟,人们对此能有什么期待呢。
功能
资源包管理
启用该插件后,可以将 Minecraft Java (.zip) 和 Bedrock (.mcpack)* 资源包添加到 '<serverroot>/resourcepacks/' 。
如果启用了资源包托管,插件将在服务器上托管这些资源包,因此无需外部资源包提供商。
注意:RPM 会挂钩到 Minecraft 的 Netty 处理器,因此使用与 Minecraft 服务器相同的端口(例如 25565)。尽管此挂钩构建得相当稳健,但用户始终可以禁用托管并改用自定义挂钩。
自定义内容
资源包托管固然不错,但主要的吸引力可能在于自定义内容。
当 RPM 启用时,会添加某些新的数据包功能。
- 自定义物品。
自定义物品定义为 data/<namespace>/rpm/items/<baseItem>/someFolders/.../<key>.json
它们通常配有匹配的 <key>.png(物品图标)和
<key>.item(包含基础组件),以及可选的 <key>.effects
(目前仍在开发中)

- 自定义音效。
自定义音效定义为
data/<namespace>/rpm/sounds/<key>.json(x) 并且
data/<namespace>/rpm/sounds/<key>.ogg

- 自定义护甲。
自定义护甲定义为
data/<namespace>/rpm/armor/<key>-<type>.png,其中 'type' 例如为 'humanoid' 或 'happy_ghast_body'

你可以随时查看 示例资源包 以获取帮助
用法/安装
需要兼容 Paper 的服务器。安装方式与其他任何 Paper/Velocity 插件无异。Geyser 应在 Velocity 和 PaperMC 上得到支持。
杂项
执行 /reload Minecraft 命令或启用/禁用任何数据包都会导致 RPM 重新加载。该插件为玩家添加了新的 /rsrc show 命令,在创造模式下可见(目前尚无需特殊权限)。需要在后端运行 /rsrc configureGeyser 来配置代理上的 Geyser 映射(要求在该处安装 RPM Velocity)。除非另有配置,否则这会导致代理快速重启。要更新任何 Bedrock 映射/资源包,必须重启运行 Geyser 的软件(无论是 Velocity 还是 Paper)。有实验性的 /give 命令挂钩,可将自定义物品集成到原版游戏中。每个自定义物品通常还会注册一个战利品表 '<namespace>:item/<key>'。
可以通过在与 <key>.json 物品文件配合的同时添加 <key>_model.json 文件来添加自定义物品模型(目前仅适用于 Java 客户端)(这将替换通常自动生成的 'assets/%s/models/item/<key>.json')。效果文件目前仍在开发中。
RessourcePackManager (RPM) Plugin
by Kartoffel_Licht
The RPM Plugin is a resourcepack manager and custom content extension for modern paper servers.
It's functional. What should one expect.
Functionality
Resourcepack management
If the plugin is enabled, one can add minecraft java (.zip) and bedrock (.mcpack)* resourcepacks to '<serverroot>/resourcepacks/' .
If resourcepack hosting is enabled, the plugin will host the packs on the server, so no external resourcepack providers are required
Note: RPM hooks into minecraft's netty handlers, thus using the same port as the minecraft server (eg. 25565). Even though said hook is build robustly, one can always disable hosting and use custom hooks instead.
Custom Content
RP hosting is neat an all, but the main attraction might possibly be custom content.
When RPM is enabled, certain new datapack features are added.
- Custom Items.
Custom items are defined as data/<namespace>/rpm/items/<baseItem>/someFolders/.../<key>.json
They are usually accompanied by matching <key>.png (item icon) and
<key>.item (Contains base components) and optionally <key>.effects
(currently work in progress)

- Custom Sounds.
Custom Sounds are defined as
data/<namespace>/rpm/sounds/<key>.json(x) and
data/<namespace>/rpm/sounds/<key>.ogg

- Custom Armor.
Custom Armor is defined as
data/<namespace>/rpm/armor/<key>-<type>.png, where 'type' is eg. 'humanoid' or 'happy_ghast_body'

You can always view the example pack for aid
Usage/Installation
A paper-compatible server is required. Installations does not differ from any other paper/velocity plugin. Geyser should be supported on velocity and papermc
Misc
Invoking the /reload minecraft command or enabling/disabling any datapacks causes RPM to also reload. The plugin adds a new /rsrc show command visible to players in creative mode (without any special permissions yet). /rsrc configureGeyser is required to be run on a backend to configure geyser mappings on a proxy (requires RPM velocity to be installed there). This, unless configured otherwise, causes the proxy to restart quickly. To update any bedrock mappings/RPs, the software running geyser (either velocity or paper) has to be restarted. There are experimental hooks into the /give command integrating custom items into the base game. Every custom item usually also registers a loottable '<namespace>:item/<key>'.
Custom item models (only for java clients currently) can be added by, in conjunction to the <key>.json item file, adding a <key>_model.json file (will replace the usually auto-generated 'assets/%s/models/item/<key>.json'). Effect files are currently work in progress.
评论 0
登录后参与评分
还没有评论,来抢沙发吧