Skip to content
JasperLorelai edited this page May 19, 2024 · 8 revisions

Source Code

spell-class: ".targeted.FarmSpell"
Value Supported
entity false
location true
entity_from_location false

Description:

Targeted Spell. Make crops grow around the target location.

Configuration:

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

Option Description Type Default
crop-type The crop type to grow if the farmland is empty. String "wheat"
resolve-crop-type-per-crop Since 4.0 Beta 13 Defines expression evaluation behaviour. Boolean false
radius Radius of the growth. Integer 3
power-affects-radius Since 4.0 Beta 13. Boolean true
growth Growth value. Integer 1
resolve-growth-per-crop Since 4.0 Beta 13 Defines expression evaluation behaviour. Boolean false
targeted If set to false, the growth location will be set to the player's current location. Boolean false
grow-wart Whether the spell should grow warts. Boolean false
grow-wheat Whether the spell should grow wheat. Boolean true
grow-carrots Whether the spell should grow carrots. Boolean true
grow-potatoes Whether the spell should grow potatoes. Boolean true
grow-beetroot Whether the spell should grow beetroot. Boolean false

Example:

farm:
    spell-class: ".targeted.FarmSpell"
    name: farm
    spell-icon: wheat_seeds
    cast-item: book
    description: Make crops grow nearby.
    cooldown: 10
    radius: 3
    growth: 1
    targeted: false
    cost:
        - mana 75
        - wheat_seeds 2
    str-cost: 75 mana and 2 wheat seeds
    str-cast-self: The crops around you grow quickly.
    str-no-target: There are no crops nearby.
Clone this wiki locally