Conditions
These conditions are added by Crucible, and are meant to be used to check players and/or items (although they may work for other things too, depending on the condition)
Of course, all other existing MythicMobs conditions can still be used when scripting your items in every relevant place.
You can view all base conditions by clicking here.
| Conditions | Description |
|---|---|
| AttackOnCooldown | Checks if the player has an active attack cooldown |
| BlockHardness | Checks the hardness of the block at the target location |
| ContainerType | Checks the inventory type of the container involved in the trigger |
| CustomModelData | Tests the custom model data the calling item as |
| EnchantmentLevel | Checks the enchantment level in the skill's enchant-level variable |
| EquipSlot | Matches the equipment slot the skill was called from |
| HasInventorySpace | Checks how many empty slots the player's inventory has |
| HasItem | Checks if the player has a matching item in their inventory |
| HasSetPieces | Checks how many pieces of an equipment set the player has equipped |
| IsCrossbowCharged | Checks if the triggering crossbow has charged projectiles |
| ItemAmmo | Checks the player's current ammo count |
| ItemDurability | Checks the remaining durability of an item |
| ItemReloading | Checks if the player's ammo weapon is reloading |
| ItemUpgradeLevel | Checks the level of the item in the specified slot |
| MatchesTriggerBlock | Checks if the trigger block matches the block at the target location |
| MatchesTriggerBlockBreakingSpeed | Checks if the target block breaks at least as fast as the trigger block |
| MythicKeyId | Matches the key ID the skill was called from |
Furniture Conditions
| Conditions | Description |
|---|---|
| FurnitureDirection | Checks if the targeted Furniture entity has a specific direction |
| IsFurniture | Checks if the targeted entity is a Furniture or if there is a Furniture entity at the targeted location |
| FurnitureState | Checks if the target Furniture's is the specified one |
| FurnitureType | Checks the type of furniture being targeted |