How can I emulate 1.7.10's adventure mode in 1.8?
Up until Minecraft 1.7.10 I enjoyed playing in adventure mode, which restricts one to use the right tools to destroy or harvest blocks (to have a more realistic experience).
In this version (and before that), it was still possible to place blocks without much restrictions. But now in 1.8, sadly, I discovered that this behaviour was changed, and my favourite gamemode was "gone": I'm unable to place any blocks and cannot break any blocks even when using the proper tool (axe for trees etc.).
How can I emulate 1.7.10's adventure mode while playing the new version (1.8)? Can I define rules for every tool with the command block somehow?
I would prefer a solution without modding the game, staying with pure vanilla MC if possible.
Best Answer
Create an entitydata command that will edit your inventory. The only thing it will change is add this tag to all items in the inventory: CanPlaceOn:["minecraft:stone","minecraft:grass_block","minecraft:dirt"... putting all block IDs on. Then create an array of command blocks facing upwards. The bottom layer will be repeating command blocks with: clear @p TOOLNAME 0 1 The top layer will be chain conditional command blocks with command: give @p TOOLNAME 1 1 {CanDestroy:[in this box you put all blocks you want the tool to break]}
This will take a while. But once you are done upload map to the internet and enjoy adventure-loving people wanting to play on it!
Pictures about "How can I emulate 1.7.10's adventure mode in 1.8?"



How do you change game modes in adventure mode?
How to Enter the CommandWhat is the command for adventure mode?
A player can switch to Adventure mode from any other game mode by using the commands /gamemode adventure , /gamemode a , or /gamemode 2 .What number Gamemode is adventure mode?
We've separated specific versions for your convenience below: Java Edition (PC/Mac) 1.13, 1.14, 1.5 \u2013 /gamemode adventure. Java Edition (PC/Mac) 1.8, 1.9, 1.10, 1.11, 1.12 \u2013 /gamemode a | /gamemode adventure | /gamemode 2.How do you select adventure mode?
To begin a game in Adventure Mode, open \u201cGAME SETTINGS\u201d from the main menu and select \u201cADVENTURE\u201d, then \u201cSTART GAME\u201d. Once you're in an Adventure Mode game, you can use the \u201cM\u201d key (PC) or down on the D-Pad (Consoles) to bring up the world map and select which act and waypoint you'd like to explore.The Best Gameboy Advance GBA Emulator on PC: mGBA (install guide: setup / config / tutorial)
More answers regarding how can I emulate 1.7.10's adventure mode in 1.8?
Answer 2
Add the CanBreak or CanPlaceOn tag to items.
Example:
/give @p minecraft:stone 1 0 {CanPlaceOn:["minecraft:dirt"]} This would give the closest player a stone block that you can place on dirt.
/give @p minecraft:stone_sword 1 0 {CanDestroy:["minecraft:web"]} And this would give a stone sword that can destroy webs.
Answer 3
You could solve half the problem by switching between survival and adventure mode based on the item you are holding. However, you would still need CanBreak tags on all your tools. (Also you could break blocks when holding another block or nothing)
This is only a partwise solution, as this allows you to place blocks only when you are not holding a tool.
Answer 4
There are 2 ways to do this, both take HOURS of prep time.
1) go on survival mode, not adventure do a command block on a clock saying
/effect @p minecraft:mining_fatigue 10 100 true
place a string of command blocks with this command:
/clear @p wooden_axeBLOCKID0
with a comparator, immediately followed by a repeater
for every tool and BLOCK ID (damage) for tool.
then make it so that if ANY of the repeaters are on do /effect @a clear
2) You could create a scoreboard objective for crafting every tool, eg:
/scoreboard objectives craftWoodenAxe stat.craftItem.minecraft.stone_axe
create a redstone-block-clock facing +X, and with command blocks from lowest to highest X value do this:
/clear @a[score_craftWoodenAxe_min=1] wooden_axe 0
/give @a [score_craftWoodenAxe_min=1] wooden_axe 1 {CanBreak:["PUT A BLOCK","PUT A BLOCK","etc"]}
/scoreboard players remove @p[score_craftWoodenAxe_min=1] craftWoodenAxe 1
for every tool...
You would probaly be better off waiting to see if mojang adds this later.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Andrea Piacquadio, Joshua Welch, Josh Willink, The Lazy Artist Gallery
