How do I save a player's entire inventory?

Started by akisephila on

Topic category: Help with MCreator software

Active 1 week ago
Joined Apr 2021
Points:
644

User statistics:

  • Modifications: 0
  • Forum topics: 18
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 68
How do I save a player's entire inventory?

I want to be able to save a player's entire inventory, clear their inventory when they enter my custom dimension, and then give them back their saved inventory when they leave. How would I go about doing this, and would it work in multiplayer?

You could store each slot in…
Mon, 04/12/2021 - 17:41

You could store each slot in own variable, but it is not really optimal

Active 1 week ago
Joined Apr 2021
Points:
644

User statistics:

  • Modifications: 0
  • Forum topics: 18
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 68
Do you know of any better…
Tue, 04/13/2021 - 00:16

Do you know of any better way? And would this method work in multiplayer, if the variables were player_persistent?

It would work on the server…
Tue, 04/13/2021 - 08:23

It would work on the server too.

A better way right now would be coding this system manually.

Active 1 week ago
Joined Apr 2021
Points:
644

User statistics:

  • Modifications: 0
  • Forum topics: 18
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 68
Alright, thanks for the help
Tue, 04/13/2021 - 09:06

Alright, thanks for the help

Active 2 years ago
Joined Oct 2021
Points:
450

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
I want to make weapon that…
Fri, 03/04/2022 - 19:58

I want to make weapon that when it hits something it clears your inventory and when you die you get your inventory back i think that type of storing will work for me but i dont know how to do that please tell me the code but make it understandable because when it comes to this its hard for me to understand