Create: Chain Conveyors Compat
这个适用于 Neoforge 1.21.1 的 Create 附加模组允许通过一个独特的标签(tag)使用任何物品来连接链式传送带。
截图中的链状物品来自 TerraFirmaCraft,因为这个附加模组最初旨在专门支持这些物品,但 TFC 并非依赖项,此附加模组可用于为来自任何模组的物品添加链式传送带功能。代码部分基于 manubarrach 为 Forge 1.20.1 制作的 WoodenCog 附加模组中该功能的实现。
本模组的全部实现均基于 mixins,由于我在处理 mixins 方面经验不足,我无法保证它与其他影响 Create 链式传送带行为的模组或附加模组的兼容性。
兼容性说明
为模组化链条添加兼容性
可用于连接链式传送带的物品被包含在物品标签 #createchaincompat:valid_for_chain_conveyor 中。默认情况下,此标签继承自 #c:chains 标签。可以使用数据包、KubeJS 或任何其他向物品添加标签的方法来将链式传送带的有效连接器添加到该标签中。理论上,任何物品(不仅仅是链条)都可以添加到这个标签中,但非链状块可能会渲染异常,而非块物品(无法放置的物品)如果没有在数据映射中添加自定义纹理,其渲染效果将与原版 Minecraft 的链完全相同。
通过数据映射添加自定义纹理 (v0.0.4)
v0.0.4 添加了一个数据映射,可用于在物品用于连接链式传送带时为块和物品添加自定义纹理。数据映射位于 createchaincompat/data_maps/item/chain_tex_data.json。这也允许使用 /reload 命令进行热重载,以便在游戏中快速测试你的更改!
参见下面的示例条目:
{
"values": {
"minecraft:melon_slice": {
"texture": "minecraft:textures/block/melon_side.png"
}
}
}
注意:西瓜片默认并未添加到 valid_for_chain_conveyor 标签中。它仅作为如何使用此功能的示例。
已知问题
在进入包含“原版”链式传送带的现有世界时游戏崩溃。 已在 v0.0.2 修复
当链条的块纹理位置与块本身的资源位置不匹配时,纹理将无法正确加载。我正在尝试找出一种更好的方法来获取预期的纹理。 已在 v0.0.4 修复
在安装此附加模组之前,在未安装此附加模组的已有世界中潜行右键点击带有链条连接的链式传送带,不会将任何链条返还给玩家的背包。 已在 v0.1.0 修复
Create: Chain Conveyors Compat
This Create addon for Neoforge 1.21.1 allows any item to be used for connecting chain conveyors via a unique tag.
The chain items featured in the screenshots are from TerraFirmaCraft as this addon was initially intended to support those exclusively, but TFC is not a dependency, and this addon can be used to add chain conveyor functionality to items from any mod. The code is partially based on the implementation of this feature in the WoodenCog addon for Forge 1.20.1 by manubarrach.
This mod's entire implementation is built on mixins, and as I'm not terribly experienced in working with these, I can't guarantee its compatibility with other mods or addons that affect the behavior of Create's Chain Conveyors.
Compatibility Notes
- TerraFirmaCraft (Out-of-the-box compatibility)
- Create Aeronautics (Modded chains work on chain conveyors on physics contraptions)
- Quark, Supplementaries, Farmer's Delight (Rope can be added to tag, but the default rendering looks very broken. As of v0.1.0, a generic rope texture is included in the mod, together with conditionally-loaded data map entries for these items. Users are no longer required to supply their own replacement texture for these items to appear without broken rendering)
- Let me know how it gets along with other mods!
Adding Compatibility for Modded Chains
Items that can be used to connect chain conveyors are included in the item tag #createchaincompat:valid_for_chain_conveyor. By default, this tag inherits from the #c:chains tag. Valid connectors for chain conveyors can be added to the tag using datapacks, KubeJS, or any other method for adding tags to items. Theoretically, any item (not just chains) can be added to this tag, but non-chainlike blocks may render strangely and non-block items (items that cannot be placed) will render identically to the vanilla minecraft chain unless a custom texture for that item is added to the data map.
Adding Custom Textures via Data Map (v0.0.4)
v0.0.4 adds a data map that can be used to add custom textures for blocks and items when they are used to connect chain conveyors. The datamap is located at createchaincompat/data_maps/item/chain_tex_data.json. This also allows for live reloading with the /reload command to quickly test your changes ingame!
See the example entry below:
{
"values": {
"minecraft:melon_slice": {
"texture": "minecraft:textures/block/melon_side.png"
}
}
}
Note: the melon slice is not added to the valid_for_chain_conveyor tag by default. It is only included as an example of how to use this feature.
Known Issues
Game crashes when loading into an existing world with "vanilla" chain conveyors. Fixed in v0.0.2
In cases where the chain's block texture location does not match the resource location of the block itself, the texture will not load properly. I'm trying to work out a better way to get the intended texture. Fixed in v0.0.4
Sneak-wrenching chain conveyors in pre-existing worlds with chain connections made before installing this addon will not return any chains to the player's inventory. Fixed in v0.1.0
评论 0
登录后参与评分
还没有评论,来抢沙发吧