Your first NPC
A model NPC
- Make or download a model in Blockbench and save it as
.bbmodel. Give its animations clear names, for exampleidleandinteract. - Put the file in
plugins/AnimatedBB/models/, for examplemodels/guard.bbmodel. - Load it:The first time, its textures are uploaded to MineSkin; the console shows the progress.
/abb models reload - Stand where the NPC should be and create it:
/abb create guard model guardguard(the first one) is the NPC's id;modelis its type;guard(the last one) is the model's name. - Choose its animations:The first line loops
/abb animation guard idle idle /abb animation guard interact waveidleall the time; the second playswavewhen it is clicked.
A normal NPC
A player NPC with a skin, from a player name or an image URL:
/abb create steve normal NotchMake it do something when clicked
/abb interaction guard right add [message] <green>Halt, {player}!
/abb interaction guard right add [playsound] entity.villager.no 1 1See Interactions for everything it can do.
Fine tuning
| Command | Does |
|---|---|
/abb move_here guard | Moves it to you |
/abb rotate guard 90 | Turns it |
/abb setscale guard 1.5 | Bigger or smaller |
/abb lookclose guard 6 | It turns to look at players within 6 blocks |
/abb setname guard <gold>Guard | Its name over the head |
/abb editor guard | A menu with all of it |