Super Mario Bros. Hidden 1-Ups

There are eight invisible 1-up mushroom blocks in Super Mario Bros. Sometimes they are not just invisible, but actually missing. These are the rules for when the player can hit them.

Background

In Super Mario Bros., there are a total of ten blocks with 1-up mushrooms inside. Two of them are visible, on levels 1-2 and 8-2. Eight of them are invisible, on level 1 of every world (1-1, 2-1, 3-1, etc.). It might be more accurate to say that there are “up to ten” 1-up blocks, because the eight invisible blocks are sometimes present and sometimes missing when the player attempts to hit the block.

In order to determine how the game decides when these blocks are present or missing, I reviewed a disassembly of the game and modified an NES emulator to display the game’s internal state. While I am sure that speedrunners know this information, I could not find it previously published on the Internet. Most of the sites I reviewed and even Nintendo’s official publication are wrong, and even the ones which are mostly correct are not complete.

Terminology

I use the letter N to refer to the world after world M. In other words, N = M + 1. For example, if I refer to level N-1 and M-3, this could refer to level 4-1 and 3-3, or 6-1 and 5-3, etc. I mean the levels in a strict numeric sense; in the case of a warp zone I do not mean the world the player warped from.

When I refer to a 1-up opportunity, I mean that the invisible 1-up block in a particular level is initially present. I say “initially present” because, if the player loses a life in certain areas on that level, that invisible 1-up block will no longer be present. I call this unfortunate scenario “losing” the 1-up opportunity which causes the 1-up block to be “missing.” When the player has a 1-up opportunity on a level, the player can hit the block, the player can choose not to hit the block, or the player can lose the opportunity before hitting the block.

When I say the invisible 1-up block is “on-screen” I mean that if the block weren’t invisible, it would be visible on-screen at that moment. In other words, the player is in the area of the map where the block is. When I say the player has “reached” the invisible 1-up block I mean that the 1-up block has been on-screen. When I say the player has “almost reached” the invisible 1-up block I mean that the 1-up block is not yet on-screen, but is just ahead, and the game has unset the 1-up opportunity flag (see below).

The Rule

When the player starts a new game, the player always has an 1-up opportunity in level 1 of the starting world. This means that in a normal game, there is a 1-up opportunity in level 1-1. After beating the game, the player can choose which world to start on, and the player always has a 1-up opportunity in level 1 of that starting world. Additionally, if the player warps to a world, he always has a 1-up opportunity on level 1 of the world he warps to.

Otherwise, it’s the player’s performance in level M-3 that determines whether the player has a 1-up opportunity in level N-1. Specifically, the player needs to get the required number of coins in level M-3 and then finish level M-3 in the same life. In each world, except world 1, the required number of coins is all the coins in level 3. (In level 1-3 the player can miss two coins, i.e., 21 of 23 is sufficient.) There is no world where level 3 has a multi-coin block or a hidden coin room; on every level 3, the coins are all in plain sight.

It is necessary to give a little more detail in order to explain how the player can lose a 1-up opportunity. The game has an internal flag which tracks whether the player has a 1-up opportunity. The game sets the flag when starting a new game, when the player goes down a warp pipe or when the player finishes level M-3 having obtained the requisite number of coins. The flag is unset when the player is in the immediate vicinity of the invisible 1-up block, while the invisible 1-up block is still slightly off-screen. The levels are designed so that there is no way to use a pipe etc. to skip past the point where the flag is unset.

To clarify:

To summarize, there are two reasons the invisible 1-up block can be missing:

Nintendo’s Wrong Guidance

Nintendo published a booklet in 1987 called “How to Win at Super Mario Bros” describing each level in detail and it is not accurate on this topic. Note that below [C] means “coin block” and [1] means “1-up block.”

The booklet contains a sidebar in the level 7-2 description which is slightly more accurate than the individual level instructions, but is still wrong in the details. It reads:

“UNVEIL SECRETS OF THE 1-UP MUSHROOM Actually there are two 1-UP MUSHROOMS. The ones inside the visible blocks always appear. The ones inside the mid-air invisible blocks don't always appear. It all depends on whether or not you have collected the coins in the preceding world (missing just a few is usually okay). The type of 1-UP MUSHROOM also depends on whether you already passed one by or whether you've been hit before you reached the block. Go for all of them!”

The writing is slightly garbled but seems to mean the following:

“UNVEIL SECRETS OF THE 1-UP MUSHROOM Actually there are two types of 1-UP MUSHROOMS. The ones inside the visible blocks always appear. The ones inside the mid-air invisible blocks don't always appear. It partly depends on whether or not you have collected the coins in the preceding world (missing just a few is usually okay). Whether the 1-UP MUSHROOM appears also depends on whether you already passed this one by or whether you've been hit before you reached the block. Go for all of them!”

This corrected paragraph is still inaccurate for the following reasons: