I need help with an interdimentinal player data storing system.

Started by firenight on Tue, 03/31/2020 - 10:12

Topic category: Help with modding (Java Edition)

Last seen on 14:30, 17. Aug 2020
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I need help with an interdimentinal player data storing system.
Tue, 03/31/2020 - 10:12

I'm making a mod where the player switches dimensions without the use of a portal and I need a way to store his inventory and location in an entity, to go back, he is teleported to the entity and he gets his inventory back. If the player dies in that dimension, his stuff needs to disappear and the entity storing the data dies and drops the stuff on the ground. How do I do that?

Last seen on 17:20, 6. Apr 2020
Joined Oct 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
for the location it's really…
Tue, 03/31/2020 - 14:14

for the location it's really easy, i am making a mod a bit similar as yours, you have to set a global map number variable then set it  to x (and two other for y and  z) then when the player gets back you have to teleport him to the location stored in your var ! You have to link this procedure to maybe "when player leave dimension" or (that s what i do because i put a timer in my dimension) you provide to your player a custom potion effect and when it stop you TP him

Last seen on 14:30, 17. Aug 2020
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks alot! I didn't know…
Tue, 03/31/2020 - 20:08

Thanks alot! I didn't know we could make global variables. What type of mod are you working on? , I'm also using a timer.