Repack
实体渲染、后处理特效与高级自定义套件
如果你发现任何问题,请在此处 报告
这是什么
Repack 是一个针对玩家所见所用的自定义套件:包含由 Blockbench 模型制作的自定义方块和物品、世界锚定的涟漪效果和屏幕震动、基于图片或光影的天空盒、动态文字颜色等(更多功能将在路标中陆续推出)。所有功能均整合为每个客户端版本一个资源包。
视觉特效
- 涟漪。 从世界中某一点扩散的冲击波,并使屏幕产生弯曲效果。
- 屏幕震动。 在爆炸、击中或其他情况下使玩家屏幕震动,并逐渐消散。
- 天空盒。 用全景图片或小型光影替换天空(Repack 自带星空、云层和渐变效果)。你可以选择每种效果的显示位置:按世界、维度或生物群系。
- 动态文字。 聊天栏、告示牌和物品名称中的特定颜色文字会闪烁、脉冲、波浪或呈现彩虹色。
自定义方块和物品
- 来自 Blockbench 模型的方块。 放入
.bbmodel 文件即可将其制作成方块。挖掘时间、掉落物、工具、声音等均支持设置。
- 动画模型。 在 Blockbench 中制作的动画可在方块上播放;方块在被放置、闲置或破坏时可分别播放不同的动画。
- 自定义物品 拥有独立的名称、描述、模型和光泽效果。
这些方块在服务端不使用实体,随世界一起保存,并且兼容 WorldGuard 等保护插件。
所有内容均可通过游戏内的 /repack 命令进行设置(包括方块和物品的界面,以及服务器设置),也可通过编辑文件进行配置。服务器管理员:请阅读 指南。脚本编写者和插件开发者:dev.md 涵盖了 Skript 和 Java API 的相关内容。
每次对 main 分支的提交都会构建并发布到 RATR2/repack-nightly。
安装
你需要运行 1.21.4 或更高版本的 Paper(或 Purpur)服务器,并安装 PacketEvents 插件(Spigot jar 包,版本 2.14.0 或更高)。玩家可以以 1.21.4 至 26.3 之间的任意版本加入。ViaVersion 是可选的,允许非服务器版本的其他玩家也能加入。
- 将
repack.jar 和 PacketEvents jar 包放入 plugins/ 目录并启动服务器。
- 在
plugins/Repack/config.yml 中,将 resource-pack.public-host 设置为你的服务器地址,以便玩家下载资源包。
- 加入游戏,运行
/repack give table 获取示例方块。将其放置。
- 将你自己的模型添加到
plugins/Repack/models/ 目录,并在 /repack > 方块构建器中将其制作成方块。
指南 解释了其余内容:构建和发送资源包、方块和物品选项、特效以及故障排除。
状态
开发中。已构建并通过单元测试,但可能存在粗糙之处。
- 模型支持立方体和骨骼。网格将被跳过。
- 某些特效依赖于玩家的图形设置或版本,指南 中列出了每个特效的相关信息。
许可
见 LICENSE。MIT 协议。模型解析和资源包生成功能改编自 BetterModel,同样采用 MIT 协议,详见 NOTICE。
Repack
Rendering of Entities, Post-effects, & Advanced Customization Kit
If you find any issues, please report them here
What is this
Repack is a customization kit for what players see and use: custom blocks and items made from Blockbench models, world-anchored ripple effects and screen shake, skyboxes from pictures or shaders, animated text colors, and more to come (the roadmap is in the repository). Everything is built into one resource pack per client version.
Visual effects
- Ripples. A shockwave that spreads out from a spot in the world and bends the screen.
- Screen shake. Shake a player's screen for explosions, hits or anything else, and let it fade out.
- Skyboxes. Replace the sky with a panorama picture or a small shader (stars, clouds and a gradient come with Repack). Choose where each one shows: by world, dimension or biome.
- Animated text. Text in certain colors shines, pulses, waves or turns rainbow, in chat, signs and item names.
Custom blocks and items
- Blocks from Blockbench models. Drop in a
.bbmodel and make a block from it. Mining time, drops, tools, sounds and more are all settings.
- Animated models. Animations made in Blockbench play on blocks, and a block can play one when it is placed, when it idles, and when it is broken.
- Custom items with their own name, lore, model and shine.
Blocks use no entities on the server, are saved with the world, and work with protection plugins like WorldGuard.
Everything is set up in the game with /repack (screens for blocks and items, and for the server settings) and in files you can edit. Server owners: read the guide. Scripters and plugin developers: dev.md covers Skript and the Java API.
Every commit on main is built and published to RATR2/repack-nightly.
Install
You need a Paper (or Purpur) server on 1.21.4 or newer, and the PacketEvents plugin (the Spigot jar, 2.14.0 or newer). Players can join on any version from 1.21.4 to 26.3. ViaVersion is optional, and lets players on versions other than the server's join too.
- Put
repack.jar and the PacketEvents jar in plugins/ and start the server.
- In
plugins/Repack/config.yml, set resource-pack.public-host to your server's address, so players can download the pack.
- Join, and run
/repack give table to get the example block. Place it.
- Add your own models to
plugins/Repack/models/ and make blocks from them in /repack > Block builder.
The guide explains the rest: building and sending the pack, block and item options, effects, and troubleshooting.
Status
In development. Built and unit tested, but expect rough edges.
- Models support cubes and bones. Meshes are skipped.
- Some effects depend on the player's graphics settings or version, which the guide lists for each one.
License
See LICENSE. MIT. The model parsing and pack generation are adapted from BetterModel, also MIT, see NOTICE.
评论 0
登录后参与评分
还没有评论,来抢沙发吧