-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Implement firework rocket & firework star #5455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dktapps
left a comment
There was a problem hiding this 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.
with Java, anyway
| 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){ |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Introduction
Implement items:
Firework Rocket,Firework Starand entity:Firework Rocket.Follow-up
Requires translations:
death.attack.fireworks{%0} went off with a bangTests
https://youtu.be/kHs_nBmLRhs