Special Conditions - DragonSurvivalTeam/DragonSurvival GitHub Wiki

Description

Dragon Survival adds some special conditions. At the moment this is just used to check if specific items are held in specific slots.

MatchItem

Matches an ItemPredicate to a given slot:

  • offhand
  • head
  • chest
  • legs
  • feet

Schema

{
    "predicate": [ItemPredicate]         // [Optional]  || The item predicate to match against.
    "slot": [Slot]                       // [Mandatory] || The slot to apply the predicate to. Either offhand, head, chest, legs, or feet.
}

Example

{
  "condition": "dragonsurvival:match_item",
  "predicate": {
    "items": "#dragonsurvival:light_source"
  },
  "slot": "offhand"
}