Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmd create bedwars §o§7Bedwars minigame - By: Link1147
- cmd add bedwars load %pvp%
- cmd add bedwars if varset(%pvp%) then goto 5
- cmd add bedwars let %pvp% = array()
- cmd add bedwars let %pvp% = %pvp% - array()
- cmd add bedwars if size(%pvp%) = 8 then message %p% §cA §3Bedwars §cmatch is already happening try again later!
- cmd add bedwars if size(%pvp%) = 8 then exit
- cmd add bedwars if %p% in %pvp% then message %p% §cYou are already in a §3Bedwars §cmatch!
- cmd add bedwars if %p% in %pvp% then exit
- cmd add bedwars let %pvp% = array(%pvp%, %p%)
- cmd add bedwars save %pvp%
- cmd add bedwars message %p% §aSuccessfully joined a §3Bedwars §amatch!
- cmd add bedwars let %teams% = array(\"RED\", \"BLUE\", \"GREEN\", \"YELLOW\", \"WHITE\", \"LIGHT-BLUE\", \"PURPLE\", \"BLACK\")
- cmd add bedwars let %rnd% = random(0, 1)
- cmd add bedwars let %myteam% = %teams%[%rnd%]
- cmd add bedwars message %p% §aYou have joined the §2%myteam% team.
- cmd add bedwars asop /storeinventory %player1%
- cmd add bedwars asop /storeinventory %player2%
- cmd add bedwars asop /storeinventory %player3%
- cmd add bedwars asop /storeinventory %player4%
- cmd add bedwars asop /storeinventory %player5%
- cmd add bedwars asop /storeinventory %player6%
- cmd add bedwars asop /storeinventory %player7%
- cmd add bedwars asop /storeinventory %player8%
- cmd add bedwars asop /setinventory %player1% 0
- cmd add bedwars asop /setinventory %player2% 0
- cmd add bedwars asop /setinventory %player3% 0
- cmd add bedwars asop /setinventory %player4% 0
- cmd add bedwars asop /setinventory %player5% 0
- cmd add bedwars asop /setinventory %player6% 0
- cmd add bedwars asop /setinventory %player7% 0
- cmd add bedwars asop /setinventory %player8% 0
- cmd add bedwars asop /setarmor %player1% 0 0 0 0
- cmd add bedwars asop /setarmor %player2% 0 0 0 0
- cmd add bedwars asop /setarmor %player3% 0 0 0 0
- cmd add bedwars asop /setarmor %player4% 0 0 0 0
- cmd add bedwars asop /setarmor %player5% 0 0 0 0
- cmd add bedwars asop /setarmor %player6% 0 0 0 0
- cmd add bedwars asop /setarmor %player7% 0 0 0 0
- cmd add bedwars asop /setarmor %player8% 0 0 0 0
- cmd add bedwars /copyblock world 100 100 100 100 100 100
- cmd add bedwars /copyblock world 100 100 100 100 100 100
- cmd add bedwars /copyblock world 100 100 100 100 100 100
- cmd add bedwars /copyblock world 100 100 100 100 100 100
- cmd add bedwars move %player1% world 1000 5 1000
- cmd add bedwars move %player2% world 1000 5 1000
- cmd add bedwars move %player3% world 1000 5 1000
- cmd add bedwars move %player4% world 1000 5 1000
- cmd add bedwars move %player5% world 1000 5 1000
- cmd add bedwars move %player6% world 1000 5 1000
- cmd add bedwars move %player7% world 1000 5 1000
- cmd add bedwars move %player8% world 1000 5 1000
- cmd add bedwars if size(%pvp%) = 8 then goto 55
- cmd add bedwars exit
- cmd add bedwars ascon /cmd run duelwinner
- cmd add bedwars load %pvp%
- cmd add bedwars ascon /freeze %player1%
- cmd add bedwars ascon /freeze %player2%
- cmd add bedwars ascon /freeze %player3%
- cmd add bedwars ascon /freeze %player4%
- cmd add bedwars ascon /freeze %player5%
- cmd add bedwars ascon /freeze %player6%
- cmd add bedwars ascon /freeze %player7%
- cmd add bedwars ascon /freeze %player8%
- cmd add bedwars message %pvp% §aStarting in...
- cmd add bedwars sleep 1
- cmd add bedwars message %pvp% §e3
- cmd add bedwars sleep 1
- cmd add bedwars message %pvp% §62
- cmd add bedwars sleep 1
- cmd add bedwars message %pvp% §c1
- cmd add bedwars sleep 1
- cmd add bedwars message %p% §4Go!!!
- cmd add bedwars ascon /unfreeze %player1%
- cmd add bedwars ascon /unfreeze %player2%
- cmd add bedwars ascon /unfreeze %player3%
- cmd add bedwars ascon /unfreeze %player4%
- cmd add bedwars ascon /unfreeze %player5%
- cmd add bedwars ascon /unfreeze %player6%
- cmd add bedwars ascon /unfreeze %player7%
- cmd add bedwars ascon /unfreeze %player8%
- cmd add bedwars ascon /give %player1% wooden_sword 1
- cmd add bedwars ascon /give %player2% wooden_sword 1
- cmd add bedwars ascon /give %player3% wooden_sword 1
- cmd add bedwars ascon /give %player4% wooden_sword 1
- cmd add bedwars ascon /give %player5% wooden_sword 1
- cmd add bedwars ascon /give %player6% wooden_sword 1
- cmd add bedwars ascon /give %player7% wooden_sword 1
- cmd add bedwars ascon /give %player8% wooden_sword 1
- cmd add bedwars ascon /give %player1% white_wool 200
- cmd add bedwars ascon /give %player2% white_wool 200
- cmd add bedwars ascon /give %player3% white_wool 200
- cmd add bedwars ascon /give %player4% white_wool 200
- cmd add bedwars ascon /give %player5% white_wool 200
- cmd add bedwars ascon /give %player6% white_wool 200
- cmd add bedwars ascon /give %player7% white_wool 200
- cmd add bedwars ascon /give %player8% white_wool 200
- cmd add bedwars ascon /give %player1% leather_helmet 1
- cmd add bedwars ascon /give %player2% leather_helmet 1
- cmd add bedwars ascon /give %player3% leather_helmet 1
- cmd add bedwars ascon /give %player4% leather_helmet 1
- cmd add bedwars ascon /give %player5% leather_helmet 1
- cmd add bedwars ascon /give %player6% leather_helmet 1
- cmd add bedwars ascon /give %player6% leather_helmet 1
- cmd add bedwars ascon /give %player7% leather_helmet 1
- cmd add bedwars ascon /give %player8% leather_helmet 1
- cmd add bedwars ascon /give %player1% leather_chestplate 1
- cmd add bedwars ascon /give %player2% leather_chestplate 1
- cmd add bedwars ascon /give %player3% leather_chestplate 1
- cmd add bedwars ascon /give %player4% leather_chestplate 1
- cmd add bedwars ascon /give %player5% leather_chestplate 1
- cmd add bedwars ascon /give %player6% leather_chestplate 1
- cmd add bedwars ascon /give %player6% leather_chestplate 1
- cmd add bedwars ascon /give %player7% leather_chestplate 1
- cmd add bedwars ascon /give %player8% leather_chestplate 1
- cmd add bedwas ascon /cmd run bwg
- cmd create death
- cmd add death load %pvp%
- cmd add death if %p% in %pvp% then goto 4
- cmd add death exit
- cmd add death load %teams%
- cmd add death if (varset(%teams%[%p%]) = %false%) or (%teams%[%p%] = array(0) - array(0)) or (%teams%[%p%] = \"\") or (%teams%[%p%] = array(\"\")) then exit
- cmd add death if %teams%[%p%] = \"RED\" then let %team% = array(110, 100, 100, 14)
- cmd add death if %teams%[%p%] = \"BLUE\" then let %team% = array(109, 100, 100, 13)
- cmd add death if %teams%[%p%] = \"GREEN\" then let %team% = array(108, 100, 100, 12)
- cmd add death if %teams%[%p%] = \"YELLOW\" then let %team% = array(107, 100, 100, 18)
- cmd add death if %teams%[%p%] = \"WHITE\" then let %team% = array(106, 100, 100, 19)
- cmd add death if %teams%[%p%] = \"LIGHT-BLUE\" then let %team% = array(105, 100, 100, 17)
- cmd add death if %teams%[%p%] = \"PURPLE\" then let %team% = array(101, 100, 100, 16)
- cmd add death if %teams%[%p%] = \"BLACK\") then let %team% = array(102, 100, 100, 9)
- cmd add death let %bed% = blockinfo(\"world\", %team%[0], %team%[1], %team%[2])
- cmd add death if (%bed%[\"id\"] = 355) and (%bed%[\"variant\"] = %teams%[3]) then exit
- cmd add death asop /gamemode 3
- cmd add death message %p% §cGame Over!!
- cmd add death let %pvp% = %pvp% - array(%p%)
- cmd add death save %pvp%
- cmd add death %teams%[%p%] = array(0) - array(0)
- cmd add death save %teams%
- cmd unregister death
- cmd trigger death death
- cmd create bwott
- cmd add bwott let %hand% = playerhand(%p%)
- cmd add bwott let %count% = %hand%["count"]
- cmd add bwott let %id% = %hand%["id"]
- cmd add bwott if %id% notin array(388, 264, 266, 265) then exit
- cmd add bwott if %id% = 388 then %cost% = 10000
- cmd add bwott if %id% = 264 then %cost% = 5000
- cmd add bwott if %id% = 266 then %cost% = 1000
- cmd add bwott if %id% = 265 then %cost% = 500
- cmd add bwott let %cost% = %count% * %cost%
- cmd add bwott asop /givemoney %p% %cost%
- cmd add bwott if %id% = 388 then goto 16
- cmd add bwott if %id% = 264 then goto 18
- cmd add bwott if %id% = 266 then goto 20
- cmd add bwott if %id% = 265 then goto 22
- cmd add bwott exit
- cmd add bwott ascon /cmd run rmitem %p% 388
- cmd add bwott exit
- cmd add bwott ascon /cmd run rmitem %p% 264
- cmd add bwott exit
- cmd add bwott ascon /cmd run rmitem %p% 266
- cmd add bwott exit
- cmd add bwott ascon /cmd run rmitem %p% 265
- cmd add bwott exit
- cmd unregister bwott
- cmd trigger touch bwott
- cmd create bws §o§7Bedwars Shop
- cmd add bws let %money% = playerbalance(%p%)
- cmd add bws %gui2%[\"type\"] = \"form\"
- cmd add bws %gui2%[\"title\"] = \"§c§lBedWars §6Shop\"
- cmd add bws %button0%[\"text\"] = \"§cCancel\"
- cmd add bws %button1%[\"text\"] = \"§fWool\"
- cmd add bws %button2%[\"text\"] = \"§cWood\"
- cmd add bws %button3%[\"text\"] = \"§8Obsidian\"
- cmd add bws %button4%[\"text\"] = \"§bDiamond Sword\"
- cmd add bws %button5%[\"text\"] = \"§9Diamond Pickaxe\"
- cmd add bws %button6%[\"text\"] = \"§7Chainmail Armor\"
- cmd add bws %button7%[\"text\"] = \"§3Diamond Armor\"
- cmd add bws %button8%[\"text\"] = \"§4TNT\"
- cmd add bws %button9%[\"text\"] = \"§5Flint & Steel\"
- cmd add bws %buttons%[] = %button0%
- cmd add bws %buttons%[] = %button1%
- cmd add bws %buttons%[] = %button2%
- cmd add bws %buttons%[] = %button3%
- cmd add bws %buttons%[] = %button4%
- cmd add bws %buttons%[] = %button5%
- cmd add bws %buttons%[] = %button6%
- cmd add bws %buttons%[] = %button7%
- cmd add bws %buttons%[] = %button8%
- cmd add bws %buttons%[] = %button9%
- cmd add bws %gui2%[\"buttons\"] = %buttons%
- cmd add bws %content%[] = %gui2%
- cmd add bws %gui2%[\"content\"] = \"§§\"
- cmd add bws %response% = dialog(%player%, %gui2%)
- cmd add bws if %response% = 0 then exit
- cmd add bws if %response% = 1 then goto 100
- cmd add bws if %response% = 2 then goto 200
- cmd add bws if %response% = 3 then goto 300
- cmd add bws if %response% = 4 then goto 400
- cmd add bws if %response% = 5 then goto 500
- cmd add bws if %response% = 7 then goto 600
- cmd add bws if %response% = 8 then goto 700
- cmd add bws if %response% = 9 then goto 800
- cmd insert bws 100 if %money% > 1000 then goto 103
- cmd add bws message %p% §cInsuciccient balance.
- cmd add bws exit
- cmd add bws §aSucessfully purchased §2Wool§a.
- cmd add bws ascon /give %p% white_wool 200
- cmd insert bws 200 if %money% > 1000 then goto 203
- cmd add bws message %p% §cInsuciccient balance.
- cmd add bws exit
- cmd add bws §aSucessfully purchased §2Wood§a.
- cmd add bws ascon /give %p% wood 64
- cmd insert bws 300 if %money% > 1500 then goto 303
- cmd add bws message %p% §cInsuciccient balance.
- cmd add bws exit
- cmd add bws §aSucessfully purchased §2Obsidian§a.
- cmd add bws ascon /give %p% obsidian 10
- cmd insert bws 400 if %money% > 8000 then goto 403
- cmd add bws message %p% §cInsuciccient balance.
- cmd add bws exit
- cmd add bws §aSucessfully purchased §2Diamond Sword§a.
- cmd add bws ascon /give %p% diamond_sword 1
- cmd insert bws 500 if %money% > 10000 then goto 503
- cmd add bws message %p% §cInsuciccient balance.
- cmd add bws exit
- cmd add bws §aSucessfully purchased §2Diamond Pickaxe§a.
- cmd add bws ascon /give %p% diamond_pickaxe 1
- cmd insert bws 600 if %money% > 6000 then goto 603
- cmd add bws message %p% §cInsuciccient balance.
- cmd add bws exit
- cmd add bws §aSucessfully purchased §2Chainmail Armor§a.
- cmd add bws ascon /give %p% chainmail_leggings 1
- cmd add bws ascon /give %p% chainmail_boots 1
- cmd insert bws 700 if %money% > 18000 then goto 703
- cmd add bws message %p% §cInsuciccient balance.
- cmd add bws exit
- cmd add bws §aSucessfully purchased §2Diamond Armor§a.
- cmd add bws ascon /give %p% diamond_leggings 1
- cmd add bws ascon /give %p% dismond_boots 1
- cmd insert bws 800 if %money% > 20000 then goto 803
- cmd add bws message %p% §cInsuciccient balance.
- cmd add bws exit
- cmd add bws §aSucessfully purchased §2TNT§a.
- cmd add bws ascon /give %p% tnt 4
- cmd insert bws 900 if %money% > 8000 then goto 903
- cmd add bws message %p% §cInsuciccient balance.
- cmd add bws exit
- cmd add bws §aSucessfully purchased §2Flint & Steel§a.
- cmd add bws ascon /give %p% flint_and_steel 1
- cmd unregister bws
- cmd create bwg
- cmd add bwg load %pvp%
- cmd add bwg if (varset(%pvp%) = %false%) or (%pvp% = array(0) - array(0)) or (%pvp% = \"\") or (%pvp% = array(\"\")) then exit
- cmd add bwg if size(%pvp%) < 1 then exit
- cmd add bwg drop 100 100 100 265
- cmd add bwg drop 100 100 100 265
- cmd add bwg drop 100 100 100 265
- cmd add bwg drop 100 100 100 265
- cmd add bwg drop 100 100 100 265
- cmd add bwg drop 100 100 100 265
- cmd add bwg drop 100 100 100 265
- cmd add bwg drop 100 100 100 265
- cmd add bwg sleep 2
- cmd add bwg drop 100 100 100 266
- cmd add bwg drop 100 100 100 266
- cmd add bwg drop 100 100 100 266
- cmd add bwg drop 100 100 100 266
- cmd add bwg drop 100 100 100 266
- cmd add bwg drop 100 100 100 266
- cmd add bwg drop 100 100 100 266
- cmd add bwg drop 100 100 100 266
- cmd add bwg load %bwdiamond%
- cmd add bwg %cooldown% = 58
- cmd add bwg %current% = %time%
- cmd add bwg if varset(%bwdiamond%) = %false% then goto 29
- cmd add bwg %previous% = %bwdiamond%
- cmd add bwg %elapsed% = %current% - %previous%
- cmd add bwg if %elapsed% >= %cooldown% then goto 29
- cmd add bwg goto 1
- cmd add bwg %bwdiamond% = %time%
- cmd add bwg save %bwdiamond%
- cmd add bwg #diamond
- cmd add bwg drop 100 100 100 264
- cmd add bwg drop 100 100 100 264
- cmd add bwg drop 100 100 100 264
- cmd add bwg drop 100 100 100 264
- cmd add bwg load %bwemerald%
- cmd add bwg %cooldown% = 118
- cmd add bwg %current% = %time%
- cmd add bwg if varset(%bwemerald%) = %false% then goto 44
- cmd add bwg %previous% = %bwemerald%
- cmd add bwg %elapsed% = %current% - %previous%
- cmd add bwg if %elapsed% >= %cooldown% then goto 44
- cmd add bwg goto 1
- cmd add bwg %bwemerald% = %time%
- cmd add bwg save %bwemerald%
- cmd add bwg drop 100 100 100 388
- cmd add bwg drop 100 100 100 388
- cmd add bwg drop 100 100 100 388
- cmd add bwg drop 100 100 100 388
- cmd add bwg goto 1
- cmd unregister bwg
- cmd create bww
- cmd add bww load %pvp%
- cmd add bww if size(%pvp%) = 1 then goto 6
- cmd add bww if size(%pvp%) = 0 then exit
- cmd add bww sleep 1
- cmd add bww goto 1
- cmd add bww move %bww% world 5000 5 5000
- cmd add bww message onlineplayers() §6%bww% §ahas won a §3Bedwars §amatch!
- cmd add bww ascon /givemoney %bww% 100000
- cmd add bww let %pvp% = array()
- cmd add bww let %pvp% = %pvp% - array()
- cmd add bww save %pvp%
- cmd add bww exit
- cmd unregister bww
- cmd create rmitem
- cmd edit rmitem 1 # Remove Specific Item v2.1.1 | Nuxeel | MadCommands v2.1.4 build 1027
- cmd edit rmitem 2 # /rmitem <player> <id:meta> <quantity> [tags]
- cmd edit rmitem 3 # -- Add this if only OPs are allowed to run the command --
- cmd edit rmitem 4 %p-name% = %p%
- cmd edit rmitem 5 %console% = array(\"Rcon\",\"CONSOLE\")
- cmd edit rmitem 6 if %p-name% in %console% then goto 20
- cmd edit rmitem 7 %is-op% = playerstatus(%p%)
- cmd edit rmitem 8 if %is-op%[\"op\"] = %true% then goto 20
- cmd edit rmitem 9 message %p% §cYou are not allowed to run this command.
- cmd edit rmitem 10 exit
- cmd edit rmitem 11 # -- End --
- cmd edit rmitem 20 # Validation process starts here.
- cmd edit rmitem 21 if varset(%args%[1]) = %true% then goto 40
- cmd edit rmitem 22 message %p% §aUsage: /rmitem <player> <id:meta> <quantity> [tags]
- cmd edit rmitem 23 exit
- cmd edit rmitem 40 # Check if player is online.
- cmd edit rmitem 41 %player% = %args%[1]
- cmd edit rmitem 42 if %player% in onlineplayers() then goto 60
- cmd edit rmitem 43 message %p% §cPlayer must be online.
- cmd edit rmitem 44 exit
- cmd edit rmitem 60 # Check if item id is valid.
- cmd edit rmitem 61 if varset(%args%[2]) = %false% then goto 22
- cmd edit rmitem 62 %item% = \"\" + %args%[2] + \"\"
- cmd edit rmitem 63 %item% = split(%item%, \":\")
- cmd edit rmitem 64 %item-id% = %item%[0]
- cmd edit rmitem 80 # Check if item variant/meta id is valid.
- cmd edit rmitem 81 if (varset(%item%[1]) = %false%) or (%item%[1] = \"\") then goto 86
- cmd edit rmitem 82 %item-variant% = %item%[1]
- cmd edit rmitem 83 if %item-variant% >= 0 then goto 87
- cmd edit rmitem 84 message %p% §cInvalid meta id.
- cmd edit rmitem 85 exit
- cmd edit rmitem 86 %item-variant% = 0
- cmd edit rmitem 87 if %item-id% > 0 then goto 100
- cmd edit rmitem 88 message %p% §cInvalid item id.
- cmd edit rmitem 89 exit
- cmd edit rmitem 100 # Check whether a quantity is specified.
- cmd edit rmitem 101 %cond% = %false%
- cmd edit rmitem 102 if varset(%args%[3]) = %false% then goto 120
- cmd edit rmitem 103 if %args%[3] = \"\" then goto 120
- cmd edit rmitem 104 %cond% = %true%
- cmd edit rmitem 105 %quantity% = %args%[3]
- cmd edit rmitem 106 if %quantity% > 0 then goto 120
- cmd edit rmitem 107 message %p% §cInvalid quantity.
- cmd edit rmitem 108 exit
- cmd edit rmitem 120 # Check whether tags is specified.
- cmd edit rmitem 121 %tag% = \"\"
- cmd edit rmitem 122 if varset(%args%[4]) = %false% then goto 140
- cmd edit rmitem 123 if %args%[4] = \"\" then goto 140
- cmd edit rmitem 124 %tag% = %args%[4]
- cmd edit rmitem 125 goto 140
- cmd edit rmitem 140 # Check quantity and remove item starts here.
- cmd edit rmitem 141 %inv% = playerinventory(%player%)
- cmd edit rmitem 142 async
- cmd edit rmitem 143 %index% = size(%inv%) - 1
- cmd edit rmitem 144 %get-slot% = %inv%[%index%]
- cmd edit rmitem 145 %check-id% = %get-slot%[\"id\"]
- cmd edit rmitem 146 %check-variant% = %get-slot%[\"variant\"]
- cmd edit rmitem 147 %check-tag% = %get-slot%[\"tags\"]
- cmd edit rmitem 148 if %check-id% != %item-id% then goto 165
- cmd edit rmitem 149 if %check-variant% != %item-variant% then goto 165
- cmd edit rmitem 150 if %check-tag% != %tag% then goto 165
- cmd edit rmitem 151 if %cond% = %false% then goto 163
- cmd edit rmitem 152 %count% = %get-slot%[\"count\"]
- cmd edit rmitem 153 if %quantity% >= %count% then goto 162
- cmd edit rmitem 154 %new-count% = %count% - %quantity%
- cmd edit rmitem 155 if %new-count% = 0 then goto 162
- cmd edit rmitem 156 %new-item%[\"id\"] = %item-id%
- cmd edit rmitem 157 %new-item%[\"variant\"] = %item-variant%
- cmd edit rmitem 158 %new-item%[\"count\"] = %new-count%
- cmd edit rmitem 159 %new-item%[\"tags\"] = %tag%
- cmd edit rmitem 160 %inv%[%index%] = %new-item%
- cmd edit rmitem 161 goto 180
- cmd edit rmitem 162 %quantity% = %quantity% - %count%
- cmd edit rmitem 163 # Condition: ALL
- cmd edit rmitem 164 %inv%[%index%] =
- cmd edit rmitem 165 # Update index
- cmd edit rmitem 166 %index% = %index% - 1
- cmd edit rmitem 167 if %cond% = %false% then goto 169
- cmd edit rmitem 168 if %quantity% <= 0 then goto 180
- cmd edit rmitem 169 if %index% > -1 then goto 144
- cmd edit rmitem 180 # Update player's inventory.
- cmd edit rmitem 181 sync
- cmd edit rmitem 182 carry %player% %inv%
- cmd edit rmitem 183 %check% = substring(%player%, -1, 1)
- cmd edit rmitem 184 if %check% = \"s\" then message %p% §aPlayer §6%player%§a' inventory updated!
- cmd edit rmitem 185 if %check% != \"s\" then message %p% §aPlayer §6%player%§a's inventory updated!
- NOTE: All credits of rmitem go to Nuxeel, he was the original creator.
- SPECIAL THANKS: Thank you so much to xXPro98Xx for his help, without him, this wouldn't be possible. Make sure to drop him a thank you for me if you plan to use this. :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement