I have tried a few ways and tried many commands but I just don't seem to get it right.
What I'm trying to do :
I have a Minecraft realm with a town center where each player can press a button, which triggers a command block, giving them one pickaxe with a unique identifier (not sure what or how). Would be nice if the pickaxe could be named after the player who pressed the button like "Minecraftuser12312 Pickaxe" but not important,
If they press the button again I need to make sure they do not have the item and if the item is also not just thrown out to pick another one up from the command block.
Any help would be appreciated <3
Things to know :
I am the realm owner and command blocks are enabled in the world.