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

maxall4

Member
Jul 18, 2018
11
0
0
25
hi how do you add a name to an item without removing the item from the player's inventory and then replacing it with the same item that has a new name and it has to work with custom inventories
i cant find a way to do this
 
code_language.skript:
command /test:
    trigger:
        set name of player's tool to "NAME"
        set lore of player's tool to "LORE LINE 1||LORE LINE 2"

This would obviously be the item in the players hand, if you are wanting to do any other item, you would have to know which slot the item is in
 
can you use this with custom inventories and if you can can you give me example code for the custom inventory
 
code_language.skript:
open virtual chest with 1 rows named "Kebab" for player
format gui slot 1 of player with bread named "small kebab" with lore "LORE LINE 1||LORE LINE 2" to close
 
Status
Not open for further replies.