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

NPC matcher-switch #2544

Merged
merged 3 commits into from Oct 6, 2023
Merged

Conversation

BreadcrumbIsTaken
Copy link
Contributor

Add npc: entity matcher switches to NPC related events

npc spawns

Adds the npc: switch to allow the use of a matcher such as npc_flagged. Also adds the cause: switch to match for the cause for convenience.

Note

This is currently a draft PR because I think it will be nice to add consistency between the NPC events so they all can have the npc: matcher switch. I want to make sure did this right before I add support for the other events. If this PR should just be for this event only then let me know and I'll turn it into a normal PR.

@BreadcrumbIsTaken BreadcrumbIsTaken changed the title NPC matcher NPC matcher-switch Oct 5, 2023
@BreadcrumbIsTaken BreadcrumbIsTaken marked this pull request as ready for review October 5, 2023 23:54
@BreadcrumbIsTaken
Copy link
Contributor Author

Should be ready for review now 👍. All the other NPC events have had the switch added. I also tested them all on 1.20.2

@mcmonkey4eva mcmonkey4eva merged commit 0bc3b4d into DenizenScript:dev Oct 6, 2023
1 check passed
@BreadcrumbIsTaken BreadcrumbIsTaken deleted the npc_matcher branch October 7, 2023 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants