Adding example function for item spawns

The use of a case statement is great here.