Minecraft: Commands, Files, Versions
Gaining Access to Heads/Skulls You Find in Worlds
Worlds often use heads or skulls (as items placed as decorations) that are not available in the standard creative inventory. These are created from player skins, and you can get the data describing them, then usually you can use a command to get access to copies of the same item. The command you need is usually too large to type in the chat so you have to use a command block (where fortunately the Paste command works), and you can often find the command code on a public website. The process I use is:
- Use F3 and point at the item to confirm it is a head/skull.
- Stand on top of the skull
- Find out its identifying information: 1.8 - 1.12 : /blockdata ~ ~-0.5 ~ {}
- Usually a lot of text is printed. Try to find a section that is easy to type into a web search, for example "3b233f12-8312" (Link character from The Legend of Zelda) or "Squattamelon" (the SkullOwner field from the watermelon example below)
- Search online. Hopefully the head came from a published source, such as one of the popular Minecraft resource sharing sites.
- The site will usually give the code you need for your situation (give the item to the player, place it as a block in a certain location, place it on the head armour slot of an armorstand, etc.) The better sites include commands for pre-1.13 versions of Minecraft.
- Copy the "/give" code for the version of Minecraft you are using.
- Place a command block, set its command (paste the code you just copied)
- Give the command block a button (use your Sneak hotkey, e.g. left-shift, to place objects on command blocks)
- Hit the button to confirm it works and get the item.
- (optional) I usually place a item frame displaying the head so I can easily remember what item is dispensed by this command block.
Other Decorative Items
Brick
/summon minecraft:item ~ ~ ~ {Item:{id:brick,Count:1}}
Coloured Dye (e.g. Rose Red dye)
Use the Damage tag to specify the colour:
/summon minecraft:item ~ ~ ~ {Item:{id:dye,Damage:1,Count:1}}
Colour in sign text
Place a sign, then stand in the spot where it is, and type
/blockdata ~ ~0.5 ~ {Text1:"{\"text\":\"MESSAGE\",\"color\":\"blue\"}"}
(if the sign is on a wall at eye level, stand directly in front of it and substitute "~1.5" for "~0.5")
Name Tag
/summon minecraft:item ~ ~ ~ {Item:{id:name_tag,Count:1}}
Commands for Editing Worlds
clone [first coords] [second coords] [dest coords]
1.8 to 1.12:
/clone 143 27 -32 123 23 -12 ~ ~2 ~
first option:
replace (default) : Clones all blocks, including air
masked : only operate on blocks where the source is non-air. (e.g. copy a hollow object so it surrounds something else)
filtered : Clones only blocks that match the 3rd argument
2nd option:
normal : (default, but required if you gave a 1st option)
move : fill the source area with air (i.e. you have "moved" something rather than cloning)
force : Skip the overlap check
/fill [first corner] [opposite corner] [blocktype]
1.8 to 1.12:
/fill 143 27 -32 144 30 -30 minecraft:wool 5 replace
(note that you can type minecraft: then hit tab for autocompletion)
1st option (optional unless you also want to give the 2nd option) : data value (e.g. colour of wooden planks)
2nd option (optional):
replace (default) : Act on all blocks
replace [blocktype] : Act only if the target block is of the given type
destroy : Blocks that were in the target are are destroyed, as if they had been mined
keep : Act only if the target block is non-air.
hollow : Create a hollow rectangular solid (filled with air except the outermost layer)
outline : Act only on blocks in the outer layer of the target area (leaving the inside unchanged)
If you know the size of the area to fill and are certain you have the signs right, you can use ~ symbol to give the coordinates relative to your location; e.g. to create a 7×7 stone platform under where you are presently standing:
fill ~-3 ~-1 ~-3 ~3 ~-1 ~3 minecraft:stone
to change cobblestone to stone:
1.8 to 1.12:
/fill <x1> <y1> <z1> <x2> <y2> <z2> stone 0 replace cobblestone
1.13+:
/fill <x1> <y1> <z1> <x2> <y2> <z2> stone replace cobblestone
Blockwise-Parallel Computational Operations
Restore starting configuration:
/fill 230 68 323 238 68 326 air 0
/fill 231 68 323 231 68 326 stone 0
/fill 235 68 324 238 68 324 sand 0
In range A:
change air to cobblestone:
/fill 235 68 323 238 68 326 cobblestone 0 replace air
change clay to air:
/fill 235 68 323 238 68 326 air 0 replace minecraft:redglazedterracotta
Then clone A onto B with options masked normal
/clone 235 68 323 238 68 326 230 68 323 masked normal
Links
Related pages on my site:
Alan Becker's Ghiblicraft Projects
This page was written in the "embarrassingly readable" markup language RHTF, and was last updated on 2021 Sep 06.
