Remove Placed block after x seconds.

Discussion in 'Skript' started by MegaMaid, Jun 2, 2018.

  1. Hello everyone, i'm currently developing a Free For All, and it's alla done. I just miss a thing: when player places a block, remove it from the map after 2 seconds.
    Can someone place me the code down below? Ty.
     
  2. What do you mean by this? I asked for a skript code by someone.
     
  3. Two

    Two

    Code (Text):
    on place:
      set {_b} to block at event-location
      wait 2 seconds
      set block at event-location to {_b}
    I didn't have time to test this but should work.
     
  4. He wants the block to be removed 2 seconds after it is placed, not replaced.
    So I think this should work:
    Code (Text):
    on place:
        wait 2 seconds
        set block at event-location to air
     
    • Creative Creative x 1
  5. Two

    Two

    The end result is the same anyways.
     
  6. No because yours sets the block to the previous block which was there, whereas mine sets it to air. It just depends on what he wants