Skip to content

Config for health to impact Creeper explosion radius#304

Merged
BillyGalbreath merged 2 commits into
ver/1.16.5from
feature/creeper-health-explosion
May 13, 2021
Merged

Config for health to impact Creeper explosion radius#304
BillyGalbreath merged 2 commits into
ver/1.16.5from
feature/creeper-health-explosion

Conversation

@encode42

@encode42 encode42 commented Apr 30, 2021

Copy link
Copy Markdown
Contributor

This allows for a Creeper's explosion to be affected by its health value.
This should scale with any custom explosion radius or max health set.
Equation: Creeper's explosion radius multiplied by percentage of max health (health / max health) * (explosion radius * charged multiplier)

Update for those wondering why this hasn't been merged yet: We're currently making sure the JavaScript engine Purpur integrates is functioning correctly, then this PR will change to allow for the equation to be customized by the user.

Explosion radius with feature disabled:

Explosion radius at full health:

Explosion radius at half health:

@encode42 encode42 force-pushed the feature/creeper-health-explosion branch from c609f01 to dc66f46 Compare April 30, 2021 01:21

@katekerllenevich katekerllenevich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, a cool feature would be to invert this and make the explosions bigger with less health.

@YouHaveTrouble

Copy link
Copy Markdown
Member

lgtm, a cool feature would be to invert this and make the explosions bigger with less health.

Yeah, I suggested making config option a number value that multiplies explosion force and if it's negative it reverses the health scaling calculation

@katekerllenevich

Copy link
Copy Markdown
Member

we could use the js expression evaluation to make the full equation customizable

@BillyGalbreath BillyGalbreath force-pushed the feature/creeper-health-explosion branch from dc66f46 to f82f22b Compare May 13, 2021 22:25
@BillyGalbreath BillyGalbreath merged commit 03f1aec into ver/1.16.5 May 13, 2021
@BillyGalbreath BillyGalbreath deleted the feature/creeper-health-explosion branch May 13, 2021 22:33
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.

4 participants