DowseSpell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".instant.DowseSpell"

Description:

Instant spell. Finds blocks or entities in a certain radius.

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 The block type to find. Overrides entity-type. String false
entity-type Can be either player, player:<playerName>, or entity type to find. String false
str-not-found The message that is displayed when the block is not found. Rich Text "No dowsing target found." true
radius The search radius. Affected by Spell Power Integer 4 true
power-affects-radius Since 4.0 Beta 13. Boolean true true
set-compass Whether to set the compass target to the found block/entity. Boolean true true
rotate-player Whether to rotate the player to face the found block/entity. Boolean true true

Additional Placeholders:

  • str-cast-self/target/others:
    • %d: Returns rounded block distance between the caster and target.

Examples:

dowse:
    spell-class: ".instant.DowseSpell"
    name: dowse
    description: Dowse for iron ore.
    cast-item: book
    cooldown: 60
    block-type: iron_ore
    entity-type: ""
    radius: 4
    rotate-player: true
    set-compass: true
    cost:
        - mana 35
        - stone 2
    str-cost: 35 mana and 2 stone blocks
    str-cast-self: There is iron ore nearby.
    str-not-found: No iron ore found nearby.
mob_dowse:
    spell-class: ".instant.DowseSpell"
    name: mobdowse
    description: Checks if there are nearby creepers!.
    cast-item: book
    cooldown: 60
    block-type: ""
    entity-type: "creeper"
    radius: 10
    rotate-player: true
    set-compass: true
    cost:
        - mana 35
    str-cost: 35 mana
    str-cast-self: There is creeper nearby.
    str-not-found: No creeper found nearby.
⚠️ **GitHub.com Fallback** ⚠️