Here is the working pickup sound script :
onEvent('item.pickup', event => { if (event.item != "kubejs:banana") return event.server.runCommandSilent(playsound kubejs:banana player @a ${event.player.x} ${event.player.y} ${event.player.z} 1) })
Is there any way to prevent the classic minecraft "plop" pickup sound so that the two sounds do not overlap?
