Thank you Noy, it did help. Now I can't merge items however, but the issue of this thread has been solved haha
For any lurkers from search engines, here's what worked:
@EventHandler
public void onItemPickup(EntityPickupItemEvent e) {
Item i = e.getItem()...
Hi Noy, thank you for the answer.
I am still familiarizing myself with the inner workings of items, stacks and inventories.
I just tried the following code snippet, and now the data found is always null, which generates a new ID.
Now that I access the item stacks and their metas, shouldn't the...
Hello, I am trying the following:
API version 1.21.1-R0.1-SNAPSHOT (tried originally with 1.20.4)
@EventHandler
public void onItemPickup(EntityPickupItemEvent e) {
PersistentDataContainer container = e.getItem().getPersistentDataContainer();
UUID id = container.get(ns_key, uuid_t)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.