How to make a lever invulnerable/unbreakable in minecraft?

How to make a lever invulnerable/unbreakable in minecraft? - Content female customer with long curly hair wearing casual outfit sitting at wooden table with netbook in classic interior restaurant while making online order

I wanna know how can I make a lever invulnerable so that lava can't burn it and a player can't remove it.

I tried the following but it didn't work :

/scoreboard players tag @e[item=lever,r=10] add iMarker
/entitydata @e[tag=iMarker] {Invulnerable:1}

This processes something and no errors are shown but still the lever is burned by lava.



Best Answer

Another way to make an invunruble lever, is to get the coordinates of the lever and enter this command:

/setblock x y z minecraft:lever

on a repeat Command block.

That would work best when you have a map where you want to have them break stuff other then the lever. Hope this helped!




Pictures about "How to make a lever invulnerable/unbreakable in minecraft?"

How to make a lever invulnerable/unbreakable in minecraft? - Unrecognizable crop African American female pouring essential oil in glass bottle while making liquid incense at table
How to make a lever invulnerable/unbreakable in minecraft? - Concentrated redhead female wearing light apron kneading clay in baking pan while creating in modern apartment
How to make a lever invulnerable/unbreakable in minecraft? - Creative female artisan drawing in workshop



How do you make an unbreakable block in Minecraft?

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.

How do you make a block unbreakable in vanilla Minecraft?

To activate or deactivate a lever, use the "Use Item/Place Block" control (right-click, by default). A lever can be turned on and off as fast as it can be clicked. Mobs cannot turn a lever on or off.



Minecraft | Self-Repairing Wall | Redstone Tutorial




More answers regarding how to make a lever invulnerable/unbreakable in minecraft?

Answer 2

The best thing to do would be to /setblock x y z lever [name=Unbreakable] on a repeating command block and on another repeating command block /clear @a lever [name=Unbreakable](the name is so that you can clear it but not have to worry about clearing other levers.

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Yan Krukov, Anna Shvets, Monstera, Andrea Piacquadio