options:
{Time} : 1
command /items:
trigger:
if {%player%.random} = true:
set {%player%.random} to false
message "&7You have disabled random items" to player
else:
set {%player%.random} to true
message "&7You have enabled random items" to player
every {Time} seconds:
loop all players:
if {%loop-player%.random} = true:
give loop-player a random item of all items
wait 1 tick
And everything works except the "every {Time} seconds:" part, and it gives me this message:
How do I fix this? (please explain in simple terms)
Question
Thatdisplayname
So i have this code:
options: {Time} : 1 command /items: trigger: if {%player%.random} = true: set {%player%.random} to false message "&7You have disabled random items" to player else: set {%player%.random} to true message "&7You have enabled random items" to player every {Time} seconds: loop all players: if {%loop-player%.random} = true: give loop-player a random item of all items wait 1 tickAnd everything works except the "every {Time} seconds:" part, and it gives me this message:
How do I fix this? (please explain in simple terms)
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now