It would have been every stoner's dream: a bakery that supplies both cannabis, and delicious treats to cure the munchies that follow the high.

But the dream went up in flames in August 2013, the County Court heard on Tuesday, when MFB officers attended a fire at a Hadfield bakery.

Police found 15.5kg of cannabis at the Pallett's Carrum Downs home.

The owner, baker Peter Wilson, initially prevented firefighters from entering the building, the court heard.

After they eventually found a way in and extinguished the fire, firefighters discovered what he had been so anxious to keep them from: on the mezzanine floor was a crop of 30 mature cannabis plants.