As of the latest, latest snapshot (14w02b), this is most certainly possible. In fact, there's an easier way to do the whole thing now, which is awesome. With the /blockdata
command added in the snapshot, you can modify and overwrite the contents of a tile entity (including a chest), and much, much more. The applications of /blockdata
go beyond what I can fully comprehend at this point in time, but, for this specific case, it's not too hard.
Let's say for example your equipment chest is supposed to contain a notch apple, a gold sword, a bow, and a stack of arrows. The command for that would be /blockdata X Y Z {Items:[{id:322,Damage:1,Count:1,Slot:0},{id:283,Count:1,Slot:1},{id:261,Count:1,Slot:2},{id:262,Count:64,Slot:3}]}
, replacing X Y and Z as appropriate. There's a lot of stuff going on in that command, but essentially, you are changing the data of the chest to contain the specified items. It's the same concept as using /setblock
to spawn a new chest with these items, except instead of replacing the chest, you're overwriting its data.
In this more specific case, you want /blockdata 264 4 997 {Items:[{id:274,Count:1,Slot:0},{id:275,Count:1,Slot:1}]}
.
And, of course, if you want an empty chest, all you need to do is use /blockdata X Y Z {Items:[]}
Disclaimer
The section symbol is deprecated. You should avoid using it as much as possible and be aware that it will not work in the future. It is being replaced by the JSON text component, which is already supported by chat (accessible with /tellraw
), book pages, sign text, and the /title
command.
In-game with signs
Because sign text supports the text component, it also supports unicode characters (declared as \u####
). The character for the section symbol is \u00A7
.
You would use the sign to run a clickEvent that provides you with a command block that uses the section symbol at the appropriate location in its syntax. You'd then place the command block where needed.
Note that this will only work for signs because it's the sign running the command, rather than the player being forced the run the command in the chat like with /tellraw
or book pages. The player would otherwise be kicked for trying to type the section symbol.
Example command:
/setblock ~ ~1 ~ minecraft:standing_sign 0 replace {Text1:"[\"\"]",Text2:"[\"\"]",Text3:"[\"\"]",Text4:"{\"text\":\"Click\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/give @p minecraft:command_block 1 0 {BlockEntityTag:{Command:/summon Item ~ ~1 ~ {Item:{id:\\\"minecraft:stone\\\",Count:1b,tag:{display:{Name:\\\"\u00A71Custom Name\\\"}}}}}}\"}}"}
Using loot tables
A custom loot table can be created to provide you with a command block containing the section symbol, which can be pasted into the JSON file directly.
For example, the following would provide the necessary command block that you'd place where desired:
{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:command_block",
"weight": 1,
"functions": [
{
"function": "minecraft:set_nbt",
"tag": "{BlockEntityTag:{Command:/summon Item ~ ~1 ~ {Item:{id:\"minecraft:stone\",Count:1b,tag:{display:{Name:\"ยง1Custom Name\"}}}}}}"
}
]
}
]
}
]
}
The command to place the chest containing the command block (assuming filepath world_name/data/loot_tables/custom/cmd.json
):
/setblock ~ ~1 ~ minecraft:chest 0 replace {LootTable:"custom:cmd"}
You can modify the command block that contains the /summon
command using either of these programs to contain the section symbol at the desired spot in its syntax.
Using MCEdit, you'd locate the command block, double-click it, and paste the section symbol and color code within the command itself.
With NBTExplorer, you would need to locate the command block first by copy/pasting into the program's Search tool. You would then double-click the Command
value and paste the section symbol at the appropriate location.
Best Answer
The Hexxit mini-map is provided by the Map Writer mod. There are three mini-map modes: hidden (not shown), normal (circle in top right corner), and large (covering most of your screen). The default control for toggling between these modes is the N key.
My guess is you've accidentally pressed N. Press it two more times to get back to the normal mini-map mode.