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. Data packs

Recipes

PreviousData packsNextTags

Last updated 2 years ago

As with and , recipes also have subtypes, for now digitality only supports shapeless crafting recipes, but we are aiming to expand the support in the future.

Shapeless crafting

data.shapelessRecipe("<recipe id>", new ItemTemplate("<item name>", "<item count (optional)>"), <ArrayList of ingredient names/ingredient 1>, "<ingredient 2>"...);
Example
// This code registers the "funnymod:test" recipe that produces 2 sticks and uses a diamond block and a golden carrot as the ingredients
VirtualDataPack data = new VirtualDataPack("funnymod");
data.shapelessRecipe("test", new ItemTemplate("minecraft:stick", 2), "minecraft:diamond_block", "minecraft:golden_carrot");
⌨️
models
tags
In-game demonstration