Git repository for the SMB3 Inventory
  • Assembly 100%
Find a file
2026-02-24 15:49:06 -06:00
Patches Initial commit 2026-02-24 15:49:06 -06:00
.gitignore Initial commit 2026-02-24 15:49:06 -06:00
README.md Initial commit 2026-02-24 15:49:06 -06:00

Super Mario Bros. 3 Inventory

Version 1.0
By Ari

Introduction

Ever wished Ladida's Super Mario Bros. 3 Status Bar included the inventory? Wish no more, for this is an implementation of the inventory seen in said game, for said status bar. It comes complete with items.

What this includes

Bundled with this thing we have:

  • An edit of Ladida's SMB3 Status Bar patch, which enables the status bar to display in the first place.
  • An edit of Medic's Main Map Split patch, in case you wish to use it. (It's optional, the inventory works in the big-sized main map just as well!)
  • The SMB3 Inventory patch.
  • The following inventory items:
    • The vanilla powerups (mushroom, fire flower, cape feather, star).
    • Some of LX5's powerups (raccoon leaf, hammer suit, frog suit, tanooki suit)
    • The P-Wing.
    • The hammer, which breaks a specified layer 1 tile.
    • The flute, which teleports the player to another (sub)map.
    • Also includes slots for the note block, cloud and anchor, but they are not implemented yet. Stay tuned!
  • A treasure chest sprite for PIXI, so you can, y'know... obtain the items :P
  • UberASM code for the P-Wing, meant for gamemode 14.
  • The flute sprite for BOWSIE.
  • A BW-RAM table if you use BW-RAM Plus. You can combine it with the one you use. SRAM Plus users need not apply, this syncs the items either way.

Installing this thing

Some preliminaries.

  • This is compatible with SA-1 and LX5's powerups. I really recommend using the latter, because really, the chest and most items need it to work.
  • To my knowledge, you can patch this over the original SMB3 status bar patch in case you already do use it, because I did not any new hijacks. You could keep your settings and just replace smb3_status.asm and the included bin files with the ones included.
  • You need to use BOWSIE before, because the inventory needs some memory it frees. I mean, you need it for the flute and cloud, so... no big deal.
  • If you plan on using the star item, you will need to modify some AddmusicK code yourself. I tried my best to explain it in here, but due to the ever volatile nature of AMK releases, I did not include the required edits to patch.asm.

So, how do we actually get the inventory running?

  1. Run BOWSIE in your ROM. You can insert the flute and cloud, even if you don't plan on using them.
  2. Patch smb3_status.asm with Asar. If you want to change any settings or RAM defines, look either in smb3_status.asm or smb3_status_defines.asm, just like you would in the original patch.
  3. Review smb3_inventory.asm for any defines you want to change, such as amount of items.
  4. Patch smb3_inventory.asm with Asar.
  5. If you need to repatch smb3_status.asm you can, but make sure you immediately repatch smb3_inventory.asm too!

That, in itself, should make the inventory work. Still, you do need a way to get items, and short of programming a way yourself, the chest will be your best friend.

  1. Review treasure.asm for any changes you wish to make. This is pretty essential as I just left the most barebones configuration!
  2. Insert the chest as a regular PIXI sprite.
  3. Add a chest to a level you wish. Do note the chest ends the level, so this may be more useful in, say, bonus stages hidden across the map.

Finally, to make the star work:

  1. Go to your AddmusicK folder, then asm, SNES, and open patch.asm.
  2. Find this block:
if !Starman != $00
  LDA $1490|!SA1Addr2
  CMP #$1E
  BCS .starMusic
  BEQ .restoreFromStarMusic
endif

and change it to

if !Starman != $00
  LDA $1490|!SA1Addr2
  CMP #$1E
  BEQ .restoreFromStarMusic
  BCS .starMusic
endif
  1. Change the following
	jsr SkipPowStar
	bcs ++
	lda !MusicMir
	cmp #!Starman

to

	jsr SkipPowStar
	bcs ++
	lda $0100|!SA1Addr2
	cmp #$13
	bcc ++
	lda !MusicMir
	cmp #!Starman
  1. Save and re-insert the music to your ROM.

Acknowledgements, credits and extra notes

I don't really care about credit BUT, now that SMWCentral requires you to give credit for everything you use, this is who you should credit.

  • Ari: Super Mario Bros. 3 Inventory + Items
  • Ladida, LX5: Super Mario Bros. 3 Status Bar
  • Medic: Main Map Split

This wasn't tested by anyone not named Ari, as my intent was to keep this a secret until C3 (save for LadiesMan217 showing it out). So, not really any thank yous for testing :P
This was commissioned by LadiesMan217. If your username isn't LadiesMan217, please do not bother asking me for extra features - those will come if I feel like it.
Ask for any help with the patch in SMW Central's #asm. I'm active there so chances are I'll help you, but this also allows others to chime in (and additionally, it doesn't make me feel like people only care about me for my code). Do not contact me for help setting this up.
I will most likely never upload this to the SMW Central patches section due to the fact it wasn't tested and due to the edits required by Ladida's status bar so this works.