ConjureBookSpell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".instant.ConjureBookSpell"
Value Supported
entity false
location true
entity_from_location false
  • special - Plays the effect at the dropped item's location.

Description:

The spell conjures a book formatted by the configuration.

Configuration:

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

Option Description Type Default
pickup-delay If add-to-inventory is set to false, this will determine the pickup delay in server ticks. Integer 0
gravity Defines whether the dropped item should float. Boolean true
open-instead Whether the book should be opened when the spell is cast. If this option is set to true, the book will not be added to the caster's inventory or dropped. Boolean false
add-to-inventory Defines if the book should be dropped or spawned in the next free slot. Boolean true
title Rich Text "Book"
author Rich Text "Steve"
pages String list of Rich Text
lore Item's lore. String list of Rich Text

Additional Placeholders:

  • title, author, pages, and lore:
    • {{name}}: Caster's name.
    • {{disp}}: Caster's display name.
    • {{<index>}} starting from {{1}}: Passed spell cast arguments.

Example:

book:
    spell-class: ".instant.ConjureBookSpell"
    add-to-inventory: false
    pickup-delay: 100
    title: "Book of Magic"
    author: "nisovin"
    pages: ["&9Looks like...","&9You were fooled &4%a&9."]
    effects:
      cloud:
        position: special
        effect: particlecloud
        particle-name: end_rod
        radius: 2
        radius-per-tick: 0.01
        duration: 100
        y-offset: 0.2
⚠️ **GitHub.com Fallback** ⚠️