custom entity

This commit is contained in:
zimzaza4
2024-04-15 22:44:03 +08:00
parent 2a263f60d5
commit e722c3b07f
3 changed files with 16 additions and 5 deletions

View File

@@ -199,8 +199,7 @@ public class EntityTask {
}
public void sendEntityData(Player player, int delay) {
GeyserModelEngine.getInstance().getLogger()
.info("SEND ENTITY");
System.out.println("SEND CUSTOM ENTITY");
PlayerUtils.setCustomEntity(player, model.getEntity().getEntityId(), "modelengine:" + model.getActiveModel().getBlueprint().getName());
Bukkit.getScheduler().runTaskLaterAsynchronously(GeyserModelEngine.getInstance(), () -> {
// PlayerUtils.sendCustomSkin(player, model.getEntity(), model.getActiveModel().getBlueprint().getName());