- Fixed console command completion for some commands.
- Fixed showing mana on the food bar so that food changes are fake and food levels aren't modified.
- Fixed modifying global variables without a player.
- Fixed
RepairSpell
saving the repairedchestplate
into thehelmet
slot. - Fixed an issue that caused targeting to fail on players if
can-target
was not specified. - Fixed
SilenceSpell
overriding its targeting to always target players. - Fixed an issue that caused invalid entries in
remove
on CleanseSpell to cause an error. - Fixed NPE (error) caused by
FlightPathSpell
optionland-spell
not being specified. - Fixed
ExternalCommandSpell
block-chat-output
without ProtocolLib sending black lines even whenstr-blocked-output
is empty.
/ms cast as
and/ms cast on
will now return the UUID/username of the ray-traced target first.- Added
/ms util listgoals [uuid]
command for listing mob goals of an entity. - Added
clientbrandname
data element andclientname
modifier condition (ConditionVar should be the name to compare to for the condition to pass). If the client didn't send this information, the brand name will benull
(empty with the data element). For the Notchian client this name defaults tovanilla
. Some modified clients report other names such asforge
&fabric
. - Added
store-chat-output
(Variable name) toExternalCommandSpell
- requires ProtocolLib.
These options support dynamic values through numeric or string expressions.
Option | Description | Type | Default |
---|---|---|---|
name |
Displayed text. | String | |
color |
ARGB Color | ff000000 (black) |
|
viewer |
Can be: caster , target , or position . |
String | position |
lifetime |
In milliseconds. | Integer | 1000 |
broadcast |
Sent to all players in the same world. | Boolean | false |
use-viewer-as-target |
Determines whether the viewer of the effect should be used as the "target" in expressions. | Boolean | false |
use-viewer-as-default |
Determines whether the viewer of the effect should be used for "recipient" in expressions. | Boolean | true |
Option | Description | Type | Default |
---|---|---|---|
viewer |
Can be: caster , target , or position . |
String | position |
broadcast |
Removed for all players in the same world. | Boolean | false |
Targets: location
.
spell-class: ".targeted.StructureSpell"
Options (support expressions):
structure-key
(NamespacedKey)rotation
(StructureRotation,none
by default)mirror
(Mirror,none
by default)palette
(Integer,0
by default) - The palette index of the structure to use, starting at0
, or-1
to pick a random palette.integrity
(Float,1
by default) - Determines how damaged the building should look by randomly skipping blocks to place. This value can range from 0 to 1. With 0 removing all blocks and 1 spawning the structure in pristine condition.include-entities
(Boolean,true
by default)relative-offset
(Vector)absolute-offset
(Vector)point-blank
(Boolean,false
by default)
Targets: entity
.
spell-class: ".targeted.MobGoalEditSpell"
You cannot add vanilla goals as that is still WIP on PaperMC's side but they could be rewritten as custom goals. Currently the only custom goals we provide are: look_at_entity_type
and path_to
.
Custom goals are removed from entities during server restart and sometimes during chunk unload (where the entity is). At the moment to have persistent goals you have to apply them along with a TagEntitySpell
, then on the magicspellsloading
passive trigger target all entities with an AOE spell with ignore-radius
, filtering for entities with the applied tag, then target them with the same MobGoalEditSpell
spell to re-apply goals.
Options:
remove-all
- Boolean,false
by default, supports expressions.remove-types
- List of GoalType.remove-vanilla
- List of VanillaGoal. While you could useremove
with the appropriate namespaced key (minecraft:...
), the key sometimes differs from the VanillaGoal field name. This option also throws errors on invalid VanillaGoals listed - goals are often removed or renamed between minecraft versions.remove
- List of NamespacedKey strings.magicspells
is the default namespace if left unspecified.add
- List of configuration sections to configure a custom goal to be added. Each should have agoal
to specify the custom goal to add, an optionalpriority
option (Integer, 0 by default), and adata
configuration section to pass possibly required additional data to a goal. Example:
add:
- goal: path_to
priority: 1
data:
position:
x: "%var:meta_location_x%"
y: "%var:meta_location_y%"
z: "%var:meta_location_z%"
These options support dynamic values through numeric or string expressions.
Due to default values, data
in this goal isn't required.
Option | Type | Default |
---|---|---|
range |
Float | 10 |
chance |
Float | 100 |
only-horizontal |
Boolean | false |
type |
Entity Type | player |
In this goal data
is required because position
is required.
Option | Description | Type | Default |
---|---|---|---|
speed |
Walk speed. | Double | 0.2 |
position |
Position in the same world as the entity, hence a vector. | Vector | |
distance-allowed |
Distance above which to activate the goal. | Double | 1 |