Professional Documents
Culture Documents
12
To keep inventory after dying in Minecraft 1.11 and 1.12:
Give Command
Java
PE
Win10
Edu
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:
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
/give @p jungle_planks 2
/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 <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
Examples
Java
PE
Win10
Edu
/locate Buried_Treasure
/locate Ocean_Ruin
/locate Swamp_Hut
/locate Mansion
/locate Village
/locate Mineshaft