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

Create kits with maddcommand (im a noob so its a sample)

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
# CREATE KITS BY OWNER
# command will run like this
/kits startkit
# that will run the %args% [1] that is startkit
You will need to add more if %args%[1] to make more kits

# now to make the kits you will need to wear the armore and add the tools on your inventory for your 1st kit

Simple but complicated command

# I'm a noob with maddcommand someone alse might do it on a better way

/cmd create kits
/cmd add kits let %player% = lowercase(%p%)
/cmd add kits let %items% = playerinventory(%player%)
/cmd add kits let %armor% = playerarmor(%player%)
/cmd add kits if %args%[1] = \"startkit\" then goto 10
/cmd add kits exit
/cmd insert kits 10 let %startkit% = %items%
/cmd add kits let %startarmor% = %armor%
/cmd add kits save %startkit%
/cmd add kits save %startarmor%


# kits for players

# then player can run this command like this /kit startkit. But of course you I'll need to add permission or variables to player if they have unlocked the kit
But that's another story


/cmd create kit
/cmd add kit load %startkit%
/cmd add kit load %startarmor%
/cmd add kit if %args%[1] = \"startkit\" then goto 30
/cmd add kit exit
/cmd insert kit 30 wear %p% %startarmor%
/cmd add kit carry %p% %startkit%



# Any questions or comments let me know
I'm a noob bdw so I'm also a bad writing on English