NPCs - A plugin that adds simple custom NPC's to your worlds


#1

This is a discussion topic for the Ore project, NPCs. View the full project on Ore for downloads and more information.


NPCs

This plugin will allow you to create NPCs and edit them very easily. No configuration required.

You can make any type of NPC, from humans till ocelots and from zombies till squids. Many options can be set to an NPC, for example wether an NPC will look towards nearby players, human's skin, name, glowing, sitting, slime size, and many more. All of this can be applied to an NPC with one easy-to-use ingame menu.

If you want to edit an NPC, you have to shift and right-click it. Then when you type '/npc', you will receive a click-style menu, with every possible setting, extremely easy to use. When you create an NPC, the menu will automatically appear.



Features:

  • Drag-and-drop installation
  • No configuration required
  • Easy-to-use NPC menu
  • Many NPC Options
  • NPC Interaction system:
    • Player Commands
    • Console Commands
    • Messages
    • Delays
    • Pauses
    • Conditions
    • Choices
    • Goto's
  • bStats Metrics
  • PlaceholderAPI integration (optional but recommended)

Planned Features:

  • Baby Option (AgeData Unimplemented)
  • Walking (AI Goals unimplemented)
  • Villager Trades

Actions:

NPC's can be given certain actions to execute when someone clicks on them. It works somewhat like how Windows batch or Linux sh works.

Currently there are 8 types of actions:

Message - Sends a message.
Player Command - Makes the player run a command.
Console Command - Makes the console run a command.
Delay - Waits for x ticks and then continues.
Pause - Stops running Actions, so the player must click the NPC again.
Goto - Executes a certain action in the action list.
Choice - Makes the player choose. Each option has a Goto connected to it.
Condition - Requires the player to have something (Items, Levels, etc). It has 2 Goto's connected to it, one for when the condition failed, and one for when it is met.

You can use the PlaceholderAPI to add certain variables to the messages and commands. If you dont use that plugin, you can only use the following placeholders:

%player_name%
%player_uuid%
%player_world%

Commands:
This base command for the plugin is /npc. When doing this command while you have an NPC selected, you will be send the NPC Menu for that NPC. There you can edit all its options and settings through clickable texts.

If you dont have an NPC selected, it will give you some basic info about the plugin and how to create a new NPC. When creating a new NPC, you will automatically be send the NPC Menu.

To create a new NPC:
- Command: /npc create [entitytype]
- Permission: npc.create


Options:
These options will appear on the NPC Menu, only when they are supported by the NPC, e.g. a creeper cant have a certain horse color.

Remove:
- Permission: npc.remove
- Info: Removed the selected NPC.

Copy:
- Permission: npc.copy
- Info: Copies the selected NPC, leaving 2 identical NPC's.

Mount:
- Permission: npc.mount
- Info: Mount the selected NPC.

Move:
- Permission: npc.edit.move
- Info: Moved the selected NPC to your current location.

Deselect:
- Permission: npc.edit.deselect
- Info: Deselects your selected NPC, if you have one.

Name:
- Permission: npc.edit.name
- Info: Rename the selected NPC.

Look:
- Permission: npc.edit.look
- Info: Makes the selected NPC look towards nearby players.

Interact:
- Permission: npc.edit.interact
- Info: Makes the selected NPC interactable (false by default)

Glow:
- Permission: npc.edit.glow
- Info: Makes the selected NPC glow, like if it werehit with a spectral arrow.

Helmet:
- Permission: npc.edit.helmet
- Info: Makes the selected NPC wear the item in your hand.

Chestplate:
- Permission: npc.edit.chestplate
- Info: Makes the selected NPC wear the item in your hand.

Leggings:
- Permission: npc.edit.leggings
- Info: Makes the selected NPC wear the item in your hand.

Boots:
- Permission: npc.edit.boots
- Info: Makes the selected NPC wear the item in your hand.

Hand:
- Permission: npc.edit.hand
- Info: Makes the selected NPC holdthe item in your hand.

OffHand:
- Permission: npc.edit.OffHand
- Info: Makes the selected NPC hold the item in your hand.

Skin:
- Permission: npc.edit.skin
- Info: Set the skin of the selected NPC.

Career:
- Permission: npc.edit.career
- Info: Sets the career of the selected NPC.

Cat:
- Permission: npc.edit.cat
- Info: Sets the Cat Type of the selected NPC.

Horse Style:
- Permission: npc.edit.style
- Info: Sets the Horse Style of the selected NPC.

Horse Color:
- Permission: npc.edit.llama
- Info: Sets the Horse Color of the selected NPC.

Llama:
- Permission: npc.edit.llama
- Info: Sets the Llama Type of the selected NPC.

Size:
- Permission: npc.edit.size
- Info: Sets the size of the selected NPC.

Sit:
- Permission: npc.edit.sit
- Info: Makes the selected NPC sit.

Charge:
- Permission: npc.edit.charge
- Info: Makes the selected NPC charged.

API5 Only:

Zombie:
- Permission: npc.edit.zombie
- Info: Sets the selected NPC's Zombie Type.

Skeleton:
- Permission: npc.edit.skeleton
- Info: Sets the selected NPC's Skeleton Type.

Horse Variant:
- Permission: npc.edit.variant
- Info: Sets the selected NPC's Horse Variant.

#2

A new version has been released for NPCs, it is available for download here.


A plugin that adds simple custom NPC's to your worlds.


#3

A new version has been released for NPCs, it is available for download here.


A plugin that adds simple custom NPC's to your worlds.


#4

Looks like this is unpopular plugin so i can comment and say thanks to you for making this :slight_smile:


#5

A new version has been released for NPCs, it is available for download here.


A plugin that adds simple custom NPC's to your worlds.


#6

A new version has been released for NPCs, it is available for download here.


A plugin that adds simple custom NPC's to your worlds.


#7

A new version has been released for NPCs, it is available for download here.


A plugin that adds simple custom NPC's to your worlds.


#8

Keep up the good work! Is there a reload option that I am missing so we do not have to restart the server when manually editing configs??


#9

You can reload all the NPC's using /sponge plugins reload.


#10

Would it be possible to add the ability to upload Skins into the config folder and then assign the uploaded skins to the NPCs. Found some skins I want to use for some, but it’s really hard to find a player with the skins (and if they change their skin, then it would change it on the NPC) so if we could upload and assign skins, it would be easier to decorate the NPCs to match what they are used for.


#11

is there an eta on the npc’s skins being fixed on bungee servers?


#12

Please add support API 7.0.


#13

Hello,
Is there any possibility of being upgraded to API7?

I will be happy to beta test for you, I am using the Minecraft engine to make a Lovecraft Themed RPG this makes your mod essential.


#14

Looking forward to an update for API 7.0 I will definitely be using this!


#15

If you check the Github you’ll find a release for API7, haven’t used it myself yet.
⛄ NPCs [v3.0.0] - Easiest and Best NPC plugin seems to have more activity and discussion might be best there.


#16

Can you upload the latest version to Ore?