Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /resetmap:
- permission: op
- trigger:
- clear {aqua.chest::*}'s inventory
- clear {aqua.hopper::*}'s inventory
- add 1 to {bedwars.count}
- loop {bedwars.count} times:
- set block at {bedwars.blocklocation.%{_count}%} to air
- clear {bedwars.blocklocation.%{_count}%}
- add 1 to {_count}
- wait 1 tick
- loop all dropped items:
- delete loop-value
- wait 1 tick
- on break:
- if {ingame} is set:
- 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:
- 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:
- if tool of player is wooden pickaxe or stone pickaxe or iron pickaxe or diamond pickaxe or diamond axe:
- stop
- else:
- send "&c&lSpace Wars &8➥ &7You must be holding a &eTool&7."
- cancel event
- stop
- else:
- add 1 to {bedwars.count}
- set {bedwars.blocklocation.%{bedwars.count}%} to location of event-block
- stop
- else:
- cancel event
- send "&c&lSpace Wars &8➥ &7You can only break blocks placed by you or another player."
- stop
- else:
- cancel event
- on place:
- if {ingame} is set:
- 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:
- if event-block is tnt or chest:
- stop
- else:
- add 1 to {bedwars.count}
- set {bedwars.blocklocation.%{bedwars.count}%} to location of event-block
- if event-block is not water:
- add location of event-block to {placedblocks::*}
- stop
- else:
- cancel event
- send "&cYou are not allowed to place this block."
- stop
- else:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement