#how to cooldown
1 messages · Page 1 of 1 (latest)
whats the link
where can i search
there is no simple item cooldown
...
.
It gives you an example of how to use it
waht should i do to fix ?
Check what the itemtype for a nether star is
its nether_star
wahts taht
nvm
Just put this in
Nevermind, just instead of putting holding nether star put on right click: 1 of player's tool = 1 of nether star named "" with lore ""
As I told you. Don't ping me pointlessly.
And it's telling you that because you didn't indent properly.
ok sorry but waht do i need to do
I gave you something that didn't need indentation
indent properly...
waht do i need to do
It needs to be under an if section
you can add an if statement instead of what I sent
i dont understand
if 1 of player's tool = 1 of nether star named "" with lore "":```
waht should i do with the if
also
can u help me how to i do taht it only shoots the tnt when i right click the nehter star
rrl6 ?
That's what you coded it to do
^
waht is vb code
permission: op
trigger:
give player 1 nether star named "&f&lShuricken" with lore "&7right click on a Player to deal 4 hearts of damage"
on right click:
shoot an tnt
on right click:
1 of player's tool = 1 of nether star named "&f&lShuricken"
if {cooldowns::%uuid of player%::nether star } > now:
cancel event
set {_diff} to difference between {cooldowns::%uuid of player%::hoe} and now
send "You have to wait %{_diff}% to use this tool"
else:
set {cooldowns::%uuid of player%::hoe} to 10 seconds from now
on quit:
delete {cooldowns::%uuid of player%::*}```
aight
let's see
you have to indent after the else, and you didn't make it an if statement like I said
where do i need to put it
...
.
Bro
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: