
Modrinth · Minecraft mod
Data Criteria
Data-driven advancement criteria
Quick answer
Which Data Criteria release matches 1.19?
Data Criteria 1.0.1+1.19 targets 1.19, 1.19.1, 1.19.2 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.
This file is marked server-only.
What else does Data Criteria 1.0.1+1.19 need?
1.0.1+1.19 on 1.19. Every mod below is checked against that same setup.
Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.
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.19 on 1.19. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.0.1+1.19. It targets 1.19, 1.19.1, 1.19.2 with Fabric, Quilt; another release may have different loader, side or dependency requirements.
- 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.
- 03
Put it on the correct side
Do not install it on the client. It must be installed on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.0.1+1.19. 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.
1.20.1
2 loader builds1.20
2 loader builds1.19.4
2 loader builds1.19.3
2 loader builds1.19.2
2 loader builds1.19.1
2 loader builds1.19
2 loader builds1.18.2
2 loader buildsCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Data Criteria versions and loaders
1.0.1+1.19
datacriteria-1.0.1+1.19.jar
17 Jul 2023
1.0.0+1.19
datacriteria-1.0.0-beta.3+1.19.jar
27 Dec 2022
1.0.0-beta.2+1.19
datacriteria-1.0.0-beta.2+1.19.jar
27 Dec 2022
1.0.0-beta.1+1.19
datacriteria-1.0.0+1.19.jar
21 Dec 2022
Looking for an older file? The official Modrinth project page is in Resources.