how to change item type?

  • 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.

UpSpeak

Member
Jan 28, 2021
3
0
1
24
Is it possible to change player's tool's item type so it keeps the lore and name?


Code:
command /setitemtype <item>:
    trigger:
        set player's tool's item type to arg-1

nvm got it working with this

Code:
command /setitemtype <item>:
    trigger:
        set {_nbt} to nbt of player's tool
        set {_item} to arg-1 with nbt "%{_nbt}%"
        set player's tool to {_item}
 
Status
Not open for further replies.