giving player the item they are holding

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

akgamer182

Member
Apr 13, 2021
1
0
1
26
I'm trying to make an item duplication script. You use /dupe and it duplicates the item you're holding. I'm not very good at coding, but this is what i have so far:

command /dupe:
trigger:
set {_x} to amount of player's held item in player's inventory
message "%{_x}%"
set {_y} to player's held item
message "%{_y}%"
give %{_x}% %{_y}% to player
 
Code:
command /dupe:
 trigger:
  give player player's held item

This is how you do it
 
Status
Not open for further replies.