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

Give player item when entering area then removing item when leaving area

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
Cmd create move
Cmd add move %player% = %args%[2]
Cmd add move if %args%[3] = \”from\” then goto 10
Cmd add move if %args%[3] = \”to\” then goto 5
Cmd add move exit
Cmd add move let %inv% = playerinventory(%player%) + playerarmor(%player%)
Cmd add move save %inv% %player%
Cmd add move sleep 1
Cmd add move ascon /give %player% <id> <count>
Cmd add move exit
Cmd add move load %inv% %player%
Cmd add move carry %player% %inv%
Cmd add move exit
Cmd trigger move to <area name>
Cmd trigger move from <area name>
Cmd unregister move
Note: This won’t save the items the players broke in the area. This command only saves their default inventory before they entered the specific area. Enjoy!