How to assign a command to an item? [duplicate]
![How to assign a command to an item? [duplicate] - Unrecognizable woman holding paw of dog How to assign a command to an item? [duplicate] - Unrecognizable woman holding paw of dog](/assets/images/how_to_assign_a_command_to_an_item_duplicate_0.jpeg)
//ads -- adsterra.com -- native banner
?>
Does anybody know a way to add a command to an item (emerald, stick, other ingredients), then when left or right clicked, it executes a command?
Best Answer
You can do so with scoreboard but not in all cases: http://minecraft.gamepedia.com/Scoreboard#Objectives It's based on the stat.useItem
There is other workarounds but it's probably the more generic.
Pictures about "How to assign a command to an item? [duplicate]"
![How to assign a command to an item? [duplicate] - Side view of young woman in hoodie sitting on floor near sofa and playing with obedient brown Labrador while resting during free time How to assign a command to an item? [duplicate] - Side view of young woman in hoodie sitting on floor near sofa and playing with obedient brown Labrador while resting during free time](/assets/images/how_to_assign_a_command_to_an_item_duplicate_1.jpeg)
![How to assign a command to an item? [duplicate] - Crop hacker silhouette typing on computer keyboard while hacking system How to assign a command to an item? [duplicate] - Crop hacker silhouette typing on computer keyboard while hacking system](/assets/images/how_to_assign_a_command_to_an_item_duplicate_2.jpeg)
![How to assign a command to an item? [duplicate] - Full body optimistic young female with curly hair smiling and teaching Beagle dog beg command on sunny summer day in countryside How to assign a command to an item? [duplicate] - Full body optimistic young female with curly hair smiling and teaching Beagle dog beg command on sunny summer day in countryside](/assets/images/how_to_assign_a_command_to_an_item_duplicate_3.jpeg)
How do you duplicate items in Minecraft with commands?
Open the inventory. Click on the item you want to duplicate to pick it up. Hold your mouse's scroll wheel button and drag it over empty inventory slots to duplicate it as stacks in your inventory.What is the command for duplicating?
Keyboard Command: Control (Ctrl) + C The COPY command is used for just that - it copies the text or image you have selected and stores is on your virtual clipboard, until it is overwritten by the next "cut" or "copy" command.What is the command to duplicate items in Skyrim?
Now, open the command console (~ key) and with the cursor select the chest or whatever storage you have put your items into and an ID number will appear. Type the command: duplicateallitems (enter ID number). That's all you need to know about how to duplicate items in Skyrim.How do you duplicate something in Autocad?
To Copy Objects[Fallout 4] Duplicating specific items with console commands
More answers regarding how to assign a command to an item? [duplicate]
Answer 2
If you want this on a multiplayer server then you could easily do this with a plugin. Its not possible as far as I know on vanilla without mods or plugins.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ivan Babydov, Ivan Babydov, Anete Lusina, Blue Bird