Open Honza572 opened 4 months ago
Possible solution that came to my mind: Make the mod create a file OUTSIDE of the .jar mod, preferably in config folder, that will remember IDs of all items you picked up. Then simply check the IDs only for the 4 usable slots that have this bug (the weapon/shield) and after use of an item from that slot, somehow check if the id of the entity-item matches the id in the inventory. Oh and also ofc make it only for unstackable items, so if there will be something stackable it won't delete the whole stack.
Also the only thing I can do in Java is Hello World so maybe this idea is nonsense
oh sorry I accidentally closed this I'm on mobile rn😅
hey open
Apparently I forgot to respond, oops 😅
I am looking into the issue, but I will most likely wait for 1.21.2. I expect that the TridentItem (in the code) will see some changes, which might make a solution easier.
For now I recommend "equipping" tridents in the hotbar.
It would be nice to fix this for all items (so mods won't have problems)