Hi there,
what could be the issue with this script? It does not return the set nbt tag. using latest skbee and latest skript version on 1.17.1
Result:
https://i.imgur.com/G8Vuge1.png
what could be the issue with this script? It does not return the set nbt tag. using latest skbee and latest skript version on 1.17.1
Code:
command /testnbt [<text>] [<text>] [<text>] [<text>] [<text>]:
trigger:
set {_tool} to stone sword named "&2Test"
set {_nbt} to nbt compound of {_tool}
set tag "crit" of {_nbt} to "100"
give {_tool} to player
on leftclick:
set {_nbt} to nbt compound of player's tool
set {_critchance} to tag "crit" of {_nbt}
broadcast "%{_critchance}%!"
Result:
https://i.imgur.com/G8Vuge1.png