Here is the example:. The following commands mean the same thing:. In earlier versions, specifying a block also included its other data values. However, Java Edition 1. This will allow the player to destroy the current 6 types of logs , wood , stripped logs , stripped wood , and leaves.
It repeats the blocks twice because dark oak and acacia logs and leaves have a different block name than oak, spruce, birch, and jungle logs and leaves.
There is a crazy way of doing this: Replace every block you want to be "invincible" by a barrier block, and summon invisible ArmorStand's at their position with the designated block on their head. This works great, if you want to have only a few blocks, to be indestructable, but is completely overkill, if you want to create a whole wall. But if you want, for example, 1 cobblestone block, to be unbreakable, but all other cobblestone blocks to be breakable, this is the best you can do and the only thing, I think.
Mining Fatigue or corrupt Haste can do this for you. In an area you want to protect, you can simply apply the effect there but remove it everywhere else. Here is the command to place in a repeating command block requiring no redstone to apply protection to the whole world:. Simply set up a repeating command block requiring no redstone that replaces the block every time it is destroyed.
Make sure you replace the coordinates x , y , and z with the coordinates of the block, and block with the block ID such as minecraft:stone. How to make it so you can only break tree logs and leaves in adventure mode: Copy one command at a time and run each command in your map. You can use the summon command to place a floating falling block inside a barrier.
This has some drawbacks, mainly that falling blocks are entities and that they drop after a while. Sign up to join this community. When the block is broken, it will be instantly replaced with a block of the same type: You could constantly place and destroy the block so they cant destroy it:. There are over different types of blocks in Minecraft, including environmental features like air and water, which cannot be obtained, various types of wood, various colors of wool, various, slabs, stairs, utility blocks, and the list goes on.
New blocks are typically added to one or more versions of Minecraft every few months. Open your inventory, select the crate tab on the left side of the screen, and choose the command block icon. Place the command block on the ground. Tap the ground to do so. You can also press left trigger or right-click to place the command block. A command block is an in-game item that will execute certain commands. Don't have an account? Sign up for free! Unbreakable Blocks? I was holding down the left-click for a good 5 minuets and there was no indication of it starting to break!
User Info: afroblademaster. Accepted Answer. The stone you are trying to mine is called Bedrock or Adminuim. The following commands mean the same thing:. In earlier versions, specifying a block also included its other data values.
However, Java Edition 1.
0コメント