• 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.

Custom death messages randomized

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.

Viny1212

Tree Puncher
#1
Please make sure to set the permission -pocketmine.broadcast.user to every group... This will also take away join and leave messages. Hope you enjoy my first post!
/cmd create death custom death messages
/cmd edit death 1 %player% = %args%[1]
/cmd edit death 2 %killer% = %args%[2]
/cmd edit death 3 if %player% = %killer% then goto 20
/cmd edit death 4 let %array% = array(\”chat1\”, \”chat2\”)
/cmd edit death 5 let %size% = size(%array%) - 1
/cmd edit death 6 let %rnd% = random(0, %size%)
/cmd edit death 7 let %rndchat% = %array%[%rnd%]
/cmd edit death 8 if %rndchat% = \”chat1\” then goto 11
/cmd edit death 9 if %rndchat% = \”chat2\” then goto 13
/cmd edit death 11 message onlineplayers() §c%player% was killed by %killer%!
/cmd edit death 12 exit
/cmd edit death 13 message onlineplayers() §c%player% got slayed by %killer%!
/cmd edit death 14 exit
/cmd edit death 20 let %array2% = array(\”chat3\”, \”chat4\”)
/cmd edit death 21 let %size2% = size(%array2%) - 1
/cmd edit death 22 let %rnd2% = random(0, %size2%)
/cmd edit death 23 let %rndchat2% = %array2%[%rnd2%]
/cmd edit death 24 if %rndchat2% = \”chat3\” then goto 27
/cmd edit death 25 if %rndchat2% = \”chat4\” then goto 29
/cmd edit death 27 message onlineplayers() §c%player% has died.
/cmd edit death 28 exit
/cmd edit death 29 message onlineplayers() §c%player% killed themselves.
/cmd edit death 30 exit
/cmd unregister death
/cmd trigger death death
Please let me know if there’s any issues... Thanks!