Missing API for new feature permanent item placement?

A new update (0.9.2) is available now!
Latest Hotfix: 0.9.2.1 (2026-05-12)
  • Hi!


    I searched on API events to can interact with item placement / pickup item placed but not find any. They are exist and i missed? Something like:

    Code
    PlayerItemPermanentPlaceEvent();
    PlayerItemPermanentPickupEvent();

    If this type of event are not yet in API i can use another solution to detect if player want to place a permanent item and eventually stop it? Same for pickup permanent item?


    Maybe another solution can be to extend PlayerPickupItemEvent() with a method to get source of item pickedup.

    Source can be:

    - Ground - for item dropped on ground

    - PermanentItem - for items placed permanently

    - CraftStation - For items take from crafting station (ex: ingots / ore from furnace, meat/dried meat from Drying rack, meat/cooked meat from grill/oven, etc.)

    - etc.


    In meantime maybe is a solution for this problem which i don't see it!


    Thx in advance!


    Bamse

  • I was under the impression that there is a PlayerPlaceItemEvent (for other actions like placing ores in furnaces etc), but it's not exposed yet 8| Thanks for bringing this to my attention, I will add it with the next hotfix! I will also add a few new methods that takes persistent item placement into account (e.g isPersistent() to check if it's a persistent item) :)


    About picking up items, that should be covered by the PlayerPickupItemEvent method. Currently you can find out if it's a persistent item by checking the WorldItemType of the item (if it's WorldItem.WorldItemType.PersistentStatic or WorldItem.WorldItemType.PersistentDynamic, it's a persistent item). But I'll also add a new isPersistent() function to the world item class with the next hotfix^^

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!