#what does expected 0 tabs but found 8 spaces mean

1 messages · Page 1 of 1 (latest)

kind geyser
#

hey dude, if you copy and pasted something, and the person who sent it to you had it expecting 0 tabs; they are messing with you, or wrote it wrong.

swift juniper
kind geyser
swift juniper
#

i forgot

#

how to make it a cube

#
 trigger:
   if player's inventory contains 32 of plain cobblestone:

      remove 32 of plain cobblestone from player's inventory

      give player shiny cobblestone named "&6&lCompressed Cobblestone"
    if player's inventory contains 32 of plain oak wood:

        remove 32 of plain oak wood from player's inventory

        give player shiny oak wood named "&6&lCompressed Wood"



    if player's inventory contains 32 of plain raw copper:

        remove 32 of plain raw copper from player's inventory

        give player shiny copper block named "&6&lCompressed Copper"

    if player's inventory contains 1 of plain dark oak wood:

        remove 1 of plain dark oak wood from player's inventory

        give player 4 oak wood
    if player's inventory contains 1 of smooth stone:

        remove 1 of plain smooth stone from player's inventory

        give player 4 cobblestone



    if player's inventory contains 1 of plain copper block:

        remove 1 of plain copper ore from player's inventory

        give player 9 raw copper



    if player's inventory contains 1 of plain iron block:

        remove 1 of plain iron block from player's inventory

        give player 9 raw iron

    if player's inventory contains 32 of plain raw iron:

        remove 32 of plain raw iron from player's inventory

        give player shiny iron block named "&6&lCompressed Iron"


    if player's inventory contains 32 of plain raw gold:

        remove 32 of plain raw gold from player's inventory

        give player shiny raw gold block named "&6&lCompressed Gold"

kind geyser
#

send it as a txt

#

or ask them to

#

discord makes tabs into spaces

swift juniper
#

i made it myself

hazy wadi
#

!indent

light stagBOT
# hazy wadi !indent

In skript, you need to maintain consistent indentation, meaning you cannot indent 1 line 5 spaces, and the next 7 spaces. Usually it’s recommended you use tabs, however.

A good rule of thumb is to always indent the subsequent line whenever the previous statement ends with a :, an exception to this is in command statements with items before the trigger such as permission: or aliases:

With conditional statements and loops, any code that is indented within the statement will be run as a part of the statement, other code will not be run within the statement. Here is an example of proper indentation:

https://i.imgur.com/PbfZ12M.png

kind geyser
swift juniper
kind geyser
#

or .sk?

swift juniper
swift juniper
#

as txt

kind geyser
#

k

kind geyser
swift juniper
#

sim

kind geyser
#

kk

#

vou ver

swift juniper
#

ta

hazy wadi
#

Que?

kind geyser
swift juniper
#

comecei hj

kind geyser
#

eu vou dar o codigo bem

swift juniper
#

ok

kind geyser
#

a estivestes a escrever com espaços

#

fiz isso na minha primeira vez

swift juniper
#

eu uso shift + enter

kind geyser
#

k

kind geyser
swift juniper
#

isso

#

vc ta fazendo o codigo?

kind geyser
swift juniper
#

ok brigado

kind geyser
#

sim

#

📦

swift juniper
#

brigado

swift juniper
#

quando executo o bagulho, ele simplesmente checa se tem madeira no inventario do jogador

#

e se tiver dá tudo

#

tipo ouro, ferro, diamante etc

kind geyser
#

ja nao estou em portugal

kind geyser
#

tem limite?

#

uma por vez?

#

eu sei

#

ia acontecer

#

mas posso tentar

swift juniper
kind geyser
#

estou a tentar

swift juniper
#

era porque estava tudo junto

#

e o comando não reconhecia

kind geyser
#

ahh

kind geyser