Minecraft predicate builder

Data packs

AND, OR and NOT conditions as JSON and data packsLearn more

Build Minecraft predicates using time, weather, biome and held-item conditions. Combine AND, OR and NOT logic, then export JSON and a data pack.

My Game select version

Save your preferences in this browser and apply them to supported tools. Settings in a shared link take priority. Wiki version labels are not affected.

Configure your result

For example juxmc:custom. Use your namespace to avoid modifying vanilla files.

Files are processed on the server. The generated archive is cached for one hour; original uploads are not saved.

Result

Fill in the form to generate a ZIP archive, preview its files, and see the commands you need.

How to use the result

  1. Step 1

    Set the predicate ID and select the required conditions.

  2. Step 2

    Download the ZIP file into the world's datapacks folder and run /reload.

  3. Step 3

    Check the item in the player's hand using the /execute if predicate from the result. The item is checked on the executor of the command.

What to know

  • Empty field does not add a condition. Requires all conditions, OR — at least one; negation applies to the final expression.
  • Daytime ranges from 0 to 23999 ticks. A biome condition checks the location of execution, and an item condition checks the executor's main hand.

Frequently asked questions

What is a Minecraft predicate?

This is a named set of conditions in JSON. It can be used in /execute if predicate and other data pack mechanics.

Is a mod required for predicates?

No. The data pack works in the selected version of Minecraft Java without mods.