Farm skript cooldown, need help.

Status
This thread has been locked.

Finn04

Feedback score
0
Posts
4
Reactions
0
Resources
0
Hi,

I just decided to make a farm skript, because I wanted to try how it worked. I were able to make the farm plugin itself, but I want cooldown on farming, but I don't know how to make this.

This is my code:

Code:
on rightclick on ripe wheat:
  if player is holding a hoe:
  cancel event
  message "{@tag} &aYou succesfully farmed wheat!"
  set block to air
  drop wheat
  set durability of player's tool to (durability of player's tool + 1)
  add 1 to {xp.%player%}
  set event-block to air
  wait 10 seconds
  set event-block to crops

So what I want, is that you need to wait 10 seconds before farming again, and it also gives a message in chat. Somebody able to help me out?!


- Finn04
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Doughnut

Entrepreneur | Electrician| Financial Help
Premium
Feedback score
32
Posts
1,298
Reactions
466
Resources
0
Maybe an Indentation Error?
on rightclick on ripe wheat:
if player is holding a hoe:
cancel event

Should be this:

on rightclick on ripe wheat:
if player is holding a hoe:
cancel event

(Or something alone those lines)
 

Finn04

Feedback score
0
Posts
4
Reactions
0
Resources
0
Maybe an Indentation Error?
on rightclick on ripe wheat:
if player is holding a hoe:
cancel event

Should be this:

on rightclick on ripe wheat:
if player is holding a hoe:
cancel event

(Or something alone those lines)
yea, but thats not my problem, everything in the code above is fine, it works.. but I haven't added te cooldown code into it, because I don't understand how it works :/
 
Status
This thread has been locked.
Top