Condition_HasFlowerEnchant
Description
Checks if the flower object has a specific enchant applied.
Enchant refers to the Id field in FlowerEnchant.json. If S1 is empty, checks whether any enchant exists.
Parameters
| Parameter | Description |
|---|
| BaseObject | The flower entity to check for enchantment. |
| CompareType | Supported compare types: Equal, NotEqual. |
| S1 | The enchant ID to compare. If empty, checks for any enchant existence. |
Examples
| Description | BaseObject | Command | CompareType |
|---|
| Check if flower has any enchant applied | Target | HasFlowerEnchant | Equal |
| Check if flower has the Fire enchant | Target | HasFlowerEnchant | Equal |
| Check if flower does not have the Ice enchant | Target | HasFlowerEnchant | NotEqual |