make a command
if the command is used
set a variable to a random number between 0 and 406
if varible is 0
give player (an item)
i think that should work
Download the data pack you would like to use. ...
Access your server directory and navigate to the /world directory. ...
In the world directory, open the /datapacks folder.
In your datapacks folder, upload the data pack you would like to install.