I implemented my idea for the interaction between sulfur cubes and frogs. It suggests a very niche solution to be able to place blocks automatically.
When the frog is in the vehicle (boat, minecart), it spits in the direction the vehicle is facing, rather than in the direction the frog is facing.