PocketMine / PocketMine-MP

Legacy PocketMine-MP repository. Head to https://github.com/pmmp for up to date software.
https://www.pocketmine.net/
GNU Lesser General Public License v3.0
1.25k stars 660 forks source link

Zombies, skins, light + creative inventory bug! #3313

Closed xFinnZ closed 6 years ago

xFinnZ commented 9 years ago

Well i report this bug and its the zombie dont react when u spawn it they are like nothing and so hard to kill him and they Don't attack you :/ that happends to all the mobs and when u try to put it in a spawner doesnt even work...... I hope soon will be fixed now the 2nd is the skins: i join with my normal skin and i change it I SEE MY NEW SKIN BUT other players see my old skin. :/ and last one is light sometimes when you /spawn or a command warp to a pvp arena (example) if there is glowing obsidian or glowstone they don't get light i need to break a block but thats annoying :/ and sometimes there is a dark thing so annoying!!! I can't see anything now the last one is c mode inventory (there is not diamond sword, all the egg spawners etc PS: I don't know if someone posted it yet I'm new and I'm just reporting.

Arctiblaine commented 9 years ago

I don't work with Pocketmine but I can answer your questions. 1) Zombies don't have any AI meaning they don't do anything but make sounds and yeah. My tip would be not to spawn them because too many causes a lot of lag 2) That's just the server using your old info, should be fixed by reloading the server, also a bug. 3) Those are mapping bugs, and it should be fixed when you either break a block or a torch 4) That is a bug by Mojang. In creative, those items aren't supposed to be there so the program displays the incorrdct GUI but Pocketmine doesn't Also, please note if you're using development or beta you should expect it. On Jul 25, 2015 2:58 PM, "xFinnZ" notifications@github.com wrote:

Well i report this bug and its the zombie dont react when u spawn it they are like nothing and so hard to kill him and they Don't attack you :/ that happends to all the mobs and when u try to put it in a spawner doesnt even work...... I hope soon will be fixed now the 2nd is the skins: i join with my normal skin and i change it I SEE MY NEW SKIN BUT other players see the old skin. :/ and last one is light sometimes when you /spawn or a command warp to a pvp arena (example) if there is glowing obsidian or glowstone they don't get light i need to break a block but thats annoying :/ and sometimes there is a dark thing so annoying!!! I can't see anything now the last one is inventory (there is not diamond sword, all the egg spawners etc PS: I don't know if someone posted it yet I'm new and I'm just reporting.

— Reply to this email directly or view it on GitHub https://github.com/PocketMine/PocketMine-MP/issues/3313.

xFinnZ commented 9 years ago

Ok ty and i have a leet server that happends (i have unban items) so i spawn a zombie they dont react btw i would love if they spawn and atrack but no 😞 gg thanks alot

Arctiblaine commented 9 years ago

They also haven't implemented mob spawning yet D: Perhaps in the release of 1.5 or 1.6? On Jul 30, 2015 7:16 PM, "xFinnZ" notifications@github.com wrote:

Ok ty and i have a leet server that happends (i have unban items) so i spawn a zombie they dont react btw i would love if they spawn and atrack but no 😞 gg thanks alot

— Reply to this email directly or view it on GitHub https://github.com/PocketMine/PocketMine-MP/issues/3313#issuecomment-126543217 .

tnytown commented 9 years ago

Mob AI is currently not in the roadmap of forseeable PocketMine releases. Nothing official written down yet.

Arctiblaine commented 9 years ago

Uh oh. Oh well. At least there are mobs.

legoboy0215 commented 9 years ago

About the skins, delete the players .dat file. That is the only solution I think.

iksaku commented 9 years ago

Pfff, player skin can be changed each time you join a server, no need to delete the "{name}.dat" file

inxomnyaa commented 9 years ago

For the skin fix i have this as onJoin event:

$event->getPlayer()->setSkin($event->getPlayer()->getSkinData(),$event->getPlayer()->isSkinSlim());
ghost commented 9 years ago

You dont need delete {name}.dat you most reload your server

ghost commented 9 years ago

@thebigsmileXD i think your code realy doesn't for the people have a skin based in steve

inxomnyaa commented 9 years ago

@SkygridRex Reloading does not fix it. Many people complained about that. A skin based in Steve? You mean, if the player has no slim arms? isSkinSlim is checking, if the player has the slim arm model and returns false if its Steve-based.

inxomnyaa commented 9 years ago

Created a fix for entity damage bug:

public function onSpawn(EntitySpawnEvent $event){
    $entity = $event->getEntity();
    if(!$entity instanceof Living){
        $entity->setDataFlag(Entity::DATA_FLAGS, Entity::DATA_NO_AI, true);
        }
    }
}