#It keeps giving me errors can you help me fix it?
1 messages · Page 1 of 1 (latest)
so you had an extra else in the last if condition, so i had to remove it, if you want to add both elses you have to make like chances or make the first into else if,
another thing, wood door is not a thing, you need to specify, so i made it oak door, you can also do any door
so here is what i did, for some reason VSC is giving errors with the identation but i see nothing wrong, try this```on rightclick with iron axe:
if name of player's tool is "&cAscia":
if clicked block is set:
set {_clicked} to clicked block
if world of {_clicked} is world of player:
if clicked block is oak door:
set {_block} to {_clicked}
set {_location} to location of {_block}
add {_block} to {_broken_blocks::%uuid of player%}
delete {_block}
wait 5 seconds # Modifica il tempo di attesa come desideri o usa la tua variabile di configurazione
respawn all blocks in {_broken_blocks::%uuid of player%}
clear {_broken_blocks::%uuid of player%}
else:
send "Il blocco è stato rotto e respawnato dopo 5 secondi!" to player
else:
send "&cIl blocco su cui hai fatto clic non è nel tuo mondo!" to player
else:
send "&cIl blocco su cui hai fatto clic non esiste!" to player
else:
send "&cNon hai il permesso per utilizzare questa ascia speciale!" to player
there is so much wrong with indentation
really? oh yeah, i was coding in VSC wich is not made for skript's identation
man
on rightclick with iron axe:
if name of player's tool is "&cAscia":
if clicked block is set:
set {_clicked} to clicked block
if world of {_clicked} is world of player:
if clicked block is oak door:
set {_block} to {_clicked}
set {_location} to location of {_block}
add {_block} to {_broken_blocks::%uuid of player%}
delete {_block}
wait 5 seconds # Modifica il tempo di attesa come desideri o usa la tua variabile di configurazione
respawn all blocks in {_broken_blocks::%uuid of player%}
clear {_broken_blocks::%uuid of player%}
else:
send "Il blocco è stato rotto e respawnato dopo 5 secondi!" to player
else:
send "&cIl blocco su cui hai fatto clic non è nel tuo mondo!" to player
else:
send "&cIl blocco su cui hai fatto clic non esiste!" to player
else:
send "&cNon hai il permesso per utilizzare questa ascia speciale!" to player
yeah and another thing, {_broken_blocks::%uuid of player%} is a temp variable wich doesnt exist in that event
also, you can get rid of the {_clicked} and just set {_block} to clicked block
lol
_broken_blocks isn't a list
and he's adding a variable to it
hold up the bot is in here can i do the cool stuff
.%
😦
the bot is in every thread bruh
Is there a way to disable all shields player has in inventory if hit by this item?