Implement the transform, bonus_script, playbgm, and getitemgroup blocks.