Presets

Datapack presets

Predicate preset for conditional loot

7 min read · Updated May 16, 2026

This preset article shows how to build predicate preset for conditional loot in NBTForge. The workflow focuses on a predicate preset for loot checks, conditions, and resource-driven logic, then checks the generated output before the command or resource is saved for reuse.

Preset result

A reusable Data Pack preset for a predicate preset for loot checks, conditions, and resource-driven logic.

Output

Data Pack output

{
  "type": "minecraft:generic",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:diamond_sword"
        }
      ]
    }
  ]
}

Preset screenshot

NBTForge Data Pack screenshot for predicate preset minecraft
The Data Pack workbench screenshot shows the controls and output used for the predicate preset minecraft preset.

Build the preset

  1. Open the Data Pack workbench from the Preset article or the top-level workbench.
  2. Set Edition and Version before editing detailed fields so the output family is correct.
  3. Configure the fields that matter for predicate preset minecraft: name, target, entity, item, effect, or resource data depending on the preset.
  4. Review the generated output and warnings before copying anything into Minecraft.
  5. Save the result to Project or Command Pack when the preset belongs to a larger setup.

Why this datapack presets article is useful

Predicate preset for conditional loot is useful because it turns a repeatable Minecraft command idea into a visible NBTForge workflow. Instead of rebuilding the command from memory, the preset keeps the important settings close to the screenshot and output.

The main search intent is "predicate preset minecraft". The article should answer that intent quickly, then show the exact module and controls that produce the command or datapack resource.

Version and output checks

NBTForge output can change by Java version family, especially for item components, legacy item NBT, entity passengers, and Bedrock-safe commands.

Use the generated screenshot and the output panel together. The screenshot explains the controls, while the output is the command or JSON that should be copied or saved.

  • Check Java or Bedrock before copying.
  • Read warnings when the preset uses Java-only data.
  • Use Project when the preset needs more than one command.
  • Keep the screenshot updated whenever the UI workflow changes.

FAQ

Can I reuse this predicate preset minecraft preset in another command?

Yes. Save the generated Data Pack output to Project or copy the relevant item, entity, or resource settings into another NBTForge workflow.

Does this preset work in every Minecraft version?

Not always. Check the selected Edition and Version first. Java item components, legacy NBT, Bedrock ride behavior, and datapack formats can use different syntax.

Open this workflow

Start from the related Data Pack workbench, then adjust the preset fields for your world.