To Setup keep inventory command follow the instruction down below: 1. Go to the Minecraft settings 2. Select Lan 3. Find "Allow Cheats" to "ON" 4. Find the Chat icon click on it 5. Type:“/gamerule keep inventory” in the chatbox 6. Select true 7. Now your command is active