-
Notifications
You must be signed in to change notification settings - Fork 52
Conversation
Changed CaveSpider name to Cave Spider Added ZombiePigman Added ZombieVillager Added rest Chicken tempt seeds Added Ocelot Changed Tempted Pig items Added PolarBear Added Rabbit Added Skeleton Horse Added Zombie Horse Added Tempted Wolf Behaviour Changed Default gamerule for spawningmobs to true Changed Creative Inventory Egg for Zombie VIllager to Correct one
Added percentage drop for Cod, TropicalFish, PolarBear
Merge remote-tracking branch 'upstream/stable' into stable
Fixes for behavior executing
Cat And Ocelot walks randomly Rabbits avoid Player (but now dont come for carrot)
What for?... |
For few more mobs @yoraze |
But this is the third time you've opened a Pull request like this... |
And (i hope) last time i closed it. I am still learning how to use PhpStorm and Git, its not that easy to understand all commands and function, i messed up it already few times |
|
||
$this->targetBehaviorPool->setBehavior(1, new NearestAttackableTargetBehavior($this, Chicken::class, false)); | ||
//$this->targetBehaviorPool->setBehavior(9, new NearestAttackableTargetBehavior($this, SeaTurtle::class, false)); | ||
//Also i have no idea why attack dont works |
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.
because priority of MeleeAttackBehavior is 9
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.
But i was directly copying it from Wolf and when i changed Chicken to Skeleton then ocelots attacked them so its not this fault
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.
$this->targetBehaviorPool->setBehavior(0, new HurtByTargetBehavior($this)); | ||
} | ||
public | ||
function initEntity(): void |
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.
please use "CTRL + ALT + L" in this fle
use pocketmine\Player; | ||
use function mt_rand; | ||
|
||
class Rabbit extends Tamable{ |
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.
use "CTRL + ALT + L" in this file too
src/pocketmine/level/GameRules.php
Outdated
@@ -71,7 +71,7 @@ public function __construct(){ | |||
$this->setBool(self::RULE_DO_FIRE_TICK, true); | |||
$this->setBool(self::RULE_DO_INSOMNIA, true); | |||
$this->setBool(self::RULE_DO_MOB_LOOT, true); | |||
$this->setBool(self::RULE_DO_MOB_SPAWNING, false); | |||
$this->setBool(self::RULE_DO_MOB_SPAWNING, true); |
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.
please set this false, we dont want mob spawning in all worlds
Cat And Ocelot walks randomly Rabbits avoid Player (but now dont come for carrot)
# Conflicts: # src/pocketmine/entity/passive/Rabbit.php
@EmreTr1 can you review this? |
thanks for your contribution #204 |
maby this time nothing will breaks