Jump to content

How Do I Replace The Blocks Like This


GamerDanny09

Recommended Posts

So Im Trying To Make It When You Break A Block You Cant Place A Block Where That Block Was Broken And After 10 Seconds The Block You Broke Comes Back
Also If You Place A Block When You Break It The Block Wont Reappear After 10 Seconds Like The First Thing I Was Talking About
Here's The Code
 

on break:
  cancel drops
  delete drops
  if gamemode of player is survival:
    if world of player is "BR":
      if location of event-block is not {PlacedBlock::*}:
        add location of event-block to {BrokenBlock::*}
        set {_Block} to type of event-block
        wait 10 seconds
        remove location of event-block from {BrokenBlock::*}
        set event-block to {_Block}

on place:
  if gamemode of player is survival:
    if world of player is "BR":
      if y-coordinate of event-block >= 178:
        cancel event
      if location of event-block is {BrokenBlock::*}:
        cancel event
      if y-coordinate of event-block < 178:
        if location of event-block is not {BrokenBlock::*}:
          add location of event-block to {PlacedBlock::*}
          wait 10 seconds
          remove location of event-block from {PlacedBlock::*}
          set event-block to air

Please Help!

 

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...