Skip to content

Comments

Allow matching any or no nbt tag in CT#1737

Merged
TechLord22 merged 2 commits intomasterfrom
tc-match-any-nbt-ct
May 7, 2023
Merged

Allow matching any or no nbt tag in CT#1737
TechLord22 merged 2 commits intomasterfrom
tc-match-any-nbt-ct

Conversation

@TechLord22
Copy link
Member

What

Allows CT to have inputs which match any or no NBT tag. This behavior is created when the input is provided with an empty NBT tag, which is consistent with how CT interacts with other mods.

Documentation for this behavior will be added to the wiki as well.

Outcome

Fixes #1688.

@TechLord22 TechLord22 added integration: CT CraftTweaker integration type: bug Something isn't working labels May 2, 2023
@IntegerLimit
Copy link
Contributor

This seems to be the behaviour already, with adding .withEmptyTag() acting as a wildcard for NBT. Is this just making sure it always works, or am I misunderstanding?

@ALongStringOfNumbers ALongStringOfNumbers added the deployment: artifact PR should build artifacts label May 4, 2023
@github-actions
Copy link

github-actions bot commented May 4, 2023

This Pull Request has automatic artifact deployment enabled. Download the latest build here, and extract the contents.

Copy link
Member

@bruberu bruberu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to have fixed ALSON's concern about not using the new matching in evaluate, and I don't think it's problematic.

@TechLord22 TechLord22 added this to the 2.6.2 milestone May 6, 2023
@TechLord22 TechLord22 merged commit 1463d5c into master May 7, 2023
@TechLord22 TechLord22 deleted the tc-match-any-nbt-ct branch May 7, 2023 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deployment: artifact PR should build artifacts integration: CT CraftTweaker integration type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CT-generated recipes NBT problems

5 participants