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

[SUGGESTION] Support for non-integer values in the "range:" variation of the random entities feature's NBT rule #324

Open
dogonotoughen opened this issue Nov 11, 2024 · 2 comments
Assignees

Comments

@dogonotoughen
Copy link

Describe your suggestion...
the NBT rule in random_entities.properties has multiple variations (raw: | regex: | etc.) and one of those is range: which checks for an integer value in a list. The problem is, many useful NBT values are of the "float" type, which cannot be checked by "range:".

Usage example: with Random Mob Sizes "ScaleFactor" NBT value (which is a float), textures could be applied based on entity size.

Does another mod also do this?
No.

Does OptiFine do this?
No.

@Traben-0
Copy link
Owner

regex could do this but it is of course more costly.

I will look into adding support for this but it would most definetly be disabled by default for compatibility

This wont be a high priority, seeing as its possible via regex and different behaviour to OptiFine.

@dogonotoughen
Copy link
Author

Not to be overzealous, but thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants