Every player has a distinctive opinion on this matter. Some claim that to play Minecraft properly, nobody should use cheat codes as it distorts one of the game's basic rules. On the other hand, others refer to cheat codes as a necessary tool to relax while playing, especially if they're not using multiplayer mode. If you're playing Minecraft with other players, keeping your inventory after death gives you an unfair advantage, and it's considered cheating. But you can do whatever you want if you're messing around on your own. If that means using cheat codes, most reporting players aren't against it.