Thunder-Relay/MC/ThunderFirework
0 forks
id: 25979
281 Lines
  • Java 54.1%
  • XML 19.6%
  • Markdown 18.1%
  • Yaml 8.2%
README.md

ThunderFirework

A lightweight Paper/Youer plugin that turns high-star firework rockets into satisfying TNT-like explosions when shot from a crossbow.

Behaviour

StarsEffect
1–5Normal vanilla firework
6TNT-strength explosion (no blocks, no fire)
7+TNT-strength explosion + fire
  • Never breaks blocks
  • Purely based on the number of firework stars
  • Compatible with pure Paper and hybrid servers (Youer / NeoForge + Paper API)

Building

mvn clean package

The resulting jar will be at target/ThunderFirework-1.0.0.jar.

Installation

  1. Drop the jar into your server’s plugins folder
  2. Restart the server (or load it with a plugin manager)
  3. Shoot a firework rocket that has 6 or more stars from a crossbow

Giving test rockets

# 6-star rocket (TNT explosion, no fire)
/minecraft:give @s firework_rocket[fireworks={flight_duration:3,explosions:[{shape:"large_ball",colors:[I;16711680]},{shape:"large_ball",colors:[I;16711680]},{shape:"large_ball",colors:[I;16711680]},{shape:"large_ball",colors:[I;16711680]},{shape:"large_ball",colors:[I;16711680]},{shape:"large_ball",colors:[I;16711680]}]}] 16

# 7-star rocket (TNT explosion + fire)
/minecraft:give @s firework_rocket[fireworks={flight_duration:3,explosions:[{shape:"large_ball",colors:[I;16711680]},{shape:"large_ball",colors:[I;16711680]},{shape:"large_ball",colors:[I;16711680]},{shape:"large_ball",colors:[I;16711680]},{shape:"large_ball",colors:[I;16711680]},{shape:"large_ball",colors:[I;16711680]},{shape:"large_ball",colors:[I;16711680]}]}] 16

Configuration

Hardcoded:

ConstantDefaultMeaning
MIN_STARS_EXPLOSION6Minimum stars for TNT-style explosion
MIN_STARS_FIRE7Minimum stars for fire effects
FIRE_TICKS100Entity fire duration (5 seconds)
FIRE_RADIUS5.0Radius for setting entities on fire
BLOCK_FIRE_RADIUS3Radius for placing fire blocks
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover