I'm not quite sure if it's this plugin or CloneMe, however mobs spawned from eggs will not move at all and cannot be killed by anything other than /killall
Thanks for your feedback. We are running a Tekkit server, which is still on 1.1-R4. Can you make a recommendation to whether we should use v1.3_03 or v1.4 and manually pull out the Ocelot and other NPCs that are not in our Minecraft version.
I found the source code. The big link that says 'Source' on it helped!
Thanks again for the great tool. I wouldn't attempt this without it!
1. It is probably the best option as if you directly modify classes, you'll have to remember to merge your changes into my code whenever I update the plugin.
2. Not at the moment, although I might consider it.
3. There isn't an event for that, although you might be able to use getLineOfSight somewhere to check if a player is in its line of sight.
My son is a big Minecraft fan and I'm thinking of getting him some exposure to programming by working with him on a simple plugin for the server we setup. The current plan is to make a pig that tells people off in pig Latin when they walk by (its a teen age boy thing, just go with me here). I'm thinking of using NPC Creatures as a base.
I have a few questions:
Thank you Zachbora for the code example below! Is creating a separate plugin and then using the methods on the NpcManager and Npc classes the best way to work with the this lib? The other option I can think of is to crack open the plugin and modify the Npc classes directly.
From a separate plugin that uses the NpcCreatures lib, is there a way to create custom NPC classes, possibly by extending the base classes, and then spawn them using the NpcManager class?
Is there an event that fires when the NPC sees a player? The java docs are down at the moment, but I did not spot this even when I looked a few days ago.
Thanks in advance for any help you can give to get us started on the right foot.
Though I haven't updated my plugin yet, you can check how I change the NPC movement on my plugin source. Note that where the head is looking at is part of the Location of the NPC.
There's a bit on talking in the description above, however there currently aren't any on movement/rotation. There are some pathFindTo and moveTo methods I think in there.
Is it possible to set walking speed?
@Steveice10
Thx that really helps besides the fact that the npc`s only face the one way. PLZ HELP ME!
I dont want to go bak 2 citizens cus wen i restart my server the npcs dissapear.
Hey, Your javadocs is down could you fix it? :D otherwise great plugin!
Yes, you can do "/createnpc (name) human" or "/createnpc (name) giant"
Can u spawn players or giants??? plz i am stuck with this
Version 1.4_01 fixes the spawn egg bug.
@AvariceSyn
I've figured out why that's happening, will fix asap.
I'm not quite sure if it's this plugin or CloneMe, however mobs spawned from eggs will not move at all and cannot be killed by anything other than /killall
Is there a way to fix that?
I don't quite remember if I did anything big between the two, so I'd go with 1.3_03
@Steveice10
Thanks for your feedback. We are running a Tekkit server, which is still on 1.1-R4. Can you make a recommendation to whether we should use v1.3_03 or v1.4 and manually pull out the Ocelot and other NPCs that are not in our Minecraft version.
I found the source code. The big link that says 'Source' on it helped!
Thanks again for the great tool. I wouldn't attempt this without it!
@DustinHenson
1. It is probably the best option as if you directly modify classes, you'll have to remember to merge your changes into my code whenever I update the plugin.
2. Not at the moment, although I might consider it.
3. There isn't an event for that, although you might be able to use getLineOfSight somewhere to check if a player is in its line of sight.
My son is a big Minecraft fan and I'm thinking of getting him some exposure to programming by working with him on a simple plugin for the server we setup. The current plan is to make a pig that tells people off in pig Latin when they walk by (its a teen age boy thing, just go with me here). I'm thinking of using NPC Creatures as a base.
I have a few questions:
Thanks in advance for any help you can give to get us started on the right foot.
@devintelo
I think so.
Does the 1.2.4 version works for 1.2.5
Me too !!
@only1man1
Hi only1man1,
Though I haven't updated my plugin yet, you can check how I change the NPC movement on my plugin source. Note that where the head is looking at is part of the Location of the NPC.
In this class, check the move, setItemInHand, setSneaking, doArmSwing methods. https://github.com/ZachBora/CloneMe/blob/master/src/com/worldcretornica/cloneme/Clone.java
I haven't been able to reproduce the mob freeze issue since v1.4. Are you sure you have the right version?
Whenever i enable this plugin on my server, the npc's/mobs spawned by eggs don't move anymore :-/
There's a bit on talking in the description above, however there currently aren't any on movement/rotation. There are some pathFindTo and moveTo methods I think in there.
any tutorials on how to make them move / talk / rotate / look ?