Discord Thread need help with loop item flags

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

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.
`command /exchange:nethe:
trigger:
if player's tool is netherite sword:
loop enchantments of player's tool:
add loop-value to {_x::*}
set {_f::*} to all hidden flags of player's tool
set {_n} to name of player's tool
set {_l::*} to player's tool's lore
set {_e} to full nbt of player's tool
remove player's tool from player's inventory
set {_m} to diamond sword
enchant {m} with {x::*}
give {m} named {n} with lore {l::*} with nbt {e} with {_f::*} hidden flags to player
clear {_x::*}
give netherite ingot to player
stop`

Posted by: mavik_ from the skUnity Discord.
 
Status
Not open for further replies.