Oxproc Posted March 6, 2021 Posted March 6, 2021 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.
AskWhySoBlazQwex Posted March 7, 2021 Posted March 7, 2021 (edited) 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 March 7, 2021 by AskWhySoBlazQwex added "else if"
Jackson85 Posted March 16, 2021 Posted March 16, 2021 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 If I helped or entertained you at all today, please react with a heart.
Recommended Posts