Data Modify
Hello, recently I have been trying to make a currency system and would like to get an item with a tag from storage. I have the commands:
execute store result hometown:money_item value int 1 run scoreboard players get giveAmount variables data modify entity @s Inventory[{tag:{Worth:1}}] set from storage hometown:money_item valueBut I am not sure why this isn't working. The storage is working, the value is being set. But the item's NBT is not. How could I fix this?