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

Hug/slap command

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.
#1
This was something i made when i was bored hope you enjoy it!

cmd create reaction
cmd add reaction if varset(%args%[2]) then goto 4
cmd add reaction message %p% usage: /reaction <hug:slap> <player>
cmd add reaction exit
cmd add reaction if %p% in onlineplayers() then goto 7
cmd add reaction message %p% %args%[2] isn't online.
cmd add reaction exit
cmd add reaction # options
cmd add reaction if varset(lowercase(%args%[1])) then goto 10
cmd add reaction goto 2
cmd add reaction %option% = lowercase(%args%[1])
cmd add reaction if %option% = \"hug\" then goto 14
cmd add reaction if %args%[1] = \"slap\" then goto 19
cmd add reactiong goto 2
cmd add reaction # hug
cmd add reaction let %nick% = %args%[2]
cmd add reaction message onlineplayers() %p% hugged %nick% awww!
cmd add reaction message %nick% you have been hugged by %p%
cmd add reaction exit
cmd add reaction # slap
cmd add reaction let %nick% = %args%[2]
cmd add reaction message onlineplayers() %p% slapped %nick% ouch!
cmd add reaction message %nick% you have been slapped by %p%
cmd add reaction exit

Credit to @DevastatingMYTH for helping me fix my original code to mark it work 🙂