Skript 11 errors, can anyone help me?

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

Nicore

Member
Aug 12, 2018
3
0
0
19
Code:
#water
command /water:
 permission:az.water
 trigger:
  if no block in radius 5 in front of the player
  set player's walk speed to 0
  set player's fly speed to 0
  set block at block 1 north player facing to water
  set block at block 2 north player facing to water
  set block at block 3 north player facing to water
  set block at block 4 north player facing to water
  set block at block 5 north player facing to water
  wait 5 seconds
  set block at block 1 north player facing to air
  set block at block 2 north player facing to air
  set block at block 3 north player facing to air
  set block at block 4 north player facing to air
  set block at block 5 north player facing to air
  set player's walk speed to 1
  set player's walk speed to 1

Errors
Code:
Line 74: Can't understand this condition/effect: if no block in radius 5 in front of the player (script.sk, line 74: if no block in radius 5 in front of the player')

Line 77: Can't understand this condition/effect: set block at block 1 north player facing to water (script.sk, line 77: set block at block 1 north player facing to water')

Line 78: Can't understand this condition/effect: set block at block 2 north player facing to water (script.sk, line 78: set block at block 2 north player facing to water')

Line 79: Can't understand this condition/effect: set block at block 3 north player facing to water (script.sk, line 79: set block at block 3 north player facing to water')

Line 80: Can't understand this condition/effect: set block at block 4 north player facing to water (script.sk, line 80: set block at block 4 north player facing to water')

Line 81: Can't understand this condition/effect: set block at block 5 north player facing to water (script.sk, line 81: set block at block 5 north player facing to water')

Line 83: Can't understand this condition/effect: set block at block 1 north player facing to air (script.sk, line 83: set block at block 1 north player facing to air')

Line 84: Can't understand this condition/effect: set block at block 2 north player facing to air (script.sk, line 84: set block at block 2 north player facing to air')

Line 85: Can't understand this condition/effect: set block at block 3 north player facing to air (script.sk, line 85: set block at block 3 north player facing to air')

Line 86: Can't understand this condition/effect: set block at block 4 north player facing to air (script.sk, line 86: set block at block 4 north player facing to air')

Line 87: Can't understand this condition/effect: set block at block 5 north player facing to air (script.sk, line 87: set block at block 5 north player facing to air')

Can anyone help me? Thanks so much :emoji_wink:
 
Use
Code:
set block 2 north of player to water
And what do you mean with
Code:
if no block in radius 5 in front of the player
 
I want to check is there any block in front of a player (5 blocks)

i.e. I am now standing on 1,1,1 and I want to check is there any block in 2-6,1,1
 
Than use the first code block i sent
 
Status
Not open for further replies.