ModsFinder

Data Criteria

by spadeteam

Data Criteria lets datapack authors define custom advancement criteria in JSON, which can then be used inside advancement files and triggered from code.

FabricQuiltServer-side onlyMIT LicenseOpen source1.18.2 – 1.20.1

What it does

Authors create a criterion file under data/namespace/criteria, list its parameters with their names and types, and then reference that criterion from an advancement file. The mod ships with int and bool criteria as examples. Code can fire a criterion through the DataCriteriaAPI, which lets a mod or datapack react to events that vanilla does not track. Fabric API is required, and the mod is published for Fabric and Quilt for 1.18.2 – 1.20.1.

Key features

  1. Data-driven criteria

    Criteria are declared in JSON files, so datapacks can add new advancement conditions without Java code.

  2. Typed parameters

    Each criterion lists its parameters in order, with a name and type for every one, and optional parameters must come at the end of the group.

  3. API trigger

    Code calls DataCriteriaAPI to trigger a criterion, which then counts toward any advancement that uses it.

Compatibility

Latest build for each game version and loader.

1.20.11.0.1+1.201.0.1+1.20
1.201.0.1+1.201.0.1+1.20
1.19.41.0.1+1.19.41.0.1+1.19.4
1.19.31.0.0+1.19.31.0.0+1.19.3
1.19.21.0.1+1.191.0.1+1.19
1.19.11.0.1+1.191.0.1+1.19
1.191.0.1+1.191.0.1+1.19
1.18.21.0.0+1.18.21.0.0+1.18.2
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 1

Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required

Questions

Does Data Criteria need Fabric API?

Yes. Fabric API is listed as a required dependency, so it must be installed alongside Data Criteria on Fabric or Quilt.

In the catalog

Data Criteria is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 34,764 mods support Minecraft 1.20.1.

More from spadeteam

All projects

Similar mods

What the author says

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. 2 - Use the criterion within an advancement file.
spadeteam, on the Modrinth page

Official listing

Owner
spadeteam
Published
2022-12-21
Updated on Modrinth
2023-07-17
Facts verified
2026-10-15

Tags