im trying to make it so when i do /sell and it isnt working
options:
cobbleprice: 2
command /sell:
trigger:
if player's inventory contains cobblestone:
set {_ammount} to ammount of cobblestone in player's inventory
set {_profit} to {@cobbleprice} * {_ammount}
send "%{_profit}%"
add AMOUNT to player's balance
else:
send "Sorry, but you don't have any cobblestone in your inventory."
it says that inventory of a player is not a world set {_ammount} to ammount of cobblestone in player's inventory
so i need help