/CustomNPC

Add Custom NPC in your Pocketmine!

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

CustomNPC

##Custom NPC in your Server!! NPC sends you Item and does command.
You can set Item and Command. ###Usage ###How to set up ###Commands ###Todo ###Entity ID List ###Updates

##Usage If you want to add Player's NPC, enter command in game
/cn add player <ItemId> <command(If you don't want, enter cn)> <Name> then tap the ground.

Or If you want to add Entity NPC, enter command
/cn add <player | entityId> <ItemID> <Name>
If you delete NPC, enter
/cn del and Tap. ##How to set up Item and command? Open NPC.json and follow.

If you want to change command, change at "command". Like this,
And then go to your server and tap NPC.

And If you want to change its name, change at "name". ##Commands /cn add <player | entityId> <ItemID> <Name>
/cn del /cn opt move <x> <y> <z> item <ID> <Amount> name <Name> msg <Message> command <add | del> <Command> ##Todo

  • Change options of npc in game.
  • Does some commands(now only 1)
  • NPC always look player
  • Message
  • If the player is near the NPC, send Message on its name .
##Entity ID LIST Arrow : 80
Bat : 19
Blaze : 43
Boat : 90
CaveSpider : 40
Chicken : 10
Cow : 11
Creeper : 33
Enderman : 38
Ghast : 41
IronGolem : 20
Mooshroom : 16
Ocelot : 22
Pig : 12
PigZombie : 36
Rabbit : 18
Sheep : 13
SilverFish : 39
Skelton : 34
SnowBall : 81
SnowGolem : 21
Spider : 35
Squid : 17
Villager : 16
Wolf : 14
Zombie : 32
ZombieVillager : 44 ##updates ß1.0.0... First.
ß1.1.0...・When the player tap NPC, It sends Message.
・Change option in a game with /cn opt.
・Save yaw and pitch.
・fix when you delete the player NPC, It clashes.
v1.1.1...Add #1(Dont use!)
v1.1.2...Fixed bug and add #1
v1.1.3...Fixed bug(When you tap NPC, it gets your skin)