I might very well be extremely stupid because i just can't seem to fix this issue.
Though i do understand the errors around the spaces, that is an easy fix, the one i keep getting back on is:
'all code has to be put into triggers'
Relatively new to skript so i am sorry if this is a dumb question.
Skript Version: Skript 2.2 (dev28c)
Skript Author: Bensku
Minecraft Version: 1.11.2
---
Full Code:
Errors on Reload:
Addons using (including versions):
None
Troubleshooting:
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? I have tested a lot of things people mentioned on the forums and i actually downloaded a few skripts to see if i could copy parts of it but none of it seems to work.
Though i do understand the errors around the spaces, that is an easy fix, the one i keep getting back on is:
'all code has to be put into triggers'
Relatively new to skript so i am sorry if this is a dumb question.
Skript Version: Skript 2.2 (dev28c)
Skript Author: Bensku
Minecraft Version: 1.11.2
---
Full Code:
code_language.skript:
options:
VersionID: 1
on rightclick
if target block is crafting table
if block above is anvil
open chest with 1 rows named "&4Deconstructor" to player
format slot 0 of player with gold ingot named "Test 1" to close then run "This is a test item to see if this works"
format slot 1 of player with fire named "Close Menu" with lore "I will close this menu.||Nothing more, nothing less." to close
format slot 2 of player with gold ingot to run [broadcast "Just Testing"]
format slot 3 of player with gold ingot named "Test 1" to check if player has 1 iron ingot then run "This is a test item to see if this works" then remove 1 iron ingot from the player then give a diamond pickaxe of efficiency 5 to the player
Errors on Reload:
code_language.skript:
21.06 11:31:00 [Server] ERROR indentation error: expected 0 spaces, but found 8 spaces (Deconstructor.sk, line 9: format slot 1 of player with fire named "Close Menu" with lore "I will close this menu.||Nothing more, nothing less." to close')
21.06 11:31:00 [Server] ERROR indentation error: expected 0 spaces, but found 8 spaces (Deconstructor.sk, line 10: format slot 2 of player with gold ingot to run [broadcast "Just Testing"]')
21.06 11:31:00 [Server] ERROR indentation error: expected 0 spaces, but found 8 spaces (Deconstructor.sk, line 11: format slot 3 of player with gold ingot named "Test 1" to check if player has 1 iron ingot then run "This is a test item to see if this works" then remove 1 iron ingot from the player then give a diamond pickaxe of efficiency 5 to the player')
21.06 11:31:00 [Server] ERROR invalid line - all code has to be put into triggers (Deconstructor.sk, line 4: on rightclick')
21.06 11:31:00 [Server] ERROR invalid line - all code has to be put into triggers (Deconstructor.sk, line 5: if target block is crafting table')
21.06 11:31:00 [Server] ERROR invalid line - all code has to be put into triggers (Deconstructor.sk, line 6: if block above is anvil')
21.06 11:31:00 [Server] INFO Loaded 1 script with a total of 0 triggers and 0 commands in 0 seconds
21.06 11:31:00 [Server] INFO Encountered 8 errors while reloading all scripts!
Addons using (including versions):
None
Troubleshooting:
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? I have tested a lot of things people mentioned on the forums and i actually downloaded a few skripts to see if i could copy parts of it but none of it seems to work.