Skip to content

Conditions

Daomephsta edited this page Nov 20, 2020 · 11 revisions

In Biome

Name: morelootstuff:in_biome
Tags:

  • biomes - An array of biome registry ids as strings.
  • target - Which entity is used as the position reference. If the entity is unavailable the condition will return false.
    One of:
    • "looted_entity" - See Loot Contexts
    • "player" - The player that killed the entity, gained the advancement, used the fishing rod, or opened the chest
    • "killer" - The killing entity
    • "old_behaviour" - Default value. Targets the looted entity if available, otherwise targets the player.

Description:
Returns true if the position of the reference is in one of the specified biomes.


In Biome Type

Name: morelootstuff:in_biome_of_type
Tags:

  • types - An array of biome type ids as strings.
  • target - Which entity is used as the position reference. If the entity is unavailable the condition will return false.
    One of:
    • "looted_entity" - See Loot Contexts
    • "player" - The player that killed the entity, gained the advancement, used the fishing rod, or opened the chest
    • "killer" - The killing entity
    • "old_behaviour" - Default value. Targets the looted entity if available, otherwise targets the player.

Description:
Returns true if the position of the reference is in a biome matching at least one of the specified types.


In Bounds

Name: morelootstuff:in_bounds
Tags:

  • minX - minimum X coordinate of the bounding box. Defaults to -30,000,000.
  • minY - minimum Y coordinate of the bounding box. Defaults to 0.
  • minZ - minimum Z coordinate of the bounding box. Defaults to -30,000,000.
  • maxX - maximum X coordinate of the bounding box. Defaults to 30,000,000.
  • maxY - maximum Y coordinate of the bounding box. Defaults to 255.
  • maxZ - maximum Z coordinate of the bounding box. Defaults to 30,000,000.
  • target - Which entity is used as the position reference. If the entity is unavailable the condition will return false.
    One of:
    • "looted_entity" - See Loot Contexts
    • "player" - The player that killed the entity, gained the advancement, used the fishing rod, or opened the chest
    • "killer" - The killing entity
    • "old_behaviour" - Default value. Targets the looted entity if available, otherwise targets the player.

Description:
Returns true if the position of the reference is within the specified bounds. The range check is inclusive for both minimum & maximum.

You do not have to specify the values of every tag of this condition. If a tag's value is not specified, a default value is used. This allows you to for example, only specify maxY, which would make the condition only return true if the looted object is below the specified y coordinate.


In Dimension

Name: morelootstuff:in_dimension
Tags:

  • dimID - The integer ID of the dimension to check for.
  • target - Which entity is used as the dimension reference. If the entity is unavailable the condition will return false.
    One of:
    • "looted_entity" - See Loot Contexts
    • "player" - The player that killed the entity, gained the advancement, used the fishing rod, or opened the chest
    • "killer" - The killing entity
    • "old_behaviour" - Default value. Targets the looted entity if available, otherwise targets the player.

Description:
Returns true if the reference is in the specified dimension.


Killed by Real Player

Name: morelootstuff:killed_by_real_player
Tags:

  • inverse - If true, the condition's behaviour is inverted. Defaults to false.

Description:
If not inverted, returns true if the looted mob was killed by a player that is not a fake player.
If inverted, returns true if the looted mob was killed by a fake player. If the killing player is not available the condition silently returns false.

To determine what information is available in a given situation, see Loot Contexts.


Has Game Stage

Name: morelootstuff:has_stage
Requires the Game Stages API
Tags:

  • stage - A stage name

Description:
Returns true if the player has the specified stage. If the player is not available the condition silently returns false.

To determine what information is available in a given situation, see Loot Contexts.


Has Any Of Game Stages

Name: morelootstuff:has_any_of_stages
Requires the Game Stages API
Tags:

  • stages - An array of stage names

Description:
Returns true if the player has any of the specified stages. If the player is not available the condition silently returns false.

To determine what information is available in a given situation, see Loot Contexts.


Has All Game Stages

Name: morelootstuff:has_all_stages
Requires the Game Stages API
Tags:

  • stages - An array of stage names

Description:
Returns true if the player has all of the specified stages. If the player is not available the condition silently returns false.

To determine what information is available in a given situation, see Loot Contexts.