Types: Difference between revisions

From Citizens Wiki

No edit summary
No edit summary
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
To create a different type of NPC (besides human), just use the --type flag.
To create a different type of NPC (besides human), just use the --type flag.


<code>/npc create 'npc name' --type pig -b</code>
''<code>/npc create 'npc name' --type pig -b</code>


This would make a baby pig.  Leave off the -b to create an adult.
This would make a baby pig.  Leave off the -b to create an adult.


To change the type of an existing NPC, use


{| border="1" style="color:black;" cellpadding="3" cellspacing="0" width="100%"
''<code>/npc type pig</code>
! width="15%" | Type
! width="25%" | Image
! width="60%" | Details
|-
| PLAYER
| [[File:PlayerNPC.png]]
| Name that is assigned is placed above it's head, and it has a [[Skins|skin]], just like other players. The name color can be adjusted by putting & in front of the name (note: this will reset its skin to the default skin).
|-
| PIG
| [[File:PigNPC.png]]
| Can have a saddle placed and removed from it.
|-
| CHICKEN
| [[File:ChickenNPC.png]]
|
|-
| SHEEP
| [[File:SheepNPC.png]]
| Can toggle it as sheared and change its wool color.
|-
| COW
| [[File:CowNPC.png]]
|
|-
| MUSHROOM_COW
| [[File:MCowNPC.png]]
|
|-
| CREEPER
| [[File:CreeperNPC.png]]
| Can toggle it as powered.
|-
| ENDERMAN
| [[File:EndermanNPC.png]]
| Can have its carried material edited.
|-
| ENDER_DRAGON
| [[File:EnderdragonNPC.png]]
| Jumping on top will cause it to spin rapidly. All clients within render distance will see a "Boss Health" bar at the top of their screen (this is not fixable server-side).
|-
| BLAZE
| [[File:BlazeNPC.png]]
|
|-
| GHAST
| [[File:GhastNPC.png]]
|
|-
| GIANT
| [[File:GiantNPC.png]]
|
|-
| MAGMA_CUBE
| [[File:MagmaCubeNPC.png]]
|
|-
| OCELOT
| [[File:OzelotNPC.png]]
|
|-
| ZOMBOE_PIG
| [[File:PigZombieNPC.png]]
|
|-
| SILVERFISH
| [[File:SilverfishNPC.png]]
|
|-
| VILLAGER
| [[File:VillagerNPC.png]]
| Can set profression with /npc profression
|-
| SQUID
| [[File:BlazeNPC.png]]
|
|-
| SNOWMAN
| [[File:SnowmanNPC.png]]
|
|-
| IRON_GOLEM
| [[File:VillagerGolemNPC.png]]
|
|-
| WOLF
| [[File:WolfNPC.png]]
|
|-
| SKELETON
| [[File:Skeleton.png]]
|
|-
| SLIME
| [[File:Slime.png]]
|
|-
| SPIDER
| [[File:Spider.png]]
|
| CAVE_SPIDER
| [[File:CaveSpider.png]]
|
|-
|-
|}


==Known Bugs with Mob NPCs==
You can use any Spigot entity type: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html
* Can be pushed by bumping into it.
 
{{NavBox}}

Latest revision as of 02:35, 3 October 2019

To create a different type of NPC (besides human), just use the --type flag.

/npc create 'npc name' --type pig -b

This would make a baby pig. Leave off the -b to create an adult.

To change the type of an existing NPC, use

/npc type pig

You can use any Spigot entity type: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html