1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Farmland without water

Discussion in 'Requests' started by RaikaS, Mar 5, 2019.

  1. RaikaS

    RaikaS Active Member

    Joined:
    Apr 6, 2018
    Messages:
    53
    Likes Received:
    1
    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
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    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 (Skript):
    1. import:
    2.     org.bukkit.event.block.BlockPhysicsEvent
    3.  
    4. on right click on grass:
    5.     if player's tool is any hoe:
    6.         cancel event
    7.         set event-block to moist farmland
    8.  
    9. on BlockPhysicsEvent:
    10.     if event.getSourceBlock() = soil or moist farmland:
    11.         set {_b} to event.getSourceBlock()
    12.         set {_state} to {_b}.getBlockData()
    13.         {_state}.setMoisture(7)
    14.         {_b}.setBlockData({_state})
     

Share This Page

Loading...