How do I save enchantments in skript?

  • 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 community!

    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!

temperature14

Member
Dec 13, 2023
2
0
1
*I'm using a translator.

When I click, I want to put the item in a specific space in the GUI with all the enchantments of the clicked item copied, but only one enchantment is copied, or none is copied. How can I copy more than two enchantments?
 
you could do that for example:
code_language.skript:
set {_enchants::*} to enchantments of slot 1 of player's current inventory
enchant {_tool} with {_enchants::*}
and for example set {_tool} to event-slot or like event-item,
Info: for more enchants than one you need to make a list like {_enchant::*}