Skript Indentation error

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

5jgk

New Member
Jan 3, 2024
7
0
1
24
So im trying to write an inventory full script but it works when i have no sound play when your inventory is full. But it doesnt when i play a sound when your inventory is full. My code is "
on break:
if player's inventory can't hold 1 diamond sword:
send title "&c&lInventory full" with subtitle "&c&lYour inventory is full!" to player for 3 seconds
play sound block.note_block.pling with volume 1 and pitch 2 to player"

:
image_2024-01-03_140857867.png
 
Last edited:
So im trying to write an inventory full script but it works when i have no sound play when your inventory is full. But it doesnt when i play a sound when your inventory is full. My code is "
on break:
if player's inventory can't hold 1 diamond sword:
send title "&c&lInventory full" with subtitle "&c&lYour inventory is full!" to player for 3 seconds
play sound block.note_block.pling with volume 1 and pitch 2 to player"

:View attachment 8167
In order to keep your code consistent, use only tabs or spaces to indent each line, never both. Remove the indents on line 4 and replace them all with spaces.