BKCommonLib icon indicating copy to clipboard operation
BKCommonLib copied to clipboard

Can't create a entity??

Open ChefBierfles opened this issue 4 years ago • 3 comments

BkCommonLib version: 1.16.2-v1
Spigot version: Paper spigot build 189 (Latest for 1.16.2)

Problem or bug: I cannot seem to create an player entity it throws an error and i've tried multiple spigot / commonlib versions.

Error message: https://pastebin.pl/view/23ce8055 Code: https://pastebin.pl/view/a1848c0c. PlayerQuitHandler is called when a player drops an item (Debug purposes)

Thanks in advance! I really can't wrap my head arround it.

ChefBierfles avatar Sep 13 '20 07:09 ChefBierfles

What type of entity are you creating? Creating (hooked) entity players is not something that works I think

bergerkiller avatar Sep 13 '20 13:09 bergerkiller

Yeah Entity players seems broken. Once I change the EntityType to something like a villager it works flawless. Thanks in advance! I've also found that once you want to remove a entity you have to clear the controllers first with CommonEntity.clearControllers() otherwise it will throw all sorts of exceptions.

ChefBierfles avatar Sep 13 '20 13:09 ChefBierfles

Since all I really use it for are minecart entities, it's not something that is being tested a lot. But it's good to document issues like this. I don't think I can make hooked player entities work, since they require a lot of extra logic, like the network connection and stuff.

bergerkiller avatar Sep 13 '20 13:09 bergerkiller

Closing issue, yes it's not possible to create player entities.

bbayu123 avatar Jun 03 '23 19:06 bbayu123