how to spawn custom creature?

Discussion in 'Plugin Development' started by tabr, Jul 14, 2012.

Thread Status:
Not open for further replies.
  1. Offline


    there is a method:
    player.getWorld().spawnEntity(player.getLocation(), EntityType.fromId(SOME_NUMBER));
    how can i get this number?
    to get it, i'll listen:
    public void onEntityDeath(EntityDeathEvent event)
    LivingEntity entity = event.getEntity();"[CREATURE_DEATH]id:"+entity.getEntityId()+"/"+event.getEntityType().getName()+"/"+event.getEntityType().getTypeId()+"/");
    there is mode logs:
    so, some mobs (from mod MOCreature) has'n EntityTypeId.
    How can i spawn this mobs?
    And how get some unique number to identify them?
  2. I'm pretty sure you can't spawn mobs from MOCreatures because that mod wasn't created to support Bukkit. As long as that is the case, you can't do it with the usual Bukkit methods (maybe with CraftBukkit or NMS).
Thread Status:
Not open for further replies.

Share This Page