Jump to content

Pls help me :)


Recommended Posts

I want to create a random item generator skript that gives everyone a random item every 10 seconds but I only want it to give you certain items. The items being: dirt, cobble, iron ingot, oak log, water bucket and oak sapling.

Link to comment
Share on other sites

every 10 seconds:

  loop all players:

    set {_r} to random integer between 0 and 5

    {_r} = 0:

      give 1 dirt to loop-player

    else if {_r} = 1:

      give 1 cobblestone to loop-player

    else if {_r} = 2:

      give 1 iron ingot to loop-player

    else if {_r} = 3:

      give 1 oak log to loop-player

    else if {_r} = 4:

      give 1 water bucket to loop-player

    else if {_r} = 5:

      give 1 oak sapling to loop-player


Edited by AskWhySoBlazQwex
added "else if"
Link to comment
Share on other sites

Question answered. Topic locked.

Joined on January 17th 2016

VIP since April 5 2017 - August 1st 2019

JrMod since August 1st

Mod since October 1st

SrMod since November 2nd - 2/7/21

Patron since February 8 - 3/7/21

Mod since March 8 2021

Retired since idk when


    [IMG]    button.png?t=Appeal&f=Calibri-Bold&ts=26&tc=fff&tshs=1&tshc=000&hp=20&vp=8&c=10&bgt=gradient&bgc=1d0dea&ebgc=1a0855&be=1 button.png?t=Rules&f=Calibri-Bold&ts=26&tc=fff&tshs=1&tshc=000&hp=20&vp=8&c=10&bgt=gradient&bgc=1d0dea&ebgc=1a0855&be=1  

If I helped or entertained you at all today, please react with a heart.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Create New...