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

Open
wants to merge 15 commits into
base: dev/feature
Choose a base branch
from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Pull request adding a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants