Jump to content

I need help with skript


Recommended Posts

So I wanna make a void server on minehut. And I want the server to give all the players an item every 7 second. But not just ANY item. I want it to give everyone like a 1.5% chance to get an iron nugget, 30.85% to give oak planks and 60% chance cobblestone. I dont want like a skript that doesn't give the items random and just gives some items every second. Example:
every 7 second: 

execute player command "/give {_p} cobblestone"

every 20 second:

execute player command "/give {_p} oak_planks"

every 420 second:

execute player command "/give {_p} iron_nugget"

I want more like it gives it random so not everyone gets the same item. I'm not very good at using skript but if there's any skript pros out there then pls help.

Link to comment
Share on other sites

I think this wil works:
every 7 seconds:
    chance 60%:
        give player cobblestone 1

and then just add the same thing with the other things but chance the seconds to like 20 and 420 en the item and chance

Link to comment
Share on other sites

8 hours ago, MilanVDL said:

I think this wil works:
every 7 seconds:
    chance 60%:
        give player cobblestone 1

and then just add the same thing with the other things but chance the seconds to like 20 and 420 en the item and chance

every 7 seconds:
    loop all players:
        chance of 60%:
            give loop-player 1 cobblestone

Edited by Narratrr
  • Thanks 1

IGN: LastMC

Discord: LastXD#7171

Rank: PRO

Join date: Monday - December - 23rd - 2019

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...