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

feat: Slowness NoSlow #4888

Open
wants to merge 1 commit into
base: nextgen
Choose a base branch
from

Conversation

ManInMyVan
Copy link
Contributor

No description provided.

Comment on lines +37 to +43
player.attributes.getCustomInstance(EntityAttributes.GENERIC_MOVEMENT_SPEED)?.updateModifier(
EntityAttributeModifier(
Identifier.of("effect.slowness"),
-multiplier * (slowness + 1.0),
EntityAttributeModifier.Operation.ADD_MULTIPLIED_TOTAL
)
)
Copy link
Member

Choose a reason for hiding this comment

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

I don't like the idea of editing the effect like that. It should really hook it where it's applied, I guess?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but then we can't modify pre existing effects

Copy link
Member

Choose a reason for hiding this comment

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

No, I mean where it applies the effect. Not where the effect is applied.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you mean this, it does nothing
image

Copy link
Member

Choose a reason for hiding this comment

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

Yes, then fix that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the reason this does nothing is because the attribute is applied by the server and not the client, we would have to modify the attribute when we receive the attribute packet, which as I said before, won't let us disable this, or modify the multiplier after the effect is applied

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.

2 participants