Skip to content

Conversation

@IvanCraft623
Copy link
Member

Introduction

Implement items: Firework Rocket, Firework Star and entity: Firework Rocket.

Follow-up

Requires translations:

Name Value in eng.ini
death.attack.fireworks {%0} went off with a bang

Tests

https://youtu.be/kHs_nBmLRhs

@dktapps dktapps added Category: Gameplay Related to Minecraft gameplay experience Type: Enhancement Contributes features or other improvements to PocketMine-MP labels Dec 22, 2022
Copy link
Member

@dktapps dktapps left a comment

Choose a reason for hiding this comment

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

The implementation looks mostly OK. I haven't tested it yet.

My main sore point on this PR is the woefully inadequate documentation and ambiguous method names.

pmmp-admin-bot[bot]
pmmp-admin-bot bot previously approved these changes Sep 18, 2025
@dktapps dktapps assigned dktapps and unassigned IvanCraft623 Sep 19, 2025
pmmp-admin-bot[bot]
pmmp-admin-bot bot previously approved these changes Sep 19, 2025
pmmp-admin-bot[bot]
pmmp-admin-bot bot previously approved these changes Sep 20, 2025
pmmp-admin-bot[bot]
pmmp-admin-bot bot previously approved these changes Sep 20, 2025
pmmp-admin-bot[bot]
pmmp-admin-bot bot previously approved these changes Sep 20, 2025
pmmp-admin-bot[bot]
pmmp-admin-bot bot previously approved these changes Sep 20, 2025
pmmp-admin-bot[bot]
pmmp-admin-bot bot previously approved these changes Sep 20, 2025
@dktapps dktapps merged commit ebeee29 into pmmp:minor-next Sep 20, 2025
20 checks passed
for($i = 0; $i < 2; $i++){
$target = $position->add(0, 0.5 * $i * $height, 0);
foreach(VoxelRayTrace::betweenPoints($this->location, $target) as $blockPos){
if($world->getBlock($blockPos)->calculateIntercept($this->location, $target) !== null){
Copy link
Member Author

Choose a reason for hiding this comment

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

Dont remember exactly but pretty sure that i compared with isSolid bc it covered most cases, for example damage should be done anyways if there is any flowable block

Copy link
Member

@dktapps dktapps Sep 22, 2025

Choose a reason for hiding this comment

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

The old check didn't line up with Java when I compared. It didn't make much sense to me for the likes of signs to prevent firework damage.

Copy link
Member

Choose a reason for hiding this comment

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

isSolid is also deprecated and returns false for flowables so that wouldn't have done what you wanted either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category: Gameplay Related to Minecraft gameplay experience Type: Enhancement Contributes features or other improvements to PocketMine-MP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants