I need to make it so that it checks the shulker and not dupe when it spots a nether star, i tried doing it but it didn't work
the skript so far:
command /dupe:
trigger:
if player's held item is air:
send "&cYou need to hold an item" to player
else if player's held item is shulker box:
set {_shulker} to player's held item
set {_nbt_data} to nbt of {_shulker}
open virtual shulker from player's held item to {_inv}
if {_inv} contains nether star:
send "This shulker contains: %loop-value% and cannot dupe" to player
else if:
give player player's held item
send "this works!" to player