Modern Modpacks
Hellish Mods
Hellish Mods
  • 👋Welcome!
  • 🧊KesseractJS
    • Creating fake mods
  • 💿Modern Custom Discs
    • Adding discs
  • ⌨️Digitality API
    • Introduction
    • Installing and initializing
    • Resource packs
      • Textures
      • Models
      • Sounds
      • Lang files
    • Data packs
      • Recipes
      • Tags
    • Custom assets
  • 🌐Website
  • 🍧Modern Modpacks Docs
Powered by GitBook
On this page
  1. Digitality API
  2. Resource packs

Textures

To create a new texture, call your virtual resource pack's texture method.

resources.texture("<type (item/block/etc)>", <Path/File object pointing to your original texture file>, "<internal resource name (optional)>");
Example
// This code registers the "test.png" file in the game's instance directory as "minecraft:item/diamond", overriding the original texture
VirtualResourcePack resources = new VirtualResourcePack("minecraft");
resources.texture("item", FMLPaths.GAMEDIR.get().resolve("test.png"), "diamond");

Note: The texture.png.mcmeta file will be added automatically.

PreviousResource packsNextModels

Last updated 2 years ago

⌨️