promotional bannermobile promotional banner
premium banner
A Create addon that adds a tag to allow additional items to be used to connect chain conveyors. For modpack development and adding compatibility with modded chains

Description

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 Manwe_b.

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. The data_map feature in v0.0.4 can be used to add a custom, better looking texture when they are placed on chain conveyors)
  • Let me know how it gets along with other mods!

Adding Compatibility for Modded Chains (or other items)

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 .json file 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