Skip to content

DowseSpell

MomoPewpew edited this page Jul 28, 2023 · 8 revisions

Source Code

spell-class: ".instant.DowseSpell"

Description:

Instant spell. Finds blocks or entities in a certain radius

Configuration Options:

Option Description Default Value
block-type The block type to find. Overrides entity-type. ""
entity-type The entity type to find ""
str-not-found The message that is displayed when the block is not found. No dowsing target found.
radius The search radius. Affected by Spell Power 4
set-compass Whether to set the compass target to the found block/entity. true
rotate-player Whether to rotate the player to face the found block/entity. true

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.
Clone this wiki locally