PhD Advisor to Stop Funding Me
The situation you described is very unfortunate, and, if your description of your advisor's behavior is accurate, not entirely your fault. It is true that sometimes projects don't work out and students need to learn to take responsibility for their own projects, it is also the responsibility of an advisor to guide the project to fruition, one way or another. Most good ideas will not result in a paper without at least one to two years of work, and you end up in a futile cycle if you are constantly changing directions at the first sight of any trouble.

Your current situation is untenable. If you continue with it you will graduate with very little to show for and a difficult time finding a good post-doc or industrial position. If you want to stick with your advisor, you need to have a difficult conversation with her, in a non-confrontational manner, to lay out your concerns and the pattern of inconsistency that resulted in low productivity. Ideally the meeting will produce a plan to make better use of the remaining time you have to maximize your research output and prepare for your next job. But behavior change is hard, and if your advisor is as short-tempered as you say, negotiating a different relationship with her may be next to impossible, and any behavior change may be only temporary. Alternatively you should consider switching to a different lab, which will result in delay to your graduation and people may be hesitant to take you in at this stage of your PhD. Lastly there is always the option of dropping out. It is a difficult decision given what you've already invested. But if it becomes clear that the past time investment can no longer be salvaged the smart thing is to move on; maybe use the time instead to gain some industrial experience that will serve you better down the road?

Ultimately it is a hard decision that strangers on the internet cannot make for you. Nevertheless you should explore these options, perhaps simultaneously, and think through and prepare for the possible outcomes. Good luck.