EntombSpell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".targeted.EntombSpell"

targeting cast argument values:

Value Supported
entity true
location false
entity_from_location false

Spell Effect Positions:

  • special - Plays the effect at the center of every block making up the tomb when the tomb is placed.
  • blockdestruction - Plays the effect at the center of every block making up the tomb when the spell ends.

Description:

Targeted Spell which entombs the target.

Configuration:

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

Option Description Type Default Supports Expressions
block-type Block data used for the tomb. String "glass" true
duration Duration of the entomb (in ticks). Integer 20 true
power-affects-duration Since 4.0 Beta 13. Boolean true true
allow-breaking If the target is allowed to break the tomb. Boolean true false
close-top-and-bottom Determines if the top and bottom of the tomb are open or not. Boolean true true
block-destroy-message Message to send when someone tries to break the entomb. String false

Example:

Entomb: 
    spell-class: ".targeted.EntombSpell"
    name: Entomb
    cast-item: stick
    cooldown: 20
    allow-breaking: false
    block-type: stone
    duration: 120
    str-cast-target: "%a has entombed you."