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 villager expressions #7250

Merged
merged 22 commits into from
Dec 24, 2024

Conversation

ShaneBeee
Copy link
Contributor

@ShaneBeee ShaneBeee commented Dec 10, 2024

Description

This PR aims to add some useful expressions for villagers:

  • Villager Level
  • Villager Profession
  • Villager Type

NOTES:

  • I've added an ExprBiome.sk test to make sure there were no conflicts with biomes.
  • Villager Profession Lang entries: Due to clashing with EntityData and Skript saying can't compare a villager profession with a living entity I had to add "profession" to each lang entry. I don't love this, but I don't see any way around it other than changing Villager's EntityData entries in the lang file.
  • Enum/Registry ClassInfo changes are from Comparators - add default comparators #7251 but were needed for this PR
  • MathUtils was added due to Math.clamp() not being available on Java 17 (was added in Java 21)

Target Minecraft Versions: any
Requirements: Relies on #7251
Related Issues: none

@ShaneBeee
Copy link
Contributor Author

Closing this for now.
Too many errors on Java 17 as well as old enum class that I forgot changed to interfaces.

@ShaneBeee ShaneBeee closed this Dec 10, 2024
@ShaneBeee ShaneBeee reopened this Dec 10, 2024
@sovdeeth sovdeeth added the feature Pull request adding a new feature. label Dec 15, 2024
@sovdeeth sovdeeth added the 2.10 Targeting a 2.10.X version release label Dec 17, 2024
ShaneBeee and others added 3 commits December 18, 2024 11:22
Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
@ShaneBeee ShaneBeee requested a review from Efnilite December 18, 2024 20:10
@Efnilite Efnilite added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Dec 19, 2024
@Moderocky Moderocky merged commit a91c968 into SkriptLang:dev/feature Dec 24, 2024
5 checks passed
@ShaneBeee ShaneBeee deleted the feature/villager-stuff branch December 24, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.10 Targeting a 2.10.X version release feature Pull request adding a new feature. feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants