Java Edition:Barrier (Item)
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
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
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
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
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:
- 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. - 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 thebuff_fishing
vote to greatly increase fishing speed). What this means is that there is a chance that barriers can be randomly fished. - 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. - 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. - 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. - 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. - 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. - The
basalt_gen_replace
,cobblestone_gen_replace
,obsidian_gen_replace
, andstone_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
- Barrier (Block)
- Bedrock (Item)
- End Portal (Item)
- End Portal Frame (Item)
- Fire (Item)
- Invalid Data Value Barrier (Item)
- Portal (Item)
- Spawner (Item)
- Unbreakable Block Removal Methods
References
- ↑ MinecraftEdu Wiki Archive
- ↑ 1/902 * 1/1105 ≈ 0.0001%