Java Edition.png

Java Edition:Barrier (Item)

From Minecraft Discontinued Features Wiki
Jump to navigation Jump to search
Barrier.png

For the barrier in a block form, see Barrier (Block).

The barrier item allows the player to place barrier blocks anywhere in the world, and is not normally obtainable in survival. The barrier item was first possible in MinecraftEdu during the 1.7.10 builds 20 to 22, after upgrading to 14w05a (1.8 snapshot) or later. Asynchronous exploits allow for the barrier item to be obtained in release versions, and it is also obtainable in 2 April Fool's versions.

Obtaining

ComputerCraft Items

Edu2.jpg
Warning: MinecraftEdu 
This feature requires MinecraftEdu. Play at your own risk.

The disk drive in ComputerCraft had the numeric ID of 166, which later became the numeric ID for barriers. ComputerCraft was bundled to MinecraftEdu in 1.7.10 Build 20[1] and remained up until the last version 1.8.9 Build 3. However, in 1.8.9 Build 1 and later the barrier is stored using the alphanumeric ID instead of the numeric ID, meaning the 166 ID disk drive is only obtainable from MinecraftEdu 1.7.10 Build 20 to 1.7.10 Build 22. If this item is updated to a version after the barrier was added, 14w05a (1.8 snapshot) or later, it will convert. Loading it before 14w05a will cause it to disappear, so this must be prevented by keeping it in unloaded chunks. Obtaining the disk drive in the MinecraftEdu versions involves simply crafting it.

The printer, monitor, advanced monitor, and wireless modem all have the ID 166 as well, but with data values other than zero, resulting in invalid data value barriers. Their data values are 1, 2, 3, and 4, respectively. These invalid data value items can also be used to place barrier blocks. If obtained, they can be used to obtain the regular barrier item later, because their data value will be removed after the flattening in 17w47a (1.13 snapshot).

Word Tearing and Any Falling Block via Asynchronous Threads

From 14w32a (1.8 snapshot) to 17w46a (1.13 snapshot), asynchronous block updates allow for block palette corruption, and this corruption, when combined with the registry palette type, can allow for the creation of any block that can exist, such as barriers. Asynchronous block updates also allow for usage of the "generic method" to create a falling block entity of any existing block in your world.

These falling blocks may also be used to obtain their respective item, if it exists in item form, such as end portal frames. Blocks such as end gateways cannot be obtained as items with this method, as they have no corresponding item. Falling blocks also allow for the placement of both blocks that cannot normally be placed, either due to operator restrictions (e.g. command blocks) or not having an item form (e.g. end gateways).


22w13oneBlockAtATime Endermen Spawning

Pink Wither.png
Warning: April Fools' 
This feature requires April Fools' versions which may require file renaming or file deletion to load. See the Loading April Fools' Versions tutorial for more information.

Endermen in the April Fools' version 22w13oneBlockAtATime spawn carrying random blocks. One of these blocks they can spawn with is barrier. There are 902 different blocks that are equally likely for them to spawn with and so there is a 1/902 = 0.11% chance of the enderman spawning with this block specifically. If the enderman spawns holding a generic_item_block (1/902) there's also a 1/1105 chance it will be this block as its block state, but there's only a 0.0001% chance of this occurring.[2]

In the version, the block can be received from the enderman by angering it then letting it attack the player with an open hand. This will cause the block to transfer into the player's hand. Also, if the enderman dies and the falling block launches from the enderman, this can be picked up by the player. The items can be stored in 22w13oneBlockAtATime by switching the block from carrying to the offhand, shift right-clicking onto a donkey/mule with a chest, and then swapping the item into a slot. Additionally, the enderman carrying the block can be updated and then killed in a later version to obtain the item.

22w13oneBlockAtATime Any Falling Block

Pink Wither.png
Warning: April Fools' 
This feature requires April Fools' versions which may require file renaming or file deletion to load. See the Loading April Fools' Versions tutorial for more information.

Any block can be made a falling block in 22w13oneBlockAtATime using several methods. The barrier item, if it exists, can be obtained by dropping its falling block onto certain blocks or by picking it up. The Barrier (Block) must have been obtained prior in order to execute this method.

23w13a_or_b Votes

Pink Wither.png
Warning: April Fools' 
This feature requires April Fools' versions which may require file renaming or file deletion to load. See the Loading April Fools' Versions tutorial for more information.

The April Fool's snapshot 23w13a_or_b introduces a plethora of ways to obtain every block and item in the game, including barriers. These include:

  1. The egg_free vote, when applied, will allow chickens to lay any block or item in the game (without NBT). This means all chickens have the chance of laying barriers.
  2. The fish_anything vote, when applied, will allow any item from the creative menu (not the operator tab, with NBT) to be fished (combine with the buff_fishing vote to greatly increase fishing speed). What this means is that there is a chance that barriers can be randomly fished.
  3. The give_item vote, when applied, will give every online player a random amount of any block or item in the game (without NBT), meaning that you could have barriers randomly given to you.
  4. The replace_items vote, when applied, will replace all items in online players' inventories with any block or item in the game (NBT of the original replaced item is preserved). This allows for barriers with Any NBT.
  5. The replace_loot_drop vote, when applied, will replace all loot drops of a random block or item with any block or item in the game (if the original item that is being dropped has NBT, it will be preserved). This is also another method for barriers with Any NBT.
  6. The replace_recipe_output vote, when applied, will replace all recipes for the given item with any block or item in the game (NBT is preserved if the original output item is supposed to have NBT.) This is yet another method for barriers with Any NBT.
  7. The villager_gem vote, when applied, will replace all emeralds in all loaded villager's trades with any block or item in the game (without NBT). This means that you can get a villager that trades barriers, allowing for infinite amounts of barriers.
  8. The basalt_gen_replace, cobblestone_gen_replace, obsidian_gen_replace, and stone_gen_replace votes, when applied, replace the block of their respective fluid interaction with any block in the game, allowing for blocks in invalid positions and the placement of operator-only blocks such as the Command Block.

See also

References

  1. MinecraftEdu Wiki Archive
  2. 1/902 * 1/1105 ≈ 0.0001%