Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add event for preventing particle tinting for colored blocks #3146

Merged
merged 1 commit into from
Jul 3, 2023

Conversation

Juuxel
Copy link
Member

@Juuxel Juuxel commented Jun 25, 2023

Adds an event, ParticleRenderEvents.ALLOW_BLOCK_DUST_TINT, that checks if a block dust particle of a specific block can be tinted.

The API is useful for partially coloured blocks that use a coloured texture in their models but a non-coloured particle texture, like vanilla grass blocks or various thin tree logs with leaves from biome mods.

Also bumps the Fabric Loader requirement of fabric-particles-v1 to latest to disable Loader's mixin compatibility mode that ignores slices for certain @At annotations.

The area of vanilla code seems to be very stable - this change should be backportable with only test mod changes all the way to 1.18.2 and maybe even further.

- Adds an event, `ParticleRenderEvents.ALLOW_BLOCK_DUST_TINT`, that checks
  if a block dust particle of a specific block can be tinted.
- Bumps Fabric Loader requirement of fabric-particles-v1 to latest to
  disable Loader's mixin compatibility mode that ignores slices for
  certain At annotations.
@Juuxel Juuxel added enhancement New feature or request priority:low Low priority PRs that don't immediately need to be resolved labels Jun 25, 2023
@Juuxel Juuxel requested a review from a team June 25, 2023 22:34
@Technici4n Technici4n requested a review from a team June 26, 2023 09:20
@modmuss50 modmuss50 added last call If you care, make yourself heard right away! merge me please Pull requests that are ready to merge labels Jun 28, 2023
@modmuss50 modmuss50 merged commit 201a23a into FabricMC:1.20.1 Jul 3, 2023
5 checks passed
modmuss50 pushed a commit that referenced this pull request Jul 3, 2023
- Adds an event, `ParticleRenderEvents.ALLOW_BLOCK_DUST_TINT`, that checks
  if a block dust particle of a specific block can be tinted.
- Bumps Fabric Loader requirement of fabric-particles-v1 to latest to
  disable Loader's mixin compatibility mode that ignores slices for
  certain At annotations.

Signed-off-by: modmuss50 <modmuss50@gmail.com>
modmuss50 pushed a commit to modmuss50/fabric that referenced this pull request Nov 22, 2023
…C#3146)

- Adds an event, `ParticleRenderEvents.ALLOW_BLOCK_DUST_TINT`, that checks
  if a block dust particle of a specific block can be tinted.
- Bumps Fabric Loader requirement of fabric-particles-v1 to latest to
  disable Loader's mixin compatibility mode that ignores slices for
  certain At annotations.

Signed-off-by: modmuss50 <modmuss50@gmail.com>
(cherry picked from commit 86d4888)
modmuss50 added a commit that referenced this pull request Nov 26, 2023
…3433)

- Adds an event, `ParticleRenderEvents.ALLOW_BLOCK_DUST_TINT`, that checks
  if a block dust particle of a specific block can be tinted.
- Bumps Fabric Loader requirement of fabric-particles-v1 to latest to
  disable Loader's mixin compatibility mode that ignores slices for
  certain At annotations.

Signed-off-by: modmuss50 <modmuss50@gmail.com>
(cherry picked from commit 86d4888)

Co-authored-by: Juuz <6596629+juuxel@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request last call If you care, make yourself heard right away! merge me please Pull requests that are ready to merge priority:low Low priority PRs that don't immediately need to be resolved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants