Skip to content

Configurable block fall damage modifiers#1143

Merged
BillyGalbreath merged 5 commits into
PurpurMC:ver/1.19.2from
MelnCat:feat/adjustable-block-fall-damage-modifiers
Oct 5, 2022
Merged

Configurable block fall damage modifiers#1143
BillyGalbreath merged 5 commits into
PurpurMC:ver/1.19.2from
MelnCat:feat/adjustable-block-fall-damage-modifiers

Conversation

@MelnCat

@MelnCat MelnCat commented Oct 2, 2022

Copy link
Copy Markdown
Contributor

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.

Comment thread patches/server/0306-Configurable-block-fall-damage-modifiers.patch Outdated

@frog-commits frog-commits left a comment

Copy link
Copy Markdown
Contributor

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.

6 participants