I wanted to “program” a /dupe command for my Minecraft Server, I was able to fix 2/3 bugs.
Many thanks in advance
Daniel
Error message
command /dupe:
trigger:
if player is holding an item:
set {_item} to player's tool
set {_amount} to amount of {_item}
set {_newAmount} to {_amount} * 2
set {_item} to {_item} with {_newAmount} amount
give player {_item}
I tried to script a /dupe command that duplicates the selected item from the hotbar.
New contributor
DaaanielTV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.