Steed Spell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".instant.SteedSpell"

Spell Effect Positions:

  • disabled - Plays the effect at the caster's location when they dismount.

Description:

Summons a rideable entity.

Configuration:

Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.

Option Description Type Default Supports expressions
type Entity Type String "horse" true
gravity Whether gravity should be applied to the entity. Boolean true true
has-chest Whether mobs with chests should spawn with them. Boolean false true
jump-strength Jump strength for horses. Double 1 true
color Horse Color String true
style Horse Style String true
armor Armor of the horse defined as a Magic Item String. String false
str-invalid-type Message sent to the caster when the type is not an Entity Type. Rich Text "Invalid entity type." true
str-already-mounted Message sent to the caster when they try to use this spell while riding an entity. Rich Text "You are already mounted!" true
spell-on-spawn Sub-spell which is cast on spawn with the entity or its location as the target if applicable. String false

Example:

steed1:
    spell-class: ".instant.SteedSpell"
    gravity: true
    type: mule
    color: black
    style: none
    has-chest: true
    jump-strength: 0.3