# I wrote this: player.runCommandAsync("give @s diamond") }``` but it's not working, how can I fix it?
# Try this if (player.isSneaking && heldItem?.typeId === "cd:foice_kura") { player.runCommandAsync("give @s diamond") }```