#Help
1 messages · Page 1 of 1 (latest)
well first u define a command
then u add a cooldown but u need to store the cooldown with skripts cooldown store
and then give the player the item
Will this work?
Command /daily:
Cooldown: 84000
Cooldown message: &4Just wait &c%time% &4You butt head -_-"
Trigger:
Send "&aYou just claimed your daily reward!"
Execute console command "/give %player% Minecraft:diamond 2"
@crystal vapor
!format
:technologist: Code Blocks
To make it easier for others to read your code, it is asked that you send it in a code block. On Discord, you can simply send this:
```
Code here
```
^, and indentation
So \``
Command /daily:
Cooldown: 84000 seconds
Cooldown message: &4Just wait &c%time% &4You butt head -_-"
Trigger:
Send "&aYou just claimed your daily reward!"
Give player 2 diamons `
84000 secs = 1 day
Then put 84000 seconds or 1 day
Or 1/7 weeks
And done execute console commands for give. Skript has an effect for that
Command /daily: Cooldown: 84000 seconds Cooldown message: &4Just wait &c%time% &4You butt head -_-" Trigger: Send "&aYou just claimed your daily reward!" Give player 2 diamonds
This?
@cinder cape
be patient. people help here on their own time. they are not obligated to drop everything
if you want to see if something works, https://tryitands.ee
code blocks are 3`, ```code here```
and thats not how indentation works
everytime you end a line with :, you need to add a length of indentation before the next line.
so like,
command /test:
cooldown: 1 day
trigger:
do stuff
do more stuff
if (thing):
this code happens if the if works
this code isnt part of the if as it isnt in the block of indentation
note: one length of indentation is either a tab or a fix amount of spaces
you can use tabs for simplicity
Cooldown: 84000 seconds
Cooldown message: &4Just wait
&c%time% &4You butt head -_-"
Permission: daily.daily
Permission node: &cYou do not have permission !"
Trigger:
Send: "&aYou just claimed your daily reward!"
Give player 2 diamonds ```
Will this work ?
Cool down bad for command when you have such a long cool down
I mean you can test it if it doesn't work you come back
!intendation
oh god they removed it
If you end a line with : add one tab infront of the next line; for example:
trigger:
send "e"```
please use tabs instead of spaces
Cooldown: 24 hours
Cooldown message: &4Just wait
&c%time% &4You butt head -_-"
Permission: daily.daily
Permission node: &cYou do not have permission !"
Trigger:
Send "&aYou just claimed your daily reward!"
Give player 2 diamonds ``` ?
permission: this.is.a.permission
permission message: "no"
trigger:
send "e"
send "e - the return"```
Every `:` opens a new 'section'. All lines in these 'sections' need to have the same amount of tabs. Just remove one tab to leave one section
Again: Please use tabs and not spaces
!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:
this explains it way better than i ever could
you just spelled it wrong
ah, I think you're aware
i mean, the noun is 'intendation' right?
Also u need to store the cooldown
Iirc %remaining time% is a thing for command cooldowns
?
!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:
You used wrong command!
cooldown message: please wait %remaining time%!
And that command is correct
:3
^,hy^,