Closed kaxyum closed 7 months ago
You don't need Customies to register a Human entity, just do it with the native PM API
You don't need Customies to register a Human entity, just do it with the native PM API
So what's the point of registering entities with customies?
This change is actually not necessary to support human entities. You can pass in your own creationfunc to the register function to override customies default behaviour.
registerEntity(CustomHuman::class, "customies:custom_human", static function (World $world, CompoundTag $nbt): Entity {
return new CustomHuman(EntityDataHelper::parseLocation($nbt, $world), Human::parseSkinNBT($nbt), $nbt);
});
so it's useless to register entities with customies , so delete this function
It's not, because custom entitiy identifiers need to be sent in the AvailableActorIdentifiersPacket. I guess it could be simplified down to a "registerEntityIdentifier", but the current method just makes it slightly easier and more simple for people to register entities. I appreciate the pull request, but like I mentioned it can be done with the current method already
You also need to simplify the registration of human entities.
Introduction
When we register a human entity it crashes
Changes
CustomiesEntityFactory->registerEntity
has been changed to support human entity