Dungeon items are not getting removed from the players inventory when leaving the dungeon. I was told this possibly has something to do with multiverse and to make an issue report.
Dungeon items not being removed when using multiverse
#3850 opened by Unknown 3 years ago
Hmm... I can't appear to replicate this issue, even with Multiverse. Can you walk me through the steps you took to reproduce this?
Ok, so it seems that the issue fixed itself somehow. There is one thing though. Would you be able to add it so any of the items registered as a dungeonitem will get removed from the player in the dungeon even if it wasn't given through a dungeon function? This will help people who have more customized dungeons that rely on stuff like mythicmobs giving an item to a player. Currently I just tested it and it only removes the item if it was given through a dungeon function.
I think there may be some misunderstanding of how dungeon items work.
When you make something a dungeon item, it doesn't mean "all instances of that item will now be a dungeon item". It means that specific item stack can't be taken out of the dungeon.
Let's say you have a specific diamond you don't want taken out of the dungeon. If you make it a dungeon item, the expectation is you place it in the dungeon somewhere, and then that specific diamond can't be taken out of the dungeon. It doesn't make it so all diamonds can't be taken out.
Basically, what the system does is add a tag to the item saying it can't be taken from the dungeon, that's all.
The system I just described is working just fine. Does this help clear things up?
Ah yea I see. That makes a lot more sense now. I thought it was just going based off that item as a whole and then would allow you to remove all instances of that item.
I am assuming it is an nbt tag that is added? Would it be possible to be given that nbt tag that is created for the item in the dungeonitem message so we could put that specific nbt tag onto items in mmoitems for example. I would think since the dungeon is looking for the item with that specific tag, then any item that would have that tag would also get removed?