Minecraft's Creeper Was Supposed to Be a Pig: The Coding Mistake Behind Gaming's Famous Monster
The Creeper wasn't designed to scare you. In 2009, Notch swapped two numbers while building Minecraft's pig – and kept the mistake. Here's the real story.
Watch the Short
The 60-second version is on YouTube. This article is the full story.
New Shorts every week on tech trivia, AI and gadgets.
Subscribe to TheTechPranaKey takeaways
- The Creeper began as a coding mistake: in August 2009, Minecraft creator Markus "Notch" Persson swapped the length and height of the pig model, so it stood up tall.
- He kept it "for a creepy creature", made it green and hostile, and – after a friend's suggestion – made it explode.
- It arrived in a pre-alpha update on 1 September 2009 and became one of gaming's most recognisable monsters; its face is even hidden in the "A" of the Minecraft logo.
Minecraft’s most famous monster – the green, silent thing that hisses and blows up your house – was never supposed to exist.
It was meant to be a pig.
The Short above tells the story in 46 seconds. Here’s the slightly longer version.
The myth: a monster carefully designed to scare you
It’s easy to assume the Creeper was planned: a silent stalker with a fuse, built to make players nervous every time they step outside at night.
The truth is a bug.
What actually happened
In August 2009, Minecraft was still a tiny pre-alpha project being built by one developer: Markus Persson, better known as Notch.
He was working on the game’s first animal, the pig. A pig model in a game is basically a box with legs, defined by numbers like its length, width and height.
Notch accidentally swapped the length and the height.
Instead of a long, low pig, he got something tall and narrow, standing upright on four stubby little legs. As Mojang’s Jens Bergensten later put it in an interview on Minecraft.net, it was supposed to be the pig, but the values got mixed up – so it was standing up instead of lying horizontally.
In code terms, the mistake looked something like this (illustration):
// what Notch meant
pig.length = long
pig.height = short
// what he got
pig.length = short
pig.height = long // 😬 the pig stands up
“I’ll keep it for a creepy creature”
Most developers would fix a bug like that and move on. Notch didn’t.
In a chat log from 20 August 2009, he wrote that he’d keep it “for a creepy creature.”
So the broken pig got:
- a green texture,
- hostile AI, so it would come after you, and
- later, its signature move. According to Bergensten, a friend of Notch’s said it would be cool if it exploded – and that’s what happened.
1 September 2009: the Creeper arrives
The Creeper was officially added to the game in a pre-alpha “survival test” update on 1 September 2009.
Its behaviour is simple and terrifying: it walks up silently, hisses, then explodes after a short delay – usually taking a chunk of your carefully built house with it.
From bug to mascot
The accident turned out to be one of the best things that ever happened to Minecraft:
- The Creeper has become one of the game’s most recognisable enemies, appearing on merchandise, in spin-off games and in “most iconic video game character” lists.
- Its pixelated face is even hidden in the “A” of the Minecraft logo.
Not bad for a pig with its numbers mixed up.
The lesson for anyone who codes
Software bugs are usually something to squash. But sometimes a mistake shows you something better than what you planned – and the skill is noticing it.
The Creeper is gaming’s favourite example of a “happy accident”: one swapped value, one developer who thought “that’s creepy… I’ll keep it”, and a monster that’s been blowing up players’ builds for over 17 years.
Your turn: did you know the Creeper was a broken pig? And have you ever lost a build to one? Tell us in the YouTube comments.

