CustomiesDevs / Customies

A PocketMine-MP plugin that implements support for custom blocks, items and entities.
MIT License
112 stars 52 forks source link

DiggerComponent #128

Open ValresMC opened 5 months ago

ValresMC commented 5 months ago

"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 5 months ago

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

ValresMC commented 5 months ago

Yeah ik but enchantement doesn’t work

LUKAY207 commented 4 months ago

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