DiggerComponent
Opened this issue · 3 comments
ValresMC commented
"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 commented
$array = [BLOCK_LIST]
$diggerComponent->withBlocks(SPEED), ...$array);
ValresMC commented
Yeah ik but enchantement doesn’t work
LUKAY207 commented
This would probably be fixed if we would create the enchantable component and then add it to the item