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 entity size expression #7702

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

Conversation

Fusezion
Copy link
Contributor

Description

This PR aims to add a new expression for changing and getting the sizes of slimes and phantoms, this is not the same as changing attribute scale, slimes when changed will have changes done to their attributes for health, attack damage, and movement speed.

I've decided to fully prevent infinity and NaN values due to poorly defined behavior. When setting a value to NaN before would cause the value to be reset compared to setting it to null will do nothing, as a means to retain parity this was decided upon.

Any feedback regarding the description or test is welcomed they all seem to run fine and the same goes for ingame. As for why I didn't use with "" or whatever it was is to keep messages readable if errors appear, this relies more on the expected but got error.


Target Minecraft Versions: any
Requirements: none
Related Issues: none

Copy link
Member

@Efnilite Efnilite left a comment

Choose a reason for hiding this comment

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

needs tests for adding/removing/setting infs and nans and for removing that it becomes below 0

@Efnilite Efnilite added the feature Pull request adding a new feature. label Mar 15, 2025
@Fusezion Fusezion requested review from Efnilite and Pikachu920 March 15, 2025 21:30
Co-authored-by: SirSmurfy2 <[email protected]>
@sovdeeth sovdeeth requested a review from a team as a code owner March 22, 2025 17:49
@sovdeeth sovdeeth requested review from UnderscoreTud and removed request for a team March 22, 2025 17:49
@Fusezion Fusezion requested a review from sovdeeth March 23, 2025 06:20
@sovdeeth sovdeeth added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Mar 23, 2025
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. 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.

6 participants