Forum rules: Do not post bugs or feature requests here! Report bugs to our Issue Tracker and suggestions to Suggest a Feature.

This site is not for solicitation of services or 'purchasing' development. Please do not post requesting side mods/plugins and so on. Your thread will be removed, and you will receive a warning.

By Ganman3
#161437 With command blocks, yes. It's tricky, but you can do it.
Give the player a temporary custom item, then have a command block take that item. That should send a signal to a line of command blocks as soon as the command is able to execute, and from there, you can give the player a random item.