Wheat, wheat everywhere

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Aidanete

Active Member
Apr 11, 2017
139
10
0
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?
 
I think you can use skellet's on entity change event.

code_language.skript:
on entity block change:
    broadcast "%new changed material%"

And for the wheat part I am sure it would go somehow like this:

code_language.skript:
on entity block change:
    if event-block is "wheat":
        cancel event
 
I think you can use skellet's on entity change event.

code_language.skript:
on entity block change:
    broadcast "%new changed material%"

And for the wheat part I am sure it would go somehow like this:

code_language.skript:
on entity block change:
    if event-block is "wheat":
        cancel event

Okay, I will try it soon!
4816734.jpg

[doublepost=1532101314,1532095336][/doublepost]
Okay, I will try it soon!
4816734.jpg
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
 
Status
Not open for further replies.