Skip to main content
Version: 26.3

Other Hooks

PackRepositoryHooks

dev.architectury.hooks.PackRepositoryHooks

PackRepositoryHooks.addSource(packRepository, myRepositorySource);

addSource(PackRepository, RepositorySource) registers an extra pack source into a pack repository - for example, to ship a built-in resource or data pack with your mod.

Removed in 22.0

DyeColorHooks was removed in Architectury API 22.0. Call the vanilla DyeColor#getTextureDiffuseColor() directly instead; both loaders resolve it identically, so the hook no longer added anything.