Minecraft Blogs / Tutorial

How To Create Custom NPCs In Vanilla 1.9

  • 27,423 views, 6 today
  • 12
  • 8
  • 10
BlueNinjaNRG's Avatar BlueNinjaNRG
Level 47 : Master Ninja
25
This will teach you how to create your own custom NPCs with armor stands.

Step #1
Get a Command Block

/give @p minecraft:command_block

Step #2
Place the following command in a Impulse Command Block (normal command block).
Change the word "NAME" to what you want the name of the NPC to be (example Jay).
Then activate it.

/summon ArmorStand ~ ~1 ~ {ShowArms:1,CustomNameVisible:1,CustomName:NAME}

Step #3
You should now have an armor stand named what you changed "NAME" to.
Put armor on it and a head (optional give it a block or tool).

Step #4
Now place another Impulse Command Block (normal command block).
Place the following command below in it.
Change the word "NAME_" to what you want with _ at the end (example Jay_).
Then change where it says "MOB" to the minecraft mob you want you NPC to have the AI of (example villager, zombie, creeper)

/summon MOB ~0 ~1 ~0 {CustomName:NAME_,CustomNameVisible:1,Silent:1}

Step #5
Now place a Repeater Command Block (purple command block)
Set it from "Needs Redstone" to "Always Active".
Then Place the following command below.
Change "NAME" to what the armor stands name is (example Jay) and also change "NAME_" to what the MOB name is (example Jay_)

/tp @e[name=NAME] @e[name=NAME_]

Step #5
Place a Chain Command Block (green command block) in front of the Repeater Command Block (purple command block) having the arrow on the Repeater Command Block pointing into the Chain Command Block.
Set the Chain Command Block from "Needs Redstone" to "Always Active".
Finally now place the final command below in the Chain Command Block.
Then change "NAME_" to what you named the minecraft mob (exmple Jay_).

/effect @e[name=NAME_] minecraft:invisibility 1 1

Now you should have your very own NPC in your world.
Hope this helped you out a lot.
If the commands did not work tell me which one did not work and I will fix it as soon as possible.
thank you.
My YouuTube Channel:
www.youtube.com/channel/UCwpYDwE5ydjsFBScY5m4HlQ
CreditMau5Craft
Tags

Create an account or sign in to comment.

1
06/21/2018 1:43 pm
Level 1 : New Miner
Besteverminer
Besteverminer's Avatar
Why is this even a tutorial? It does nothing, only summoning a pushable Armor Stand.
1
06/23/2018 2:35 am
Level 1 : New Miner
TheGreatMelon
TheGreatMelon's Avatar
I haven't tested this command line yet.
But honestly, you are looking at a tutorial for Minecraft 1.9 when the latest release is currently 1.12.2. What do you expect?
1
01/03/2018 7:29 pm
Level 1 : New Miner
Itz_Pup
Itz_Pup's Avatar
: )
1
12/22/2016 3:27 pm
Level 1 : New Miner
Mishi_Kiti
Mishi_Kiti's Avatar
Bruh, Thanks a TON for this!!!
1
11/02/2016 9:12 am
Level 34 : Artisan Engineer
Gametron13
Gametron13's Avatar
This sounds really interesting. I will try it and see if it works. :)
1
09/04/2016 9:05 pm
Level 1 : New Miner
WhatACreeperIs
WhatACreeperIs's Avatar
omg so funny ;D
1
05/06/2016 3:28 am
Level 70 : Legendary Engineer
Bertiecrafter
Bertiecrafter's Avatar
This is a blog about nothing really...
Idk why you would make your NAME_ invisible, because that refers to the mob npc.

And instead of everything you wrote, you can do:
/summon MOB ~ ~ ~ {NoAI:1}
1
05/07/2016 5:53 am
Level 16 : Journeyman Engineer
katdepoes
katdepoes's Avatar
You doesn't want to see the mob, thats only for the AI. The armorstand is what you see as your npc.
1
05/07/2016 7:41 am
Level 70 : Legendary Engineer
Bertiecrafter
Bertiecrafter's Avatar
Oh, I see... nice :D
1
05/06/2016 2:46 am
Level 22 : Expert Network
YTCereal
YTCereal's Avatar
Hey human, i have a real challenge for you

make a smoke bomb.
with detecting name of snowball (not just execute)
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome