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
Method 1: place signs or simmilar blocks around the lever. For the lever not to be destroyed by Players give then Adventure mode (
/gamemode @a a
)Method 2: Use this all-version-usable Command block & Redstone syntax:
Where the lever is at positive X from the Redstone. The right Command block has this command:
And the left one has this:
Instead of N use the lever rotation value. List of possible rotations:
The lever can get destroyed, but immediatley replaced
I think you can remove the Repeater :-)
You can have the command blocks really far away, it works the samr, just the coordinates will be different.
You can update this to use the 1.9 Command block stuff
It's easy-to-build! Go do it yourself!