Skip to content

Add attachment driven entity luminance providers & data component driven item luminance providers #349

@no-name-provided

Description

@no-name-provided

Is your feature request related to a problem? Please describe.
No, not really. They are motivated, though:

Your documentation implies that you want to encourage data-driven integration where possible. Attachments are a (or perhaps the) way for NeoForge devs to save synchronized data to arbitrary entities. Data components are their rough equivalents for item stacks.

If these providers were available by default, I wouldn't have needed to write my plugin.

Describe the solution you'd like
Create 4 new default providers:

  1. An entity provider that accepts a Boolean attachment and a light level and returns the light level when the attached value is true
  2. An item provider that accepts a Boolean data component and a light level and returns the light level when the component's value is true
  3. An entity provider that accepts a Byte attachment and returns the attached value
  4. An item provider that accepts a Byte attachment and returns its value

Describe alternatives you've considered
These are trivial to implement, so I went ahead and did so (the one I needed, anyway).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions