A Tower of London warden feared an acid attack was underway and evacuated the building when anti-wealth activists hurled crumble and custard at the Crown Jewels, a court heard.
The stunt by four demonstrators allegedly caused more than £6,000 in damage to the glass cabinet, brass frame, brass handrail and stone plinth at the Tower of London last December.
Fatima 'Zara' Ali, 20, Miriam Cranch, 22, Mack Preston, 23, and Matthew Cooper, 51 are also accused of causing criminal damage to the warden's uniform, valued at £126.25.
Hayley Chamberlain, who was on duty guarding the room, told a court she radioed 'attack, attack' to a colleague to sound the alarm, and that a 'full evacuation' was ordered after she saw an 'unknown' substance thrown at the display case.
The warden said she first noticed two people trying to take pictures of a ceremonial crown on display and told them it was forbidden.
She said: 'I knew something bad was going to happen, I just didn't know what it was.
'I then heard a big noise and noticed the damage being done to the case.
'Something had been thrown at the case; I didn't know what it was.'
Four anti-wealth activists allegedly caused more than £6,000 in damage to the glass cabinet containing the Crown Jewels and its adjacent parts at the Tower of London last December
The warden on duty in the room at the time, Hayley Chamberlain, has told of how she believed the activists were launching an acid attack and evacuated the building
When Ms Chamberlain realised that the substance was custard and crumble, she had to ask a colleague to remove it from her shoes as she was allergic to gluten
She added: 'We're trained to expect every scenario, and I didn't know at the time what it was, so I thought it could be acid. The substance on the case really stank.'
CCTV footage was shown of Ms Chamberlain putting her hand over the phones by the crown jewels' cabinet.
She then said 'excuse me, sorry guys' to the defendants before stepping in front of the case.
Footage showed the activists hurling a large foil tray of crumble and a tub of bright yellow custard towards the Imperial State Crown and hitting the glass case.
They then opened their coats, revealing t-shirts with the words 'Take Back Power', before holding up a banner that said: 'Democracy has crumbled, tax the rich.'
The protesters then shouted: 'Britain is broken. We've come here to the jewels of the nation to take back power. Join us at takebackpower.net'
Ms Chamberlain could then be seen walking around the case talking on her radio.
Once the warden realised that it was crumble on her shoes, a colleague helped to clean it off because she is allergic.
She said: 'I couldn't touch crumble because I have a high sensitivity to products containing gluten, being a coeliac, it can trigger an allergic reaction.'
The four defendants denied damaging the uniform of a female security guard at the Tower.
Prosecutor Tom Heslop told the court the four defendants entered the Tower of London on the morning of December 6.
He said Ali and Cranch smeared crumble and custard onto the display cabinet, which dripped onto the floor and damaged Ms Chamberlain's shoes and cape.
He added that Preston and Cooper 'showed their encouragement and support' by recording the stunt on their mobile phones, with the footage then shared on activist group Take Back Power's website.
Jack Verber, maintenance manager at the Tower of London, told the court: 'The damage only got revealed once the custard and crumble got cleaned up.
'It (the case) was totally covered in crumble and custard and it was dripping down and you could see it was dripping down inside of the case.'
Mr Verber said the Crown itself was not damaged.
Ali, of Rhodeswell Road in Tower Hamlets, east London; Cranch, of Trelawn Avenue in Leeds; Preston, of Westferry Circus in Tower Hamlets; and Cooper, of Oriel Gardens in Bath, all deny the charges against them.
The trial continues.