• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

Simple Do To All Commands

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.

Null45

Coal Miner
#1
cmd create tpall Force everyone to Teleport to you | /tpall
cmd add tpall %online% = onlineplayers()
cmd add tpall %c% = 0
cmd add tpall %pl% = %online%[%c%]
cmd add tpall asop /tp %pl% %p%
cmd add tpall if %c% = size(%online%) then exit
cmd add tpall let %c% = %c% + 1
cmd add tpall goto 3

cmd create killall Kills everyone on the server | /killall
cmd add killall %online% = onlineplayers()
cmd add killall %c% = 0
cmd add killall %pl% = %online%[%c%]
cmd add killall treat %pl% 0
cmd add killall if %c% = size(%online%) then exit
cmd add killall let %c% = %c% + 1
cmd add tpall goto 3

[SPOILER="Give All"
Moderators Note: The below command is broken. If you scroll down or click here, you can see a updated version that works.

]cmd create giveall Gives everyone a specific item | /giveall <item>
cmd add giveall let %item% = array(%args%[1])
cmd add giveall let %online% = onlineplayers()
cmd add giveall let %c% = 0
cmd add giveall let %pl% = %online%[%c%]
cmd add giveall let %inv% = playerinventory(%pl%) + %item%
cmd add giveall carry %pl% %inv%
cmd add giveall if %c% = size(%online%) then exit
cmd add giveall let %c% = %c% + 1
cmd add giveall goto 4[/SPOILER]


I hope you use it!

Any errors or problems?feel free to post here!
 
Last edited by a moderator:
#4
hey null do you remember me from blox jump im in a hole new server now and i need your help soon becuase im making a gamemode name beacon wars if you can help me code in there that will be greatly appreciated our server
ip: blazehubpe.pocket.pe
port: 50506

hey null do you remember me from blox jump im in a hole new server now and i need your help soon becuase im making a gamemode name beacon wars if you can help me code in there that will be greatly appreciated our server
ip: blazehubpe.pocket.pe
port: 50506
will you help
 

NoYoursNo

Tree Puncher
#6
cmd create tpall Force everyone to Teleport to you | /tpall
cmd add tpall %online% = onlineplayers()
cmd add tpall %c% = 0
cmd add tpall %pl% = %online%[%c%]
cmd add tpall asop /tp %pl% %p%
cmd add tpall if %c% = size(%online%) then exit
cmd add tpall let %c% = %c% + 1
cmd add tpall goto 3

cmd create killall Kills everyone on the server | /killall
cmd add killall %online% = onlineplayers()
cmd add killall %c% = 0
cmd add killall %pl% = %online%[%c%]
cmd add killall treat %pl% 0
cmd add killall if %c% = size(%online%) then exit
cmd add killall let %c% = %c% + 1
cmd add tpall goto 3

cmd create giveall Gives everyone a specific item | /giveall <item>
cmd add giveall let %item% = %args%[1]
cmd add giveall let %online% = onlineplayers()
cmd add giveall let %c% = 0
cmd add giveall let %pl% = %online%[%c%]
cmd add giveall let %inv% = playerinventory(%pl%) + %item%
cmd add giveall carry %pl% %inv%
cmd add giveall if %c% = size(%online%) then exit
cmd add giveall let %c% = %c% + 1
cmd add giveall goto 4


I hope you use it!

Any errors or problems?feel free to post here!
give all actually clears inventories
 

thedeibo

Department Head
Staff Member
Department Head
Community Team
#7
give all actually clears inventories
My fix for that:
Code:
cmd create giveall Gives everyone a specific item | /giveall <item>
/cmd add giveall onerror goto 11
/cmd add giveall let %item% = array(%args%[1])
/cmd add giveall let %online% = onlineplayers()
/cmd add giveall let %c% = 0
/cmd add giveall let %pl% = %online%[%c%]
/cmd add giveall let %inv% = playerinventory(%pl%) + %item%
/cmd add giveall carry %pl% %inv%
/cmd add giveall if %c% = size(%online%) then exit
/cmd add giveall let %c% = %c% + 1
/cmd add giveall goto 4
/cmd add giveall exit