Download Game Stages Conditions — Minecraft Mods — MetaMods

Game Stages Conditions

Active

Downloads

0

Last update

2 years ago
Client
Fabric
Quilt
Forge
Neoforge
Utils
Addons

Game Stage Conditions

Game Stage Conditions

This addon introduces special predicates for checking player stages that can be used in various data files. The system is designed to create adaptive content that depends on the player's progress in using Game Stages mod.

JSON loot table example

How It Works

The main function of the mod is adding conditions based on game stages. This is particularly useful when configuring loot tables, where chest content or mob drops can change according to the character's current development stage.

Usage Example

Here's a working example of a loot table configuration considering three scenarios: for the second stage, first stage, and standard option (if no stage is activated):

{ "type": "minecraft:chest", "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:alternatives", "children": [ { "type": "minecraft:loot_table", "name": "minecraft:chests/end_city_treasure", "conditions": [ { "condition": "gamestageconditions:stage", "stage": "stage_2" } ] }, { "type": "minecraft:loot_table", "name": "minecraft:chests/ruined_portal", "conditions": [ { "condition": "gamestageconditions:stage", "stage": "stage_1" } ] }, { "type": "minecraft:loot_table", "name": "minecraft:chests/jungle_temple" } ] } ] } ] }

Advanced Trigger Features

Starting from version 1.2, the mod also includes helper triggers for achievements and other systems. These elements allow tracking events of adding or removing game stages.

Game stage added trigger example Game stage removed trigger example

Compatibility

This mod requires the main Game Stages module, which manages the player stage system. The functionality optimally integrates with other modifications that extend loot system capabilities.

Project members
Quarris

Quarris

Created: 18 Oct 2023

ID: 25769