---
title: "Minecraft cheat codes for Java Edition | PadCodes"
url: "https://padcodes.com/minecraft/java/"
description: "All 12 Minecraft cheats for Java with codes to type: player, movement, world & weather, items, characters & relationships and build & debug."
site: "PadCodes"
---

[Java Edition](https://padcodes.com/minecraft/java/) | [Bedrock Edition](https://padcodes.com/minecraft/bedrock/)

# Minecraft cheat codes for Java Edition

Java · 12 codes · Updated 13 Nov 2026

12 Minecraft cheats for Java, each shown as the text to type. They cover player, movement, world & weather, items and characters & relationships. Tap a code to copy it. How to enter cheats

## All codes

- Add experience: xp add @s 10 levels
- Change game mode: gamemode creative (Changes the game mode.)
- Fill blocks: fill ~ ~ ~ ~5 ~5 ~5 stone
- Give effect: effect give @s speed 30
- Give item: give @p diamond 1 (Gives a diamond to the nearest player.)
- Kill: kill @s
- Set difficulty: difficulty normal
- Set game rule: gamerule keepInventory true
- Set time: time set day
- Set weather: weather clear
- Summon entity: summon creeper
- Teleport: teleport @s @p

## How to enter Java Edition cheats

Turn on Allow Cheats for the world, open chat with T or /, type the command and press Enter.

We compare codes with independent sources where we can; each code shows how many it was matched on. [How we check codes](https://padcodes.com/about/)
