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

CombatFeatures.VANILLA_FALL adjust damage values #57

Open
qolarnix opened this issue Oct 19, 2024 · 0 comments
Open

CombatFeatures.VANILLA_FALL adjust damage values #57

qolarnix opened this issue Oct 19, 2024 · 0 comments

Comments

@qolarnix
Copy link

qolarnix commented Oct 19, 2024

Is it possible to adjust damage taken from falling?

Currently when the player jumps off 1 or 2 blocks they take damage. This is different from vanilla and not the best player experience when running around a map.

Is there something I need to change in my configuration or is there a way to adjust the values?

MinestomPvP.init();
CombatFeatureSet modernVanilla = CombatFeatures.modernVanilla();
MinecraftServer.getGlobalEventHandler().addChild(modernVanilla.createNode());

CombatFeatureSet combatFeatureSet = CombatFeatures.empty()
        .version(CombatVersion.MODERN)
        .add(CombatFeatures.VANILLA_FOOD)
        .add(CombatFeatures.VANILLA_FALL)
        .add(CombatFeatures.VANILLA_PLAYER_STATE)
        .build();
instanceContainer.eventNode().addChild(combatFeatureSet.createNode());
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

No branches or pull requests

1 participant