Yeah, this whole operation should probably be abstracted out to be handled by an inventory system, especially once we have more complex things happening, like multiple weapons and server-side block mining simulation.