Farmland without water

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

RaikaS

Active Member
Apr 6, 2018
53
1
0
20
Category:
Farming
Suggested name:
Goes to part of another skript
Spigot/Skript Version:
1.13.2/3.2.5
What I want:
I don't want farmland dry (turn to dirt) and plants can grow without water
Ideas for commands:
No commands
Ideas for permissions:
No perms
When I'd like it by: Two days
 
Okay after much testing I got this to work.
Im not 100% sure how efficient this is, but its kind of a really hard thing to work with.

You will need Skript-Mirror for this to work
code_language.skript:
import:
    org.bukkit.event.block.BlockPhysicsEvent

on right click on grass:
    if player's tool is any hoe:
        cancel event
        set event-block to moist farmland

on BlockPhysicsEvent:
    if event.getSourceBlock() = soil or moist farmland:
        set {_b} to event.getSourceBlock()
        set {_state} to {_b}.getBlockData()
        {_state}.setMoisture(7)
        {_b}.setBlockData({_state})