Each item in Minecraft has a unique ID assigned to it, known as an item ID, this can be used in commands to spawn the item into the game. The item ID for barrier in Minecraft is shown below:
Barrier Numerical >
Items from earlier versions of Minecraft were assigned a numerical ID — a unique number to represent it.
The numerical ID for Barrier is:
Barrier Spawn Command
The Barrier item can be spawned in Minecraft with the below command. Cheats must be enabled before this will work.
The Minecraft barrier block, otherwise known as invisible bedrock, is an unbreakable invisible block added in Minecraft 1.8. It can only be broken by players in the creative gamemode and is very useful for adventure maps and builders as it prevents players from jumping past it.