How do I give someone random items?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Jan 2, 2020
3
0
1
23
Basically I want to give someone random items every 15 seconds?
By random items i mean just, any item in the game?
like stained glass, to golden apples?
Please help..
 
Using Runakai's bit of code, this is what I made.

Code:
every 15 seconds in "world": #change delay between items given
    loop all players:
        if {random.%loop-player%} is true:
            give random item out of all items to loop-player
        else:
            stop
# all this does is have the player start receiving items regardless if they disabled it before leaving or not
on join:
    set {random.%player%} to true
# this is a command that allows the player to toggle receiving items
command toggle:
    trigger:
        if {random.%player%} is true:
            set {random.%player%} to false
            send "&cYou will no longer receive items!"
        else:
            set {random.%player%} to true
            send "&aYou will now receive items!"
 
Status
Not open for further replies.