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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

Wheat, wheat everywhere

Discussion in 'Skript' started by Aidanete, Jul 20, 2018.

Thread Status:
Not open for further replies.
  1. Aidanete

    Aidanete Active Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    10
    And I'm wondering, how I can cancel an event whether the player jumps onto a planted farmland and it destroys the crop. I want this for my lobby, to make players unable to destroy crops jumping, breaking them or something like that, I know how to cancel break events but I don't know any event for crop-destroying.

    Any ideas for this?
     
  2. uGim

    uGim Member

    Joined:
    Jan 19, 2018
    Messages:
    25
    Likes Received:
    0
    I think you can use skellet's on entity change event.

    Code (Skript):
    1. on entity block change:
    2.     broadcast "%new changed material%"
    And for the wheat part I am sure it would go somehow like this:

    Code (Skript):
    1. on entity block change:
    2.     if event-block is "wheat":
    3.         cancel event
     
  3. Aidanete

    Aidanete Active Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    10
    Okay, I will try it soon!
    4816734.jpg
    --- Double Post Merged, Jul 20, 2018, Original Post Date: Jul 20, 2018 ---
    Okay, it won't work, but it doesn't give me any errors, I'm using Skellet and the last skript version of a week ago
     
Thread Status:
Not open for further replies.

Share This Page

Loading...