Create a Custom Infinity Drive Using KubeJS
Understanding Custom Drive Creation
The mod supports KubeJS scripting, allowing you to create Infinity Drives for resources beyond the built-in water, lava, and cobblestone. This requires editing your KubeJS scripts in your modpack's kubejs/ folder.
Writing Your Script
Define a new drive by specifying:
- The resource type (item or fluid)
- The drive's display name and appearance
- Any special properties or restrictions
Refer to your mod's KubeJS documentation for the exact syntax and available parameters. Test your script by reloading KubeJS in-game using /kubejs reload.
Using Your Custom Drive
Once created, craft your custom drive using the recipe you've defined. Place it in the Infinity Drive Block's GUI just like the built-in drives. The block will recognize it and provide infinite access to your chosen resource.
Custom drives work with all the same extraction methods as standard drives—pipes, buckets, and mod handlers all function identically.