Skip to content

Ability for Item Acceptors also read component data of items #89

Description

@parkouristik93

Currently, you can't specify what components you want to utilise with the key item. You can only use the base item.

The suggestion is:
Make an additional field for components that need to be checked.

Why is that useful?

  1. Right now, peope might get into a situation, when 2 different places will use the same item as a key. This can possibly solve it by utilizing some custom_data or other components to differentiate.
  2. Some mods utilize components for storing data (Ex. Patbox's Brewery), as some items might have the same id, but different data (Ex. What if you wanted for a key to be purple leather tunic and not just any?)

Activity

  1. TheEpicBlock commented on Apr 9, 2025

    @TheEpicBlock
    Member

    For the most flexible solution, I think the item acceptor should eventually be able to use any predicate to match the item. But for now I think a simple toggle for "exact matching" (which will strictly check all components for equality) will suffice for most use-cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions