How can I make a lever disappear after one use?

How can I make a lever disappear after one use? - Content female customer with long curly hair wearing casual outfit sitting at wooden table with netbook in classic interior restaurant while making online order

Me and a friend have a private server where we try all sorts of things. We want to make a one use lever. Can this be done?



Best Answer

Using a command block to break the lever is the simplest solution.

Execute command after lever is pulled:

/setblock <X> <Y> <Z> minecraft:air 0 destroy

The XYZ is the coords of the lever. The "destroy" old block handling makes the command drop the item.




Pictures about "How can I make a lever disappear after one use?"

How can I make a lever disappear after one use? - Crop unrecognizable man cleaning computer system unit
How can I make a lever disappear after one use? - Tattooed man preparing coffee with coffee machine
How can I make a lever disappear after one use? - Crop happy female in apron smiling and using grinder for preparing aromatic coffee in kitchen



How do you make an invisible lever?

For Minecraft Bedrock Edition, you'll need to do the following:
  • Enable cheats in your world or Realm settings.
  • Turn on Creative Mode in your world or Realm settings.
  • Open the chat box and enter \u201c/give [your username] command_block\u201d
  • Place the block where you want it.




  • Button to Make Parts Disappear Tutorial | ROBLOX Studio




    More answers regarding how can I make a lever disappear after one use?

    Answer 2

    If you move the block a lever is attached to the lever will break.

    Using this you can set up the block the lever is attached to to be movable by a piston. This piston is connected to the lever, so it moves the block once you switch the lever on, therefore breaking the lever.

    For example like in the following picture. The lever of course can be on any side of the block it is attached to. A lot more complicated it would be if you want things to be flush with the wall, though...

    (In the following picture the piston needs to be a sticky piston.) enter image description here

    Answer 3

    yes it can be done.

    At the lever output wire, run a command block there that says:

    /setblock (x of lever) (y of lever) (z of lever) minecraft:air 0 replace

    Now split the output for where-ever you want it to do (Diagram Below):

    A picture representation of the one time lever

    Hope this helps :D

    Answer 4

    If you do not want to use command blocks, try a useless machine - something like this - something as simple as this will break the lever once it is pulled.The simplest useless machine in Minecraft.

    You can extend the time it takes for the lever to activate and it to break by doing this (which is extendable):A delayed useless machine.

    Answer 5

    setblock -141 23 -12 minecraft:air replace

    this worked for me in 1.17.1 :D

    EXTRA TINY DETAIL THAT IF YOU DIDNT KNOW WOULD MAKE THIS EXTREMELY CONFUSING!!!

    You cannot put a decimal, it has to be a solid number

    so for example if your cords are actually -140.549 23 -11.300, you would put 140 23 11 instead of adding the decimal if you havent been through 5th grade math :)

    ANOTHER TINY DETAIL!!!

    i personally had to adjust my coords so if it doesnt work the first time try adjusting your coord numbers

    ANOTHER ANOTHER TINY DETAIL!!!

    the redstone that the lever acts on doesnt open fully because of how fast this command works, so sadly you wont be able to get that experience (if that was the purpose of your redstone)

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

    Images: Yan Krukov, Anete Lusina, Tim Douglas, Tim Douglas