Skip to content

FarmSpell

MomoPewpew edited this page Jun 12, 2024 · 9 revisions

Source Code

spell-class: ".targeted.FarmSpell"

Description:

Targeted Spell. Make crops grow around the target location.

Configuration Options:

Option Description Default Value
crop-type The crop type to grow if the farmland is empty. wheat
radius Radius of the growth. 3
growth Growth value. 1
requires-farmland If set to true, the growth spell will grow crops even if they are in illegal locations. false
targeted If set to false, the growth location will be set to the player's current location. false
grow-wart Whether the spell should grow warts. false
grow-wheat Whether the spell should grow wheat. true
grow-carrots Whether the spell should grow carrots. true
grow-potatoes Whether the spell should grow potatoes. true
grow-beetroot Whether the spell should grow beetroot. false
grow-pitcher-plants Whether the spell should grow pitcher crops. true

Spell Default:

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