Skip to content
JasperLorelai edited this page Nov 8, 2024 · 2 revisions

Version 2.0.0:

Requires MagicSpells 4.0 beta 16 on 1.21.3 or above.

Changes:

Added placeholder %ms_item_component_[magicItemName]%.

Placeholders:

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_component_[magicItemName]% Returns the item in the data component string format. No
%ms_item_amount_[magicItemName]% Returns the item amount, because the NBT format and the data component format do not include it. No

Versions:

Clone this wiki locally