Back to mods
Data Criteria project artwork

CurseForge · 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 Fabric for 1.20-1.20.1
Game version 1.20.1, 1.20
Loader Fabric, Quilt

Data Criteria 1.0.1 Fabric for 1.20-1.20.1 targets 1.20.1, 1.20 with Fabric, Quilt. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.

Where it goes

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

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
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

The source does not explicitly classify this release as client-only or server-only.

What else does Data Criteria 1.0.1 Fabric for 1.20-1.20.1 need?

1.0.1 Fabric for 1.20-1.20.1. Change the file and its required mods may change too.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by Data Criteria 1.0.1 Fabric for 1.20-1.20.1
required
Matching file found Matched file: [1.20.1] Fabric API 0.92.12+1.20.1

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 Fabric for 1.20-1.20.1. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

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

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.1 Fabric for 1.20-1.20.1. It opens that exact file at the source.

About this project

What does Data Criteria add?

Data-driven advancement criteria.

Why?

Check out this page for an example of creating advancement criteria without this mod. See the 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
}
]
}

  1. 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
}
}
}
// ...
}

  1. 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 CurseForge.

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

10 of 10 releases match

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