The DispenserSound is an enum for the three sounds of dispenser.

It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.

import crafttweaker.dispenser.DispenserSound;

The three static methods return a DispenserSound object.

ZenScript
Copy
import crafttweaker.dispenser.DispenserSound;

DispenserSound.dispense();
DispenserSound.fail();
DispenserSound.launch();