Hi, im making a hypixel skyblock Atomsplit Katana recreation, well, when you right click with that diamond sword, it changes to a golden sword for 4 seconds and then changes again to diamond. Ive managed to make the diamond sword change and change back, but if i change the weapon slot, the golden sword stays as golden and the diamond sword appears in the slot that you initially right clicked, making the sword dupe. Here is my code:
Any help is welcome
Code:
on right click:
if player's held item is diamond sword named "&6Atomsplit Katana":
set {_nbt} to nbt of player's held item
set player's held item to golden sword with nbt "%{_nbt}%"
wait 4 seconds
set player's held item to diamond sword with nbt "%{_nbt}%"
Any help is welcome