-
Notifications
You must be signed in to change notification settings - Fork 1
1.2.0
JasperLorelai edited this page Nov 8, 2024
·
1 revision
Requires MagicSpells 4.0 beta 11 on 1.18.2 or above.
Added placeholders:
%ms_item_ms_[magicItemName]%
%ms_item_nbt_[magicItemName]%
%ms_item_amount_[magicItemName]%
Arguments in []
brackets are required, while arguments in ()
are optional - the placeholders will work without them.
Placeholder | Description | Requires target |
---|---|---|
%ms_variable_[varName],(precision)% |
Returns MS variable value of the target, string or floating point. The name may have leading spaces. | If the variable type isn't global. |
%ms_variable_max_[varName],(precision)% |
Returns maximal value of MS variable value of the target, floating point. The name may have leading spaces. | No |
%ms_variable_min_[varName],(precision)% |
Returns the minimal value of MS variable value of the target, floating point. The name may have leading spaces. | No |
%ms_cooldown_[spellName],(precision)% |
Returns MS initial spell cooldown. The name may have leading spaces. | No |
%ms_cooldown_now_[spellName],(precision)% |
Returns current MS spell cooldown of the target. The name may have leading spaces. | Yes |
%ms_charges_[spellName]% |
Returns MS initial spell charges. The name may have leading spaces. | No |
%ms_charges_consumed_[spellName]% |
Returns consumed charges of the target. The name may have leading spaces. | Yes |
%ms_mana% |
Yes | |
%ms_mana_max% |
Yes | |
%ms_buff_[spellName],(precision)% |
Returns initial buff spell duration. The name may have leading spaces. | No |
%ms_buff_now_[spellName],(precision)% |
Returns current buff spell duration of the target. The name may have leading spaces. | Yes |
%ms_selectedspell% |
Returns the internal name of the selected spell on the target's item. | Yes |
%ms_selectedspell_displayed% |
Returns the external name of the selected spell (from the name property) on the target's item. |
Yes |
%ms_data_[dataElement]% |
Data elements can be found here DataLivingEntity Or DataEntity. | If the data element does. You should try it before using it in production. |
%ms_item_ms_[magicItemName]% |
Returns the item in Magic Item String format. | No |
%ms_item_nbt_[magicItemName]% |
Returns the item in NBT string format. | No |
%ms_item_amount_[magicItemName]% |
Returns the item amount, because the NBT format does not include it. | No |