Custom NPCs in Vanilla Minecraft Command Block Creation 1.8

Опубликовано: 15 Июль 2026
на канале: theusaf
15,859
94

Hey guys! Heres a little something I made for you! They are Custom NPCs! When you rightclick them, they will say something!

Here are the commands!
/setblock ~ ~1 ~ redstone_block 0 destroy
/scoreboard objectives add YourObjective stat.talkedToVillager
/execute @a[score_YourObjective_min=1] ~ ~ ~ /execute @e[type=YourNPCMob,name=YourName,r=3] ~ ~ ~ /tellraw @a[r=10] {text:"Your Text",color:Your color}
/scoreboard players set @a[score_YourObjective_min=1] YourObjective 0
/summon Villager ~ ~ ~ {NoAI:1,CustomName:"YourName",Offers:{Recipes:[]}}
NoAI is optional. If you want your NPC to move around, get rid of the 'NoAI'
Also, If you want to be able to trade with the villager, you can edit its trades.
See my tutorial on villager trades:    • Video  

Make sure you don't do this: name="YourName" as that will screw things up

Created with TechSmith Snagit for Google Chrome™
http://goo.gl/ySDBPJ

Website: http://theusaf.weebly.com/