BlockHorizons / BlockPets

An advanced pets plugin for PocketMine-MP
Apache License 2.0
93 stars 61 forks source link

Spawning each pets test results. #183

Closed ericsimard52 closed 3 years ago

ericsimard52 commented 5 years ago

Some pets do not work properly, Here are my test results:

error.log

I have not really looked at the error logs yet, but every creature as been tested

ericsimard52 commented 5 years ago

Cave spider spawned properly, spiders did not, the difference between both is in

public function generateCustomPetData(): void { CaveSpider content: public function generateCustomPetData(): void { $this->setGenericFlag(self::DATA_FLAG_CAN_CLIMB, true); }

Spider content:

public function generateCustomPetData(): void { $this->propertyManager->setPropertyValue(self::DATA_FLAGS, self::DATA_FLAG_CAN_CLIMB, true); }

Changing the content of the spider function to match the cavespider allow for the spider to spawn. Any reason why the generateCustomPetData was different?

ericsimard52 commented 5 years ago

For silverfish, what would be a good speed value?

ericsimard52 commented 5 years ago

SilverFish was writen Silverfish in SilverFish.php After correction, silverfish spawn properly.