You are on page 1of 5

Example in Java Edition (PC/Mac) 1.11 and 1.

12
To keep inventory after dying in Minecraft 1.11 and 1.12:

/gamerule keepInventory true

To lose inventory after dying:

/gamerule keepInventory false

Give Command
 Java

PE
 Win10
 Edu

Give Command in Minecraft Java Edition (PC/Mac)


In Minecraft Java Edition (PC/Mac) 1.13, the syntax to give a player an item is:

/give <targets> <item> [amount] [dataTag]

In Minecraft Java Edition (PC/Mac) 1.8, 1.9, 1.10, 1.11 and 1.12, the syntax to give a
player an item is:

/give <player> <item> [amount] [data] [dataTag]

Definitions

 targets or player is the name of the player (or a target selector) to give the item to.
 item is the name of the item to give (See Minecraft Item Names).
 amount is optional. It is the amount of the item that you want to give. If you don't
specify an amount, the player will be given 1 of the item.
 data is optional. It identifies the variation of the block if more than one type exists for
that Item ID (See Minecraft Data Values). Use a value of 0 if no data value exists for
the item.
 dataTag is optional. It is the data tag that you want to set for the item being given. It
is a compound NBT tag such as {Potion:harming} or {EntityTag:{id:Creeper}}.

Examples
 Java

 PE
 Win10
 Edu

Example in Java Edition (PC/Mac) 1.13


To give 1 block of gold to the player named DigMinecraft in Minecraft 1.13:

/give DigMinecraft gold_block

To give 4 blocks of gold to the player named DigMinecraft:

/give DigMinecraft gold_block 4

To give 2 jungle wood planks to the nearest player:

/give @p jungle_planks 2

Example in Java Edition (PC/Mac) 1.11 and 1.12


To give 2 jungle wood planks to the nearest player in Minecraft 1.11 and 1.12:

/give @p planks 2 3

Requirements
To run game commands in Minecraft, you have to turn cheats on in your world.
Locate Command
 Java

 PE
 Win10
 Edu

Locate Command in Minecraft Java Edition (PC/Mac)


In Minecraft Java Edition (PC/Mac) 1.11, 1.12 and 1.13, the syntax to find the closest
coordinates of a structure is:

/locate <feature>

Definitions
 feature is a structure that you wish to find. The /locate command will return
the coordinates for the nearest type of feature you select. It can be one of the
following, depending on your version of Minecraft:

Features in 1.13
feature Description

Buried_Treasure Nearest Buried Treasure

Desert_Pyramid Nearest Pyramid

EndCity Nearest End City

Fortress Nearest Nether Fortress

Igloo Nearest Igloo

Jungle_Pyramid Nearest Jungle Temple

Mansion Nearest Woodland Mansion

Mineshaft Nearest Abandoned Mineshaft


Monument Nearest Ocean Monument

Ocean_Ruin Nearest Ocean Ruin

Shipwreck Nearest Shipwreck

Stronghold Nearest Stronghold

Swamp_Hut Nearest Witch Hut

Village Nearest Village

Features in 1.11 and 1.12


feature Description

EndCity Nearest End City

Fortress Nearest Nether Fortress

Mansion Nearest Woodland Mansion

Mineshaft Nearest Abandoned Mineshaft

Monument Nearest Ocean Monument

Stronghold Nearest Stronghold

Temple Nearest Jungle Temple, Pyramid, Witch Hut, Igloo

Village Nearest Village

Examples
 Java
 PE
 Win10
 Edu

Example in Java Edition (PC/Mac) 1.13


To find the coordinates of the nearest Buried Treasure in Minecraft 1.13:

/locate Buried_Treasure

To find the coordinates of the nearest Ocean Ruin:

/locate Ocean_Ruin

To find the coordinates of the nearest Witch Hut:

/locate Swamp_Hut

Example in Java Edition (PC/Mac) 1.11 and 1.12


To find the coordinates of the nearest Woodland Mansion in Minecraft 1.11 and 1.12:

/locate Mansion

To find the coordinates of the nearest Village:

/locate Village

To find the coordinates of the nearest Abandoned Mineshaft:

/locate Mineshaft

You might also like