It's a combination of healthbar and numbers of coconuts hence the pyramid of coconuts.
I'll look into the layering and physics. Not sure if it's possible to climb on the pyramid without knocking it down.