-
Notifications
You must be signed in to change notification settings - Fork 1
[1.18+] Game Stages
Insane96 edited this page Oct 1, 2022
·
1 revision
Game Stages can be used as a condition for mobs properties.
-
game_stages_unlocked
: An array of Game Stages objects- A game stages object
-
game_stages
: a list of game stages that the player has unlocked. -
player_mode
: Which player should be targeted to check if the game stages are unlocked?- "nearest": When a mob spawns, the game stages are checked only for the nearest player
- "any": When a mob spawns, the game stages are checked for any player in a 128 blocks radius
-
- A game stages object
Game Stages Objects in game_stages_unlocked
work as an OR condition, only one of the advancement objects must be fulfilled.
Game Stages in game_stages
instead work as an AND condition. All the advancements in the list must be fulfilled.
This example makes Skeletons get Resistance II when the player has unlocked the iron_age stage.
{
"mob_id": "minecraft:skeleton",
"potion_effects": [
{
"id": "minecraft:resistance",
"amplifier": 1,
"ambient": true
}
],
"conditions": {
"game_stages_unlocked": [
{
"game_stages": [ "iron_age" ],
"player_mode": "any"
}
]
}
}
This example makes Skeletons get Resistance II when the player has either unlocked the iron_age or the bronze_age stages
{
"mob_id": "minecraft:skeleton",
"potion_effects": [
{
"id": "minecraft:resistance",
"amplifier": 1,
"ambient": true
}
],
"conditions": {
"game_stages_unlocked": [
{
"game_stages": [ "iron_age" ],
"player_mode": "any"
},
{
"game_stages": [ "bronze_age" ],
"player_mode": "any"
}
]
}
}
This example makes Skeletons get Resistance II when the player has unlocked the iron_age and the bronze_age stages
{
"mob_id": "minecraft:skeleton",
"potion_effects": [
{
"id": "minecraft:resistance",
"amplifier": 1,
"ambient": true
}
],
"conditions": {
"game_stages_unlocked": [
{
"game_stages": [ "iron_age", "bronze_age" ],
"player_mode": "any"
}
]
}
}