Temporary custody of all items in inventory.

Started by Nekoyama on Thu, 05/26/2022 - 14:19

Topic category: Help with MCreator software

Last seen on 12:20, 8. Jun 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Temporary custody of all items in inventory.
Fri, 05/27/2022 - 02:25 (edited)

Sorry for my poor English.
I am thinking of deleting all inventory items when moving to a new dimension and returning them when returning to the overworld.
I have created two procedures as shown in the image and set them as triggers for the dimension but they did not work.
Can someone please tell me how to solve this problem?

ss2

ss1

Edited by Nekoyama on Fri, 05/27/2022 - 02:25
Last seen on 02:05, 17. Jun 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
If you figure it out please…
Fri, 05/27/2022 - 00:55

If you figure it out please let me know

Last seen on 10:43, 4. Oct 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
May be you need change…
Fri, 05/27/2022 - 08:16

May be you need change itemstack iterator on provided itemstack?

 

Last seen on 12:20, 8. Jun 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I tried doing so, but this…
Fri, 05/27/2022 - 13:50

I tried doing so, but this time I got a compile error...
Can't I just replace them?

ss2

Last seen on 13:53, 4. Oct 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
U could install a plugin for…
Wed, 06/15/2022 - 03:42

U could install a plugin for more procedures that contains lists. or just make separate variables fro every slot (not ideal)

Last seen on 13:53, 4. Oct 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
cause in the current setup…
Wed, 06/15/2022 - 03:43

cause in the current setup the variable gets refreshed and replaced by the next slot content unable to store the previous one

Last seen on 02:05, 17. Jun 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Can you give an example of…
Thu, 06/16/2022 - 00:07

Can you give an example of how that could be accomplished?

Last seen on 00:41, 17. Sep 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
i think the reason is you…
Thu, 06/16/2022 - 01:15

i think the reason is you are setting the variable to an item, in this case, it will be set the the exact item, not being add up, maybe you should try adding the entity's whole inventory, and maybe the variable is not global.

Last seen on 13:53, 4. Oct 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
ye kind of but then he will…
Thu, 06/16/2022 - 13:29

ye kind of but then he will have to make a decoding algorithm to distinguish which slot from which .. As far as I am aware it's not exactly possible cause again lists don't exist

Last seen on 13:53, 4. Oct 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
don't mid the first one it…
Thu, 06/16/2022 - 13:34

don't mid the first one it doesn't work use the second one

Last seen on 04:33, 2. Oct 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You technically *can* create…
Wed, 06/29/2022 - 06:29

You technically *can* create a way to encode the items into string form and then decode them back when needed using a player persistent string variable - this is something I have done to implement parent-child block relationships and I do not recommend using it if you do not understand string algorithms. For the original issue however, you may be able to create a dummy entity with no collisions or behaviours that is summoned at the portal entrance location. This dummy entity should have a string NBT set to the Player's name/ID and it should also have an inventory, allowing you to transfer the Player's items into the entity for storage, and then transferring them back when the Player enters the dimension again.