[QUESTION] Overwriting and deleting an item
Everts0n opened this issue ยท 1 comments
Server Version
PaperSpigot 1.18.2
Resource Version
ItemJoin v6.0.4
Dump Information
none
Describe The Problem
How can I make that the item is not deleted, but simply moved to an empty space in the inventory? (or dropped)
My players don't like that an item in the inventory is completely removed (overwriting) and replaced with another item (for example in slot 0)
Additional Context
No response
Checklist
- I am running latest version of this resource.
- I have read the wiki to make sure it's not an issue with configuration.
- I ticked all of these boxes without actually reading them.
- I have checked that my help request is unique and another request does not exist.
- I acknowledge this is not a bug report and is instead a help request.
Apologies for the slow response,
Since you didn't provide your dump information I can't tell you exactly what to do since I am unsure how you are setup.
However, I think the following itemflags you may find to be what you are looking for.
Simply choose what you need and add it to your item(s) itemflags list.
Snippet from the wiki:
give-next
- This will function similar to the Arbitrary slot idea, any item with a dedicated number slot from 0 to 35 with this itemflag will function as normal if the dedicated slot is empty. However, if it is full, it will give the item in the next available slot AFTER the preceding dedicated slot. The Arbitrary would simply give the item to the first available slot rather than the slot after the dedicated slot.
move-next
- If an item with this flag is set to be given, and the slot where the item should be set in is already full, it will move the old item to another slot to make room for the custom item.
drop-full
- This simply gives the item the ability to drop itself onto the ground when attempting to give the item to the player. The item will drop if the player's inventory is full. This functionality works with any slot type including custom and arbitrary slots.
EDIT: Closing due to inactivity.