Jump to content

Need a skript pls


Recommended Posts

You will have to make a variable list named {blocks::*}

add barrier to {blocks::*}
...

with block names into it and then pick a random element from it with a event of 

On every 20 seconds:
    loop all players:
        set {block} to random element out of {blocks::*}
        give player {block} to loop-player

 

Link to comment
Share on other sites

on load:
    set {i::*} to all items
    remove barrier from {i::*}

every 20 seconds:
    {give} isn't set
    loop all players:
        set {_i} to a random item out of {i::*}
        give loop-player 1 of {_i}
        
command /toggle:
    description: enable/disable users receiving items periodically
    permission: op
    trigger:
        if {give} isn't set:
            send "&aEnabled &7periodic items."
            set {give} to true
        else:
            send "&cDisabled &7periodic items."
            delete {give}

 

Discord: MrScopes#5548

Link to comment
Share on other sites

on load:
    set {i::*} to all items
    remove barrier and command block from {i::*}

every 20 seconds:
    {give} isn't set
    set {_i} to a random item out of {i::*}
    loop all players:
        give loop-player 1 of {_i}
        
command /toggle:
    description: enable/disable users receiving items periodically
    permission: op
    trigger:
        if {give} isn't set:
            send "&aEnabled &7periodic items."
            set {give} to true
        else:
            send "&cDisabled &7periodic items."
            delete {give}

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...