Inactive [FUN/DEV/RPG] NPCCreatures v1.4_02 - Spawn NPCs of any mob type! [1.2.5-R1.2]

Discussion in 'Inactive/Unsupported Plugins' started by Steveice10, Dec 20, 2011.

  1. Offline


    NPCCreatures - Spawn NPCs of any mob type!
    NPCCreatures... what is this?

    For Server Admins
    You can spawn NPCs of any mob type you want - yes, even Enderdragons! - and if you (optionally) have Spout installed, you can give them overhead names.
    /createnpc <name> [type]
    And yes, you can delete them, too.
    /deletenpc <id>
    Note that you need the NPC ID, not the NPC name. To get the ID, look in the config.yml for the NPC's entry and get the ID from the section title.

    For Plugin Devs
    You can hook into this and spawn your own NPCs:

    NPCManager npcManager = ((NPCCreatures)plugin.getServer().getPluginManager().getPlugin("NPCCreatures")).getNPCManager();
    npcManager.spawnNPC(name, location, type);

    And get an NPC from a Bukkit Entity:

    if(entity instanceof NPC) {
    You can also make them talk:

    npc.say(message, player);
    npc.say(message, playerList);
    npc.say(message, distance);

    kahlilnc likes this.
  2. Offline


    good plugin!
  3. Offline


    That's epic ! Do you intend do make them talk in the future ?

    EDIT: how do you remove one of them ?
  4. Offline

    Deleted user

    You sir, deserve a medal.
    Give that man a prize.
  5. Offline


    I have to ask, what makes this different then the other 5 NPC plugins?
  6. Offline


    Thanks for the positive comments guys, updated the plugin to add a few more developer methods and fixed some bugs. Javadocs for developers coming sometime soon!

    As far as I know, there aren't any plugins that let you spawn an npc of any mob type, only human npcs.

    At the moment, delete them by deleting their entry in npcs.yml. npcs.yml is located in /(plugin folder here)/NPCCreatures. A delete command will be added soon.
  7. Offline


    Whoops, didn't see the "any mob" part, well done!
  8. Offline


    Updated to v1.2, added Javadocs and a /deletenpc command.

    1.2.5 has been released to fix bugs, redo the config, and add a pickup option!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 22, 2016
  9. Offline


    It doesnt work for me. :(

    When i do:

    /createnpc zombie zombie

    I get this error:

    2011-12-22 10:04:50 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'createnpc' in plugin NPCCreatures v1.2
        at org.bukkit.command.PluginCommand.execute(
        at org.bukkit.command.SimpleCommandMap.dispatch(
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(
        at net.minecraft.server.NetServerHandler.handleCommand(
        at net.minecraft.server.NetServerHandler.a(
        at net.minecraft.server.Packet3Chat.a(
        at net.minecraft.server.NetworkManager.b(
        at net.minecraft.server.NetServerHandler.a(
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.w(
    Caused by: java.lang.NoClassDefFoundError: org/getspout/spoutapi/packet/SpoutPacket
        at tk.npccreatures.npcs.NPCManager.getNewNPC(
        at tk.npccreatures.npcs.NPCManager.spawnNPC(
        at tk.npccreatures.npcs.NPCManager.spawnNPC(
        at tk.npccreatures.NPCCreatures.onCommand(
        at org.bukkit.command.PluginCommand.execute(
        ... 12 more
    Caused by: java.lang.ClassNotFoundException: org.getspout.spoutapi.packet.SpoutPacket
        at$ Source)
        at$ Source)
        at Method)
        at Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 17 more
    when i do
    /createnpc zombie

    It spawns a human with the name zombie.

    And when i delete the npc.. it says.. npc deleted. But the npc (human) still stands there.

    AND it didnt make a config for me. It made a map instead with the name "npcs.yml"
  10. Offline


    1. That means you dont have Spout installed, we are working on fixing it.

    2. /createnpc zombie would give you a human named zombie because the first parameter of the command is name. to spawn a zombie npc, you would type /createnpc (name) zombie

    3. I'll look into it.

    4. Are you on the latest 1.2.5?
  11. Offline


    OOh ok didnt know it needed spout. Ill try it again with spout!
  12. Offline


    Version 1.2.6 released, Spout requirement removed.
  13. Offline


    I did spawn the dragon. But was only possible in my main world. And i couldnt read anything in the config about his ID to delete him.

    Its a really cool plugin the dragon in my city looks nice!
  14. Offline


    The config is formatted like this:
        x: (x)
        name: (name)
        type: (npcType)
        world: (worldName)
        pitch: (pitch)
        yaw: (yaw)
        z: (z)
        y: (y)
    What you want to do is look for your npcs name in the config, and check whats in the place where I put (ID). Take that and do /deletenpc (what you found here).
  15. Offline


  16. Offline


    Not sure if that error has something to do with the plugin at all, I'll look into it.

    EDIT: Was probably caused by another plugin you had, fix released.
  17. Offline


    Aahh after i restarted the server. The dragon in the second world spawned and it also written to the config! Everythings fine now xD
  18. Offline


    it won't work for me is it because i dont have spout?? i get a error from the nms map, the magmacube won't work so i deleted it still won't work :(
  19. Offline


    Can you post the error here?

    v1.2.6-hotfix 2 up for download.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 22, 2016
  20. Offline


    Updated for 1.1, enjoy :)
  21. Offline


    When I create a NPC I get this error message :
    08:19:24 [SEVERE] java.lang.NoSuchMethodError: tk.npccreatures.npcs.nms.NPCHuman
    08:19:24 [SEVERE]      at tk.npccreatures.npcs.nms.NPCHuman.a_(
    08:19:24 [SEVERE]      at net.minecraft.server.EntityHuman.k(
    08:19:24 [SEVERE]      at net.minecraft.server.EntityHuman.d(
    08:19:24 [SEVERE]      at net.minecraft.server.EntityLiving.y_(EntityLiving.jav
    08:19:24 [SEVERE]      at net.minecraft.server.EntityHuman.y_(
    08:19:24 [SEVERE]      at net.minecraft.server.EntityPlayer.a(
    08:19:24 [SEVERE]      at net.minecraft.server.NetServerHandler.a(NetServerHand
    08:19:24 [SEVERE]      at net.minecraft.server.Packet10Flying.handle(SourceFile
    08:19:24 [SEVERE]      at net.minecraft.server.NetworkManager.b(NetworkManager.
    08:19:24 [SEVERE]      at net.minecraft.server.NetServerHandler.a(NetServerHand
    08:19:24 [SEVERE]      at net.minecraft.server.NetworkListenThread.a(SourceFile
    08:19:24 [SEVERE]      at net.minecraft.server.MinecraftServer.w(MinecraftServe
    08:19:24 [SEVERE]      at
    08:19:24 [SEVERE]      at
    08:19:24 [SEVERE] Unexpected exception
    java.lang.NoSuchMethodError: tk.npccreatures.npcs.nms.NPCHuman.getBukkitEntity()
            at tk.npccreatures.npcs.nms.NPCHuman.a_(
            at net.minecraft.server.EntityHuman.k(
            at net.minecraft.server.EntityHuman.d(
            at net.minecraft.server.EntityLiving.y_(
            at net.minecraft.server.EntityHuman.y_(
            at net.minecraft.server.EntityPlayer.a(
            at net.minecraft.server.NetServerHandler.a(
            at net.minecraft.server.Packet10Flying.handle(SourceFile:126)
            at net.minecraft.server.NetworkManager.b(
            at net.minecraft.server.NetServerHandler.a(
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.w(
    and the server crashes
  22. Offline


    Hmm, I'll look into it. You are on 1.1-R3 right?
  23. Offline


  24. Offline


    I can't reproduce that error. From the looks of it, it would happen if you weren't on 1.1-R3.
  25. Offline


    Ah sorry, I checked again and I forgot to edit the RUN.bat to 1.1-r3, sorry to take your time, and it's a great plugin!
  26. Offline


    How do i change the skins?
    for the human npcs?
  27. Offline


    Latest rb please
  28. Offline


    Updated for 1.2.4-R1.0 and fixed bugs!
  29. Offline


    You should try to talk to the guy who makes citizens and have these 2 plugins combined into 1!
  30. I want to get this if i can have them set up as a kind of guide for new players im not sure if i understand this plugin so i dont know if this is possible. like a [sheep] that gives you a tour of the server or tells you the rules.I would name him.... Sheepy.

Share This Page