Advertisement
Guest User

Untitled

a guest
Oct 21st, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. #adds the placed block from the player to a list variable.
  2. on block place:
  3. if {game} is true:
  4. add event-block to {blocksgone::*}
  5.  
  6. #it should: prevent the player from breaking a block that he or another player did not place. but it does: it just doesn't let the #player break any block
  7. on block break:
  8. if {game} is true:
  9. if event-block is not {blocksgone::*}:
  10. cancel event
  11. else if event-block is {blocksgone::*}:
  12. remove event-block from {blocksgone::*}
  13.  
  14.  
  15. #delete the blocks placed by the player
  16. command /deleteblockas:
  17. trigger:
  18. set all blocks at {blocksgone::*} to air
  19. wait 5 ticks
  20. clear {blocksgone::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement