Custom assets
data/resources.customAsset(<Path/File object pointing to the original file>, "<internal file name>", "<subdir 1>", "<subdir 2>", "<subdir 3>"...);// This code copies the test.png file in the game instance directory and registers it as "funnymod:funny/veryfunny/test.png"
VirtualDataPack data = new VirtualDataPack("funnymod");
data.customAsset(FMLPaths.GAMEDIR.get().resolve("test.png"), "test.png", "funny", "veryfunny");Last updated