1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How to prevent farmland changes to dirt?

Discussion in 'Development' started by chansol, Mar 23, 2018.

  1. chansol

    chansol Spider Jockey

    Messages:
    32
    GitHub:
    ParkChanSol
    How to prevent farmland changes to dirt?
     
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Cancel PlayerInteractEvent when player taps dirt or grass block
     
  3. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    and what if the player jump over the dirt?
     
    Kyd likes this.
  4. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    That's feature is not implemented in pocketmine
     
    EdwardHamHam likes this.
  5. RyanShaw

    RyanShaw Witch

    Messages:
    69
    Is there even a way to completely cancel it? eg, if there was no water source block to keep it a farmland
     
  6. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    I think you can't because it's client-sided
     
    Last edited: Mar 23, 2018
  7. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Just cancel PlayerInteractEvent, that'll do it
     
  8. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    Will it be implemented in the future to pocketmine or is it completely client-sided?
     
  9. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    This is a server-sided feature. It's possible that it may be implemented in the future.
     
  10. RyanShaw

    RyanShaw Witch

    Messages:
    69
    nvm i miss understood the question lol i thought he meant cancel the hoed dirt changing into normal dirt
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.