Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. command /resetmap:
  2. permission: op
  3. trigger:
  4. clear {aqua.chest::*}'s inventory
  5. clear {aqua.hopper::*}'s inventory
  6. add 1 to {bedwars.count}
  7. loop {bedwars.count} times:
  8. set block at {bedwars.blocklocation.%{_count}%} to air
  9. clear {bedwars.blocklocation.%{_count}%}
  10. add 1 to {_count}
  11. wait 1 tick
  12. loop all dropped items:
  13. delete loop-value
  14. wait 1 tick
  15.  
  16. on break:
  17. if {ingame} is set:
  18. if event-block is wool or end stone or cobweb or white stained glass block or red stained glass block or cyan stained glass block or blue stained glass block or orange stained glass block or green stained glass block or pink stained glass block or yellow stained glass block or obsidian:
  19. if event-block is white stained glass block or red stained glass block or cyan stained glass block or blue stained glass block or orange stained glass block or green stained glass block or pink stained glass block or yellow stained glass block:
  20. if tool of player is wooden pickaxe or stone pickaxe or iron pickaxe or diamond pickaxe or diamond axe:
  21. stop
  22. else:
  23. send "&c&lSpace Wars &8➥ &7You must be holding a &eTool&7."
  24. cancel event
  25. stop
  26. else:
  27. add 1 to {bedwars.count}
  28. set {bedwars.blocklocation.%{bedwars.count}%} to location of event-block
  29. stop
  30. else:
  31. cancel event
  32. send "&c&lSpace Wars &8➥ &7You can only break blocks placed by you or another player."
  33. stop
  34. else:
  35. cancel event
  36.  
  37.  
  38. on place:
  39. if {ingame} is set:
  40. if event-block is wool or end stone or water or stained glass block or tnt or cobweb or obsidian or iron block or diamond block or emerald block or prismarine block or chest:
  41. if event-block is tnt or chest:
  42. stop
  43. else:
  44. add 1 to {bedwars.count}
  45. set {bedwars.blocklocation.%{bedwars.count}%} to location of event-block
  46. if event-block is not water:
  47. add location of event-block to {placedblocks::*}
  48. stop
  49. else:
  50. cancel event
  51. send "&cYou are not allowed to place this block."
  52. stop
  53. else:
  54. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement