重要通知
本项目已停止维护。遗憾的是,我已没有时间和精力继续维护和更新它,且这种情况已持续一段时间。如需替代方案,请参见 polymer。
Vanillify
Vanillify 是一个服务端库,允许在 Fabric 服务器上运行完全自定义的模组方块,同时仍允许原版 Minecraft 客户端连接!
它是通过修改从 Minecraft 服务器发送到 Minecraft 客户端的数据包来实现这一点的!
例如,你可以创建一个将玩家传送到新维度的方块,但在客户端上该
方块看起来像黑曜石(或你指定的任何方块)!这适用于大量利用此库的自定义模组物品和方块。它还支持箱子 GUI 和方块实体。
当前支持:
- 物品 - 完全自定义的物品得到支持。
- 方块 - 完全自定义的方块得到支持。
- 方块实体 - 带有方块实体的自定义方块得到支持。
- 箱子 GUI - 箱子 GUI 大部分得到支持。
- 合成配方 - 自定义物品和/或方块的合成配方得到支持。
- 实体 - 完全自定义的实体得到支持。
开发者用法
这个模组实际上是一个库,因此主要将被模组开发者使用。如果你是开发者,你应该了解以下内容。更多信息请参阅我们 Wiki 上的 快速入门指南!
关键术语
- 表示形式 - 表示形式是一个原版方块或物品(取决于用例),它将用于向原版客户端表示你的自定义方块/物品!
- 显示名称 - 显示名称是原版客户端手持该物品时看到的名称。
项目目标
该项目处于非常早期的阶段。近期计划的一些功能包括:
- WTHIT-Mod 支持 - 允许已安装 WTHIT 模组的客户端提供支持是关键优先事项。
- Pucking - 一个从 PolyPuck 项目中借用的术语,它将允许原版客户端连接,但同时也允许安装了客户端模组的客户端看到自定义内容,而不是它们的原版表示形式。
已知问题
再次强调,该项目处于非常早期的阶段。请注意,一定会有漏洞。
一些显著的已知问题包括:
- 创造模式 - 创造模式会导致自定义物品出现严重问题。
在实践中,这意味着当拥有创造模式的用户打开他们的创造物品栏时,自定义物品会被转换为其实际的原版表示物品。修复这将极其困难,
因此在未来的一段时间内,关于修复方面可能会有些不尽如人意。
- 方块破坏速度 - 如果你的方块破坏速度与代表你的原版方块不同,客户端在你挖掘自定义方块时会出现故障,有时甚至非常严重。
我们强烈建议你寻找与预期挖掘速度匹配的代表性方块。
IMPORTANT NOTICE
This project is retired. I unfortunately dont have the time to upkeep and update it anymore and havent for awhile. For an alternative, see polymer
Vanillify
Vanillify is a server-side library that allows fully-modded blocks on fabric servers, yet still allows vanilla Minecraft clients to connect!
It does this by modifying the packets that are sent from the Minecraft server to the Minecraft client!
For example, you can make a block that teleports the player to a new dimension, but on the client the
block looks like a block of obsidian(or any block you specify!). This works for large amount of modded
items and blocks that utilize this library. It also supports chest-gui and block entities.
Supported Currently:
- Items - Completely modded items are supported.
- Blocks - Completely modded blocks are supported.
- Block Entities - Modded blocks WITH block entities are supported.
- Chest GUI - Chest GUI are mostly supported.
- Crafting Recipes - Crafting recipes for the modded items and/or blocks are supported.
- Entities - Completely modded entities are supported.
Developer Usage
This mod is actually a library and thus is mostly going to be used
by mod developers. You should know the following if you are a developer.
For more information please see the Quick-Start Guide
on our wiki!
Key Terms
- Representation - A representation is a vanilla block or item(depending on use case) that will
be used to represent your modded block/item to vanilla clients!
- Display Name - A display name is the name that vanilla clients see when they hold the item.
Project Goals
This project is in VERY early stages. Some things planned in the near future are:
- WTHIT-Mod Support - Allowing support for the WTHIT mod on clients with the mod installed is a key priority.
- Pucking - A term stolen from the PolyPuck project, it would allow vanilla clients to connect, but would also allow clients that connect WITH the client mod installed to see the modded things instead of their vanilla representations.
Known Bugs
Once again, this project is in VERY early stages. Please note that there will be bugs.
Some notable known issues are:
- Creative Mode - Creative mode causes SEVERE issues with modded items in particular.
in practice it means that when a user with creative mode opens their creative inventory, it converts
the modded item into its actual vanilla representational item. This will be extremely difficult to fix,
so its going to be a bit off in the future in terms of fixes.
- Block Breaking Speed - If you have a different block breaking speed than your representative vanilla
block, the client will appear to glitch when mining your modded block, sometimes horribly.
We highly encourage you to find representative blocks that match your intended mining speed.
评论 0
登录后参与评分
还没有评论,来抢沙发吧