Skip to main content
CreativeFun - Logo

Contents

Creating NPC's

Creating NPC's

Hi everyone,

Donator [$45] can now create up to 5 NPC's on each Creative server! Donator [$55] can now create up to 10 NPC's on each Creative server! This post will explain how to create an NPC, how to change the skin, how to change the name, how to give your NPC a message, how to make your NPC run a command, how to make your NPC head follow other players and how to change your NPC to different mobs in the game. Only the plot owner can create an NPC.

Creating an NPC
In this example I'm going to use /npc create Super
This will create an NPC called Super:

Changing the display name of an NPC
In this example I'm going to use /npc displayname Super <rainbow>Friendly Citizen
If you want to use hex codes for an NPC please use this website to create them in the correct format, &# will not work! This plugin uses a different method for translating hex colors but this website will be able to give you the necessary format: https://webui.advntr.dev/ Example: <color:#70ffcb>
Super is the name of the NPC I created and Friendly Citizen is the display name I want to give it:

Changing the skin of an NPC
In this example I'm going to use /npc skin Super JBerthh
This will set the skin of my NPC to become JBerthh's skin instead:

Making an NPC head follow players
In this example I'm going to use /npc turnToPlayer Super true
This will make the NPC's head follow players who come nearby:

Giving equipment to an NPC
You can customise the chest, feet, head, legs, mainhand and offhand slot of an NPC.
In this example I want the NPC to hold a diamond sword, to achieve this I'm going to hold a diamond sword in my hand and use /npc equipment Super mainhand
This will set the NPC to hold a diamond sword in its mainhand:

Setting the NPC message and command
In this example I'm going to use /npc message Super <gray>Hello! I'm your friendly guide to this plot. Would you like to visit the main hub?</gray> <green><hover:show_text:'<green>Yes</green>'><click:run_command:'/waypoint Hub'>[Yes]</click></hover></green> <red>[No]</red>
Use this website to add color and commands to your NPC's message: https://webui.advntr.dev/
This will make the NPC send the message in chat when a player right clicks on the NPC. I have added click events to my message so clicking on the [Yes] will run the /waypoint Hub command for the player:

When a player right clicks on the NPC it will trigger the NPC message that you set:

I made it so that clicking on [Yes] in the NPC message will trigger the /waypoint hub command for the player:

Moving the NPC to a different location
In this example I'm going to use /npc movehere
This will move the NPC to where I'm standing:

Changing the NPC from a player to a mob
In this example I'm going to use /npc type Super ender_dragon
These are the following things you can change your NPC into: allay, armor_stand, axolotl, bat, bee, blaze, boat, camel, cat, cave_spider, chest_boat, chest_minecart, chicken, cod, command_block_minecart, cow, creeper, dolphin, donkey, dragon_fireball, drowned, elder_guardian, end_crystal, ender_dragon, enderman, endermite, evoker, eye_of_ender, fireball, fox, frog, furnace_minecart, ghast, giant, glow_item_frame, glow_squid, goat, guardian, hoglin, hoper_minecart, horse, husk, illusioner, iron_golem, item_frame, leash_knot, llama, magma_cube, minecart, mooshroom, mule, ocelot, panda, parrot, phantom, pig, piglin, piglin_brute, pillager, player, polar_bear
This will change the NPC from being a player and it will now become what I specified, in this example it has become an ender dragon:

Making an NPC glow
In this example I'm going to use /npc glowing super true
This will make the NPC have a glowing effect:

You can change the glowing color of an NPC too, to do this use /npc glowingcolor [npc name] [color]
In this example I'm going to use /npc glowingcolor super green

How to view all of your NPC's
In this example I am going to use /npc list
This will list the names of every NPC I have created:

How to remove an NPC
In this example I am going to use /npc remove Super
This will remove the NPC I created: