I'm playing Minecraft and I'm not sure how to save my items/stuff when I die. I always lose my house and I found out I have to commit suicide to go back to my home. But then I can't find my items. This is always a problem for me! Please tell me the command for saving my items and for my house. My compass always points to the place where I spawn I don't understand I sleep at my house and I don't spawn there, is my compass broken?
If cheats are enabled for your world, you can use
If cheats are not enabled, you can temporarily open your world to LAN to enable cheats and change that gamerule.
In Vanilla (Plain, un-modded, without cheats enabled) Minecraft there is no command to save your items.
When you die you drop everything that you are carrying at the time of death. The items stay on the ground for about 5 minutes, or if the chunk has been unloaded forever.
To set your spawn you need to sleep in a bed. Generally it's a good idea to wait a few seconds before getting out.
There are a couple conditions you may need to follow to have it set your spawn correctly:
Above from Minecraft Wiki: Gamepedia.
I believe there's three other ways to get to your home without suicide.
1: Use A Map, if your not going THAT far.
2: Use cobblestone or some other thing not related to dirt and make a pathway wherever you go.
3: Screenshot your house's X and Z. After your done exploring, just go that location.
I suggest these three because a Compass won't really help you that much.