Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Added New mobs #165

Closed
wants to merge 27 commits into from
Closed

Added New mobs #165

wants to merge 27 commits into from

Conversation

dearminder
Copy link

maby this time nothing will breaks

dearminder and others added 14 commits July 26, 2019 13:09
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)
@yoraze
Copy link

yoraze commented Aug 3, 2019

What for?...

@dearminder
Copy link
Author

dearminder commented Aug 3, 2019

For few more mobs @yoraze

@yoraze
Copy link

yoraze commented Aug 3, 2019

For few more mobs @yoraze

But this is the third time you've opened a Pull request like this...

@dearminder
Copy link
Author

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
Copy link
Member

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

Copy link
Author

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

obraz
This is the problem

$this->targetBehaviorPool->setBehavior(0, new HurtByTargetBehavior($this));
}
public
function initEntity(): void
Copy link
Member

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{
Copy link
Member

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

@@ -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);
Copy link
Member

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

@yoraze
Copy link

yoraze commented Aug 18, 2019

@EmreTr1 can you review this?

@phoshp phoshp changed the title 3rd Try Added New mobs Sep 25, 2019
@phoshp
Copy link
Member

phoshp commented Dec 7, 2019

thanks for your contribution #204

@phoshp phoshp closed this Dec 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants