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

Configurable block fall damage modifiers #1143

Merged
merged 5 commits into from Oct 5, 2022
Merged

Configurable block fall damage modifiers #1143

merged 5 commits into from Oct 5, 2022

Conversation

MelnCat
Copy link
Contributor

@MelnCat MelnCat commented Oct 2, 2022

This allows the block fall damage modifiers (distance and damage) to be configured.
For example, a configuration of

  block-fall-multipliers:
    minecraft:granite:
      distance: 10
    minecraft:oak_leaves:
      damage: 10
    minecraft:obsidian:
      damage: 100
      distance: 0.1

Causes falling (or jumping) on granite to act as if you've fallen 10x that distance, and increases the damage taken to be the damage taken if you've fallen 10x that distance.
Falling on oak leaves will increase damage by 10x, and obsidian will increase damage by 100x, but cause effective distance to be 10x less.

Copy link
Contributor

@frog-commits frog-commits left a comment

Choose a reason for hiding this comment

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

all good, was just curious ☻

@BillyGalbreath BillyGalbreath merged commit f28d282 into PurpurMC:ver/1.19.2 Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants