Adventure Backport

This is a small mod for Minecraft 1.7.10 that simulates the Adventure mode from Minecraft 1.8.

Before version 2.0 it had to be used in Survival mode due to limitations in Forge. Version 2.0-alpha is almost an entire rewrite and it now uses a coremod to overcome this limitation. There are still some limitations (such as client-only ghost blocks) but it should generally be functional.

 

A quick summary of 1.8's Adventure Mode:

  • You cannot break any block without a tool that has an appropriate CanDestroy tag. The block that you want to destroy has to be included in the CanDestroy tag.
    For example, the following command will give you a pickaxe that can only break dirt and cobblestone:
    "/give @p stone_pickaxe 1 0 {CanDestroy:[dirt, cobblestone]}"
  • You cannot place any block without an appropriate CanPlaceOn tag. The block that you want to place your block against has to be included in the CanPlaceOn tag.
    For example, the following command will give you a piece of stone that can only be placed on wood or planks:
    "/give @p stone 1 0 {CanPlaceOn:[log, planks]}"

You can use the config to enable or disable the CanDestroy and CanPlaceOn features individually.

Additionally, there is a config option for expanding the scope of CanPlaceOn to also restrict which blocks the player may interact with (e.g. requiring a key to open a chest).

There are also options for specifying blocks that can always be placed or destroyed.

 

Note regarding Vanilla Minecraft's /give command: It doesn't work properly if you have colons in NBT data, so it won't work when you try to use names of mod items there. One workaround is prefixing the name with a colon.

Example: "/give @p stick 1 0 {CanDestroy:[botania:flower]}" will not work.

Instead use "/give @p stick 1 0 {CanDestroy:[:botania:flower]}".

(In Minecraft 1.8 this has been fixed)


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    228312
  • Created
    Mar 3, 2015
  • Last Released File
    Sep 20, 2015
  • Total Downloads
    2,021
  • License

Categories

Members