Description
This is an example datapack for customizing Custom Conduit. Custom Conduit is a mod that adds a special conduit block to the game which is designed to allow modpack authors to customize and configure it to their liking and make any conduit that they desire.
This is an example datapack and resource pack for customizing that mod, making an End and shulker-themed conduit that provides the player with levitation.
See instructions for customization below for changing it, or you can use it out of the box as the default Levitation conduit (requires base mod either way). For the datapack to function as intended, you will need to edit the mod's config to apply the potion effect "minecraft:levitation" to the player.
Customizing for use in a modpack:
You will need three components to fully customize the Custom Conduit: a datapack, a resource pack, and the provided configuration file. This example datapack includes the resource pack. You can load both at once with a mod like Global Packs.
The datapack is used to tag the frame blocks, provide the recipe for the Custom Conduit itself, and determine what entities the Custom Conduit will target and damage.
With this datapack, the tagged frame blocks are purpur block and purpur pillar while the tagged entities are shulkers. You can add or entirely change these according to your needs by changing the tags. You can likewise change the recipe for the Custom Conduit. Make sure all the tags are set to "replace: true" to function correctly.
Your datapack will need to include:
- The tag for the frame blocks "custom_conduit:conduit_block".
- The tag for targeted hostile entities "custom_conduit:conduit_targets".
- The recipe ID for the Custom Conduit "custom_conduit:custom_conduit_recipe".
The resource pack is used to change the texture (and optionally the model, as demonstrated by the example pack) of the Custom Conduit. It is recommended that these be in theme with the frame blocks and whatever potion effect the Custom Conduit will be configured to provide.
Your resource pack will need to include:
- The texture for the inactive Custom Conduit (optionally its model)
- The texture for the activate Custom Conduit (optionally its model)
- The texture for the particle that appears when the Custom Conduit is active
- Optionally you can change the lang files to whatever you need
The configuration file will be used to determine what conditions are required for the Custom Conduit to function, what players will receive the effect, what potion effects it will give to players who meet the conditions, and if, how much, and at what range it will damage entities. The example datapack only intends for config to be changed to apply the "minecraft:levitation" potion effect to the player.
The mod's configurable properties include:
- Whether or not the Custom Conduit needs to be waterlogged
- Whether or not the player needs to be in water or rain
- Whether or not the player needs to be on fire or in lava
- Whether debug messages are enabled (your chat will get very fully very fast)
- Whether or not the Custom Conduit should damage hostile entities
- From what distance it should target hostile entities (if enabled)
- How much damage it should apply to hostile entities (if enabled)
- What potion effect or effects should be applied to players within the Custom Conduit's range (you can add more than one)
- The level of the applied potion effect(s)
- Whether the applied potion effect(s) particles will be hidden
Known issues:
The Shulker-themed Custom Conduit (from the example resource pack) has some minor issues with culled faces. It's an issue with my skills in Blockbench, not the mod or resource pack.
Note:
1.20.1 is the current supported version, but it should work with any version if Custom Conduits is ported in the future.
You are welcome to include this datapack and the base mod in any modpack


