set {_n} to "{explosion:%getlvl(tool, "explosion")%}"
set {_last} to nbt compound from {_n}
send {_enchants::*}
remove {_last} from {_enchants::*}
send "%nl% %{_enchants::*}% %nl%"
set {_e} to nbt compound from "{explosion:%{_amount}%}"
add {_e} to {_enchants::*}
set compound list tag "enchants" of nbt compound of player's tool to {_enchants::*}
I have this but it does not remove the nbt from the local var any ideas why?