on rightclick on stone: cancel event if player's held item is wood pickaxe: command "/give %player% cobblestone 1" send action bar "石を手に入れた" to player command "/playsound minecraft:block.stone.break master %player% ~ ~ ~ 1 2 1" else: send action bar "木のツルハシ以上で掘ろう" to player on rightclick on grass block: cancel event if player's held item is wood hoe: command "/give %player% wheat_seeds 1" send action bar "小麦の種を手に入れた" to player else: send action bar "クワで掘ろう" to player