RENAMING ENTITIES PLEASE HELP!

Discussion in 'General Help' started by Hectorg98, Oct 13, 2014.

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

    Hectorg98

    Hello!
    I am a java developer and I was coding a plugin leaning towards the ''pet'' type of plugin.
    Does anyone know how to name it <playername>'s Pet?
    and also how to make it follow you around?

    I have this code setup for it:
    Code:java
    1. player.getWorld().spawnEntity(player.getLocation(), EntityType.ZOMBIE);
    2. player.sendMessage(ChatColor.DARK_PURPLE + "You have spawned a" + ChatColor.BLUE + "ZOMBIE");




    PLEASE HELP!!!!!!!!!!!!!!!!!!!!
     
Thread Status:
Not open for further replies.

Share This Page