Skip to content
AkitoBurrito edited this page Jan 30, 2022 · 8 revisions

Area Scan Spell

Description: Instant spell that searches for blocks within a given radius. Can be configured to cast a specified spell at the location of each block found and the block type being searched for can be specified.

Configuration:

Option Description Data Type Default Value
block-type Name of the block that the spell will search for. String ""
radius Radius in which the spell will attempt to search for blocks. Integer 4
max-blocks Maximum number of blocks the spell will search for. Integer 0
spell The spell casted at each block found. String ""
offset Offset at which the specified spell is casted. String "0.5,0.5,0.5"
str-not-found String sent to caster if no blocks are found. String "No blocks target found"
power-affects-radius Whether or not Spell Power affects the spell's radius. Boolean true

Example:

variables:
    ironoresfound:
          type: player
          default: 0
          min: 0
          max: 100

IronOreScanInstantDummy:
    spell-class: ".instant.DummySpell"
    variable-mods-cast:
        - ironoresfound +1

IronOreScan:
    spell-class: ".instant.AreaScanSpell"
    block-type: "iron_ore"
    radius: 4
    max-blocks: 0
    spell: "IronOreScanInstantDummy"
    offset: "0.5,0.5,0.5"
    str-not-found: "No blocks target found."
    str-cast-self: "There are %var:ironoresfound% iron ores nearby."
    #power-affects-radius: true
    variable-mods-casted:
        - ironoresfound =0

Clone this wiki locally