Buff Carpet Spell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".buff.CarpetSpell"

Targeting:

This spell can be cast by/on all living entities.

Description:

Summon a carpet at the entity's feet. It will follow the entity as it moves. If it jumps, it will move up. If the entity is a player, they can sneak to make it move downwards.

Buff Uses:

Buff spell Uses increment whenever the carpet moves.

Configuration:

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

Option Description Type Default
platform-block What material the platform is made of. String "glass"
size Integer 2

Example:

carpet:
    spell-class: ".buff.CarpetSpell"
    size: 2
    platform-block: glass
    duration: 10