options:
#these items will not be selected, ever
blacklistblocks: bedrock, dragon egg, and end portal frame
#change this to true if you'd like everyone online to get the same item
#**only accepts true and false**
sameitem: false
#change this to the number of seconds you'd like it to wait to give out an item
timeinseconds: 30
every {@timeinseconds} seconds:
set {_item} to random item out of all items
if {@sameitem} = false:
loop all players:
while {@blacklistblocks} contains {_item}:
set {_item} to random item out of all items
add 1 of {_item} to inventory of loop-player
else if {@sameitem} = true:
while {@blacklistblocks} contains {_item}:
set {_item} to random item out of all items
add 1 of {_item} to inventory of all players
Pretty self explanatory, reply here or DM me on discord at @DanielK#0605 for further info.
Suggestion for items to blacklist: debug sticks, ender gateways, structure void, void air, jigsaw blocks, bedrock, barriers, spawners, chain command blocks, repeating command blocks, and command blocks.
Edit: Potted items, banners, and certain signs seem to be bugged and will not give anything, to prevent this you could put them in your blacklist.