A 15-year-old boy who admitted attacking a pig farm with a collection of birds acted as if he was in a "real-life video game", a court has heard.
The schoolboy, described as a "model pupil", stole 2 dozen eggs when he carried out the attack in Liverpool on Friday. At this stage it is not known how the pigs came to be in possession of the eggs.
His mother called police when she found the eggs, some feathers, and a catapult in his bedroom, Liverpool Youth Court was told.
"It's an armed robbery but not in the conventional sense most people would recognise.
"It's a bizarre, surreal case of a young man almost acting like a real-life action video game.
"Nevertheless it was a robbery."
The boy was not known for misbehaving and admitted to police he was envious of other people's eggs, the court was told.
The judge added his crime was "motivated by greed and immaturity" and influences that may have included "another pupil" or something he had "been watching or playing".
Birds used by the boy in the attack are said to be unhurt, but are particularly angry.