Minecraft / Data Packs

Interactive NPC's

  • 5
  • 6
  • comment
  • playlist_add
  • share
  • more_horiz
avatar oedze
Level 11 : Journeyman Miner
1

Features:

This datapack adds NPC's in the game using Armor Stands.

The NPC's can do the following things:
  • Walk Paths, Including stairs and diagonal paths
  • Activate redstone
  • Look at you when you are close
  • Talk to you when you are close
  • Force you to look at them

Usage:

To start type: /function npc:menu
This will bring 2 options, Create NPC and Get NPC Edit tool

Use create NPC to place a armor stand on the position you are standing.
Use Get NPC Edit tool to get a Carrot on a stick.

When you have your NPC in the world, you can dress them up however you like.

To enable features of the NPC, Aim at the NPC and Right click with the carrot on a stick.
The NPC should be highlighted
To deselect, click somewhere else with the carrot on a stick.
Don't use the right click to close to the armor_stand, you will just put the carrot on a stick in the armor stand's hands.

Different options are available when the menu opens
you can
  • Enable or disable the walking ability
  • Start the walking(Only needed when it doesn't start walking yet after you enable it)
  • Enable or disable the Looking ability
  • Enable or disable the Talking ability
  • Change the message to tell when player gets near.
  • Enable or disable the Forced looking ability
If you selected an armor stand that isn't a NPC yet. it will ask you if you want to make the selected armor stand a NPC

Making Pathways:

Making pathways is easy
The armor stand will follow magenta glazed terracotta(The one with arrows) that is placed below the block it's standing on.
Simply lay down the path and it will start following it(If walking is enabled)
Example:


If you want to force the NPC to walk in the middle of the block, use pistons at the side of the pathway to force them to the center
example:


To create Diagnoal pathways, use Purple Glazed Terracotta
Example:


You can create stairs using Lapis, Iron, diamond and emerald blocks
Example:


You can also create half block stairs
example:


To use redstone in your Pathways, Place red wool under the Path,, when a NPC walks over it, it will replace all the red wool in a 3x3 area around itself to redstone blocks. It will replace all redstone blocks that are in the outer 5x5 ring with red wool

Example:

You can use this to make a simple door, or to make other redstone contraptions activate
Example:


If you want to delete a NPC on a Path, you can put a obsidian blok underneat the Path
Example:

Extra's


All NPC's behavior is dependent on the Tags they are giving
These are the Tags. You can use them to summon in armor stands of you own with specific behavior.

NPC -> Used on all the npc armor stand, needs to be on all armor stand you want to make NPC
Walker -> Give the ability to walk over pathways
Looker -> Gives the ability to look at the nearest player
Talker -> Gives the ability to talk
forcelook -> Forces you to look to the armor stand (THIS DOESN"T WORK IN MULTIPLAYER CORRECTLY)

The next few tags are used to define what the NPC is currently doing, it will autoswitch to one of those states
Walking, Looking, Talking.

The NPC's will always use this order: Walk, Talk, Look.

If you want to change the text of what the NPC's are saying, you can change the taglines score.
There are 10 basic taglines, you can add more in the "taglines.mcfunction" file, make sure you change the score it is detecting

Questions and Suggestions


If you have any questions or suggestions to improve or add functionality. Please use this forum post, i will try to answer as soon as possible.

Have fun!
Progress100% complete
Game VersionMinecraft 1.14
Tags

0 replies

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome