
ModsJava
Data Criteria
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
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
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.20, 1.20.1
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Verified by MCModsHub
- Ships as datacriteria-1.0.1+1.20.jar — drop this file into the mods folder
- Download size: 205 KB
- Download link checked 31 Aug 2026 — working
These come from our own check of the pack file, not from the source page.