Skip to content
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

DiggerComponent #128

Open
ValresMC opened this issue May 1, 2024 · 3 comments
Open

DiggerComponent #128

ValresMC opened this issue May 1, 2024 · 3 comments

Comments

@ValresMC
Copy link

ValresMC commented May 1, 2024

"The DiggerComponent can be improved.

It doesn't take into account enchantments; one has to add the blocks one by one, whereas it could simply ask for an array."

For exemple :

$this->addComponent(new DiggerCompnent(SPEED, [BLOCK_LIST]));
@LUKAY207
Copy link

LUKAY207 commented May 8, 2024

$array = [BLOCK_LIST]
$diggerComponent->withBlocks(SPEED), ...$array);

@ValresMC
Copy link
Author

ValresMC commented May 8, 2024

Yeah ik but enchantement doesn’t work

@LUKAY207
Copy link

This would probably be fixed if we would create the enchantable component and then add it to the item

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

No branches or pull requests

2 participants