FancyNpcsTutorials
Custom Models
How to apply custom 3D models to npcs
This tutorial shows you how to apply custom 3D models to npcs using BetterModel.
Requirements:
- FancyNpcs (latest version)
- FancyNpcsModel (latest version)
- BetterModel 3.0.2-SNAPSHOT-491 or newer
Custom models
How to apply a custom model to a npc:
- Install the required plugins
- Import models to BetterModel (see BetterModel's documentation for that)
- Make sure your npc is a player npc (
/npc type (npc) player) - Set the custom model:
/npc custom_model (npc) (model name) - Done! Your npc should now have the model you assigned to it
Setting the custom model to @none will remove the model.
Commands that won't work, when the npcs has a custom model:
/npc displayname/npc equipment/npc glowing/npc skin/npc turn_to_player(depends on model)
Animations
This plugin also adds two new actions (for npcs with custom models only) to play animations.
Actions:
play_animation_once: plays the specified animation onceplay_animation_loop: plays the specified animation in a loop
How to add the action: /npc action (npc) (trigger) add play_animation_once (animation name)
There is also a command to play an animation: /npc play_animation (npc) (animation name) [--loop]