Why isn't this working?

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

owwowwowo

New Member
Jan 20, 2021
5
0
1
23
I've been working on this for 2-3 hours trying to fix it, I'm trying to make a fast biulder type bridging game.
Code:
command /fastbuilder:
    trigger:
        execute console command "warp fastbiulder %player%"
        wait 1 tick
        execute console command "ci %player%"
        Wait 3 ticks
        Give player 192 sandstone
        set {Seconds.%player%} to 0
        loop 60 times:
            wait 1 second
            add 1 to {Seconds.%player%}
        execute console command "warp hub %player%"
        send "&eYou are taking too long and have been sent to the &e&lHub"
        
        
On any move:
    if block below the block below the player is 95:3:
        execute console command "warp hub %player%"
        send "&eYou have hit the ground and have been sent to the &e&lHub"
        stop
      
On any move:
    if block below the block below the player is 19:1:
        set all sandstone in radius 50 to air
        execute console command "warp hub %player%"
        send "&eYou have completed the course in {Seconds.%player%} and have been sent to the &e&lHub"
        stop
 
May you send me errors if there are any ?
Code:
[12:14:26 INFO]: [Skript] Reloading the config and all scripts...
[12:14:26 INFO]: Loaded a total of 11504 english aliases
[12:14:26 WARN]: There are no aliases defined for the following ids: 165, 166, 167, 168, 169, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 409, 410, 411, 412, 413, 414, 415, 416, 423, 424, 425, 427, 428, 429, 430, 431
[12:14:26 ERROR]: indentation error: expected 2 tabs, but found 8 spaces (fastbulder.sk, line 4: Wait 3 ticks')
[12:14:26 ERROR]: indentation error: expected 2 tabs, but found 8 spaces (fastbulder.sk, line 6: set {Seconds.%player%} to 0')
[12:14:26 ERROR]: indentation error: expected 2 tabs, but found 8 spaces (fastbulder.sk, line 7: loop 60 times:')
[12:14:26 ERROR]: indentation error: expected 2 tabs, but found '________->' [-> = tab, _ = space, ? = other whitespace] (fastbulder.sk, line 8: wait 1 second')
[12:14:26 ERROR]: indentation error: expected 2 tabs, but found '________->' [-> = tab, _ = space, ? = other whitespace] (fastbulder.sk, line 9: add 1 to {Seconds.%player%}')
[12:14:26 ERROR]: indentation error: expected 2 tabs, but found 8 spaces (fastbulder.sk, line 10: execute console command "warp hub %player%"')
[12:14:26 ERROR]: indentation error: expected 2 tabs, but found 8 spaces (fastbulder.sk, line 11: send "&eYou are taking too long and have been sent to the &e&lHub"')
[12:14:26 ERROR]: indentation error: expected 8 spaces, but found '____->' [-> = tab, _ = space, ? = other whitespace] (fastbulder.sk, line 23: set all sandstone in radius 50 to air')
[12:14:26 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '95:3' with e.g. 'locked chest:3'. (fastbulder.sk, line 15: if block below the block below the player is 95:3:')
[12:14:26 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '19:1' with e.g. 'sponge:1'. (fastbulder.sk, line 22: if block below the block below the player is 19:1:')
[12:14:26 INFO]: Loaded 1 script with a total of 2 triggers and 1 command in 0.03 seconds
[12:14:26 INFO]: [Skript] Encountered 8 errors while reloading the config and all scripts!
 
I've been working on this for 2-3 hours trying to fix it, I'm trying to make a fast biulder type bridging game.
Code:
command /fastbuilder:
    trigger:
        execute console command "warp fastbiulder %player%"
        wait 1 tick
        execute console command "ci %player%"
        Wait 3 ticks
        Give player 192 sandstone
        set {Seconds.%player%} to 0
        loop 60 times:
            wait 1 second
            add 1 to {Seconds.%player%}
        execute console command "warp hub %player%"
        send "&eYou are taking too long and have been sent to the &e&lHub"
     
     
On any move:
    if block below the block below the player is 95:3:
        execute console command "warp hub %player%"
        send "&eYou have hit the ground and have been sent to the &e&lHub"
        stop
   
On any move:
    if block below the block below the player is 19:1:
        set all sandstone in radius 50 to air
        execute console command "warp hub %player%"
        send "&eYou have completed the course in {Seconds.%player%} and have been sent to the &e&lHub"
        stop
you spelled builder wrong on line 3, I suggest using the block name instead of the ID, 19:1 is wet sponge, 95:3 is light blue stained glass. After each match you should put a 'clear {Seconds.%player%}'
 
Last edited:
Code:
[12:14:26 INFO]: [Skript] Reloading the config and all scripts...
[12:14:26 INFO]: Loaded a total of 11504 english aliases
[12:14:26 WARN]: There are no aliases defined for the following ids: 165, 166, 167, 168, 169, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 409, 410, 411, 412, 413, 414, 415, 416, 423, 424, 425, 427, 428, 429, 430, 431
[12:14:26 ERROR]: indentation error: expected 2 tabs, but found 8 spaces (fastbulder.sk, line 4: Wait 3 ticks')
[12:14:26 ERROR]: indentation error: expected 2 tabs, but found 8 spaces (fastbulder.sk, line 6: set {Seconds.%player%} to 0')
[12:14:26 ERROR]: indentation error: expected 2 tabs, but found 8 spaces (fastbulder.sk, line 7: loop 60 times:')
[12:14:26 ERROR]: indentation error: expected 2 tabs, but found '________->' [-> = tab, _ = space, ? = other whitespace] (fastbulder.sk, line 8: wait 1 second')
[12:14:26 ERROR]: indentation error: expected 2 tabs, but found '________->' [-> = tab, _ = space, ? = other whitespace] (fastbulder.sk, line 9: add 1 to {Seconds.%player%}')
[12:14:26 ERROR]: indentation error: expected 2 tabs, but found 8 spaces (fastbulder.sk, line 10: execute console command "warp hub %player%"')
[12:14:26 ERROR]: indentation error: expected 2 tabs, but found 8 spaces (fastbulder.sk, line 11: send "&eYou are taking too long and have been sent to the &e&lHub"')
[12:14:26 ERROR]: indentation error: expected 8 spaces, but found '____->' [-> = tab, _ = space, ? = other whitespace] (fastbulder.sk, line 23: set all sandstone in radius 50 to air')
[12:14:26 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '95:3' with e.g. 'locked chest:3'. (fastbulder.sk, line 15: if block below the block below the player is 95:3:')
[12:14:26 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '19:1' with e.g. 'sponge:1'. (fastbulder.sk, line 22: if block below the block below the player is 19:1:')
[12:14:26 INFO]: Loaded 1 script with a total of 2 triggers and 1 command in 0.03 seconds
[12:14:26 INFO]: [Skript] Encountered 8 errors while reloading the config and all scripts!
code is on its way bc i understood everythinnnnnggg
ur not using tabs correctly, i like to use spaces but it is up to you.
Code:
command /fastbuilder:
  trigger:
    execute player command "warp fastbiulder"
    wait 1 tick
    execute console command "ci %player%"
    Wait 3 ticks
    Give player 192 sandstone
    set {Seconds.%player%} to 0
    loop 60 times:
      wait 1 second
      Add 1 to {Seconds.%player%}
    execute player command "warp hub"
    send "&eYou are taking too long and have been sent to the &e&lHub"
    
    
On any movement:
  if block below the block below the player is blue stained glass:
    execute player command "warp hub"
    send "&eYou have hit the ground and have been sent to the &e&lHub"
    stop
  
On any movement:
  if block below the block below the player is sponge:1:
    set {air} to air
    loop all blocks in radius 50 around player:
      loop-block is sandstone
      set loop-block to {air}
    execute player command "warp hub"
    send "&eYou have completed the course in %{Seconds.%player%}% and have been sent to the &e&lHub"
    stop
im warning u now, if this code is laggy then its bc u used on any movement. Also, in line 29, if you plan to send the status of the variable to a player, you need to use %% around the variable.

another thing, if ur not sure about a block's ID just type it in and script will find the block id that you NEED to use in the errors. If it says add it to aliases.sk, just type there for example: "Golden apple = <id of golden apple, e.g 322>" if you type there 311 instead of 322, golden apple will now be a diamond chestplate

i hope i helped you
 
There a few things wrong here that I have personally noticed.

- You spelled builder wrong on line 3
- Using ID's for blocks don't always work I've noticed.
- Instead of capitalizing On in "On any movement" try making it lowercase!

For a list of ID's for the blocks, click here: https://minecraft-ids.grahamedgecombe.com/


I hoped this helped; Have a good day!
 
Dude you are just using spaces or tabs wrong... It's that easy, nothing else
[doublepost=1612740775,1612740743][/doublepost]
Dude you are just using spaces or tabs wrong... It's that easy, nothing else
OH and you can't use ids anymore
 
Status
Not open for further replies.