Seeloewen / Random-Item-Giver-Datapack

Get a random item every x seconds! The time is fully customizable and you can also select which types of items you want to receive.
16 stars 6 forks source link

Fix everyone receiving the same type of item #15

Open Seeloewen opened 7 months ago

Seeloewen commented 7 months ago

Currently, while everyone receives a random item when playing multiplayer, they always get the same type. If a normal item is rolled, everyone gets a random normal item at the same time. When a goat horn is rolled, a everyone receives a random goat horn. It should theoretically be possible to make everyone receive a random type of item. By rolling the random number for each person seperately and not for the RandomItemGiver in general, everyone gets a random item from a random loot table.