on rightclick:
if player has {rawwolfmeat} in main hand:
if clicked block is campfire:
cancel event
wait 1 tick
send "test" to player
remove 1 of {rawwolfmeat} from player's inventory
give 1 of {cookedwolfmeat} to player
Example: if i hold 3 on {rawwolfmeat}, the skript doesnt think i hold {rawwolfmeat}