Pocketmine-mp: RFC: Mobs and MobAI

Created on 16 Aug 2018  路  3Comments  路  Source: pmmp/PocketMine-MP

Issue Description

Many users of PocketMine-MP desire / or expect to have mobs as part of the basic features. Lack of mobs means that survival type servers have to rely on other means for items that would normally be available as drops from mobs, (food, bones, leather, etc).

Problems

The current solutions for adding MobAI into PMMP are missing significant features and have complications that are difficult or impossible to overcome and properly implement vanilla like behavior. Additionally, introducing MobAI has the potential to drastically change performance.

Proposal

Executed in a series of PRs, it should be possible to implement many things related to mobs. The addition of these items would need to be balanced based on performance impact and server owner needs.

  • The ability to spawn all mobs via:

    • Spawn Eggs

    • /summon command

    • Auto Spawing

    • Chunk Generation

  • Vanilla features

    • Breeding

    • Riding

    • Shearing

    • Taming

  • Basic Movement

Basic movement would NOT include things like wolves hunting sheep or path finding.

Comments

I would like comments and feedback about what features are most important to players, and what the PMMP team feels would be best to leave out of PocketMine for the sake of performance.

Most helpful comment

Having even just a few of the original mobs would be a great start. Survival is non-existent without some mobs, which is rather disappointing to most people when they first play on a PMMP server.

Having Creepers, Skeletons and Zombies auto-spawn like they do in Vanilla would be a great start for hostile mobs.

Chickens, Cows, and Sheep at a minimum for friendly mobs, since that would allow for crafting food, arrows and a bed. Breeding and shearing would be important here.

All 3 comments

Having even just a few of the original mobs would be a great start. Survival is non-existent without some mobs, which is rather disappointing to most people when they first play on a PMMP server.

Having Creepers, Skeletons and Zombies auto-spawn like they do in Vanilla would be a great start for hostile mobs.

Chickens, Cows, and Sheep at a minimum for friendly mobs, since that would allow for crafting food, arrows and a bed. Breeding and shearing would be important here.

@ZizzyZizzy I agree with you. Mobs are a fundamental piece of the survival gamemode, however, (directed to @95CivicSi and @ZizzyZizzy) implementing mob API has two major problems:

  • The server perfomance
  • The hardness of being bug-free

PureEntitiesX has left it shown how server perfomance gets impacted drastically. Spawn 100 mobs and your server TPS will be in the clouds.

I agree about the problems with server performance. Many of the issues with PureEntitiesX are derived from heavily outdated code that has been excessively patched. It is the biggest reason for my RFC. I have been discovering that many of the necessary items for basic movement have been added to PocketMine directly, and it would be easier to create working AI, with less performance problems, if the mobs were directly integrated instead of being patched in.

As for "bug-free", even massive software projects like Windows are not bug-free, and any large scale project will have it's share of bugs. This shouldn't keep developers from working towards a point of completion and including features that could be considered necessary or beneficial.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SuperAdam47 picture SuperAdam47  路  3Comments

Muqsit picture Muqsit  路  3Comments

arfianadam picture arfianadam  路  3Comments

beetree picture beetree  路  3Comments

jasonwynn10 picture jasonwynn10  路  3Comments