if {worth::%uuid of player%} is true:
if any:
targeted block is chest
targeted block is barrel
targeted block contains minecraft tag "minecraft:shulker_boxes"
targeted block is furnace
targeted block is blast furnace
targeted block is smoker
targeted block is loom
targeted block is cartography table
targeted block is brewing stand
then:
if player is sneaking:
if player's tool is air:
loop all items in inventory of player:
set {_amount} to item amount of loop-slot
set {_worth} to price(loop-item)*{_amount}
set lore of loop-item to "&7Worth: &a$%{_worth}%"
else:
loop all items in inventory of player:
set {_amount} to item amount of loop-slot
set {_worth} to price(loop-item)*{_amount}
set lore of loop-item to "&7Worth: &a$%{_worth}%"
on pick up:
if {worth::%uuid of player%} is true:
wait 1 tick
loop all items in inventory of player:
set {_amount} to item amount of loop-slot
set {_worth} to price(loop-item)*{_amount}
set lore of loop-item to "&7Worth: &a$%{_worth}%"```
#Stacking Issue
1 messages · Page 1 of 1 (latest)
you would have to set the item amount of loop slot to the amount of all items then set the lore of that slot to make them stack. delete the rest of that item in their inv. then you would have to do additional math to make sure the stack doesn't go above 64 and if it does split the stack into multiple slots and stuff
i would just make the lore show the price of 1 of the item
and set that in the item spawn event