PaperMC / PaperMC/Paper

Event for when a Creeper starts swelling

Open
#12,620 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: needs triage
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Is your feature request related to a problem?

There's currently no easy way to generally tell when a Creeper begins swelling/expanding with the Paper API. I want to play a custom sound when a Creeper is about to explode without having to override the vanilla fuse.ogg sound, since TNT also uses that same sound.

Describe the solution you'd like.

I would like an event that is called right before Creepers begin swelling/expanding, with a method to get the Creeper entity that is about to swell, and with or without the ability to cancel the event.

Describe alternatives you've considered.

I considered CreeperIgniteEvent, but it only fires if you manually ignite a Creeper using a flint and steel or fire charge, or programmatically with Creeper#ignite or Creeper#setIgnited(boolean). A Creeper swelling due to proximity with a player does not fire this event.

EntityExplodeEvent only fires immediately before the Creeper explodes, not before the beginning of the swelling process.

Other

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.