Back to mods
Data Criteria project artwork

Modrinth · Minecraft mod

Data Criteria

Data-driven advancement criteria

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Data Criteria release should I use?

Updated 3 years ago
Latest stable file 1.0.1+1.20
Game version 1.20, 1.20.1
Loader Fabric, Quilt

Data Criteria 1.0.1+1.20 targets 1.20, 1.20.1 with Fabric, Quilt. Do not install it on the client. It must be installed on the dedicated server. 1 required mod needs a matching file.

Where it goes

Is Data Criteria required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release Fabric, Quilt
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked server-only.

What else does Data Criteria 1.0.1+1.20 need?

1.0.1+1.20. Change the file and its required mods may change too.

1 required mod needs a matching file

Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.

Fabric API Needed by Data Criteria 1.0.1+1.20
required
No matching file

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Data Criteria without breaking your instance.

Built for Data Criteria 1.0.1+1.20. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.1+1.20. It targets 1.20, 1.20.1 with Fabric, Quilt; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.1+1.20. It opens that exact file at the source.

About this project

What does Data Criteria add?

Why?

Check out this page for an example of creating advancement criteria without this mod. See the rest of the wiki for complete documentation.

Example

1 - Create a criterion file. parameters is an ordered list of parameter names and types to pass in and check for. Make sure to group optional parameters at the end.

data/namespace/criteria/int_and_bool.json

{
  "parameters": [
    {
      "name": "number",
      "type": "datacriteria:int"
    },
    {
      "name": "possible",
      "type": "datacriteria:bool",
      "optional": true
    }
  ]
}

2 - Use the criterion within an advancement file.

{
  // ...
  "criteria": {
    "test": {
      "trigger": "namespace:int_and_bool",
      "conditions": {
        "number": 5,
        // As 'possible' is optional, it's not required in the conditions
      }
    }
  }
  // ...
}

3 - Trigger the criterion through DataCriteriaAPI.

DataCriteriaAPI.trigger(
    new Identifier("namespace:int_and_bool"),
    serverPlayer,
    // The parameters begin here
    10, true
);

License

MIT © 2022 spadeteam

Project description from Modrinth.

Pick your setup

Data Criteria by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

16 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Data Criteria versions and loaders

11 of 11 releases match

Looking for an older file? The official Modrinth project page is in Resources.