Recent content by v0rtex

  1. V

    PersistentDataContainer can't keep data from items being dropped and picked up?

    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()...
  2. V

    PersistentDataContainer can't keep data from items being dropped and picked up?

    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...
  3. V

    PersistentDataContainer can't keep data from items being dropped and picked up?

    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)...