Jump to content

I Need Help (Farming Skript)


HeyItsmeblury

Recommended Posts

My Farming Skript only has 1 error this is the skript 

on rightclick on 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

 

This Is The Error

Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (farming.sk, line 1: on rightclick on wheat:') cant understand this event: 'if player is holding a hoe' (farming.sk, line 2: if player is holding a hoe:')

 

Some one try fix and send me the whole fixed skript pls and thank you

Edited by ItzAnox
Link to comment
Share on other sites

on right click on 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

Try this.

Edited by Creeper1841

 

image.png.e46e91961f1d6d4604a6e5f3dcb5a2bd.png

unknown.pngunknown.png

Link to comment
Share on other sites

on right click on 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

Link to comment
Share on other sites

on rightclick on 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

Link to comment
Share on other sites

on rightclick:
if clicked block is "wheat":
 if player is holding a hoe:
  cancel event
  message "{@tag} &aYou succesfully farmed wheat!"
  set block to air
  give player 1 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

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...