Started by
Nekoyama
on
Topic category: Help with MCreator software
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?
Edited by Nekoyama on Fri, 05/27/2022 - 02:25
If you figure it out please let me know
May be you need change itemstack iterator on provided itemstack?
I tried doing so, but this time I got a compile error...
Can't I just replace them?
U could install a plugin for more procedures that contains lists. or just make separate variables fro every slot (not ideal)
cause in the current setup the variable gets refreshed and replaced by the next slot content unable to store the previous one
Can you give an example of how that could be accomplished?
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.
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
use this https://mcreator.net/plugin/86422/list-management
use this plugin
don't mid the first one it doesn't work use the second one
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.