This is a discussion topic for the Ore project, NPCs. View the full project on Ore for downloads and more information.
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.
- Drag-and-drop installation
- No configuration required
- Easy-to-use NPC menu
- Many NPC Options
- NPC Interaction system:
- Player Commands
- Console Commands
- bStats Metrics
- PlaceholderAPI integration (optional but recommended)
- Baby Option (AgeData Unimplemented)
- Walking (AI Goals unimplemented)
- Villager Trades
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%
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
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.