Types: Difference between revisions

From Citizens Wiki

(Saving, still editing though.)
 
No edit summary
 
(19 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| border="1" style="color:black;" cellpadding="3" cellspacing="0" width="100%"
To create a different type of NPC (besides human), just use the --type flag.
! width="15%" | Type
 
! width="25%" | Image
''<code>/npc create 'npc name' --type pig -b</code>
! width="60%" | Details
 
|-
This would make a baby pig. Leave off the -b to create an adult.
| Player
 
| [[File:PlayerNPC.png]]
To change the type of an existing NPC, use
| Appears to the clients as a regular player. 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.
 
|-
''<code>/npc type pig</code>
| Pig
 
| [[File:PigNPC.png]]
You can use any Spigot entity type: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html
| Appears to the clients as a pig. Movable by pushing into it (fix for that coming soon). Saddle can't be adjusted.
|-
| Chicken
| [[File:ChickenNPC.png]]
| Appears to the clients as a chicken. Movable by pushing into it (fix for that coming soon). Will flap it's wings when falling (spawns in air, pushed, etc).
|-
| Sheep
| [[File:SheepNPC.png]]
| Appears to the clients as a chicken. Movable by pushing into it (fix for that coming soon). Color currently isn't adjustable.
|-
| Cow
| [[File:CowNPC.png]]
| Appears to the clients as a cow. Movable by pushing into it (fix for that coming soon).
|-
| Mooshroom
| [[File:MCowNPC.png]]
| Appears to the clients as a Mooshroom cow. Movable by pushing into it (fix for that coming soon).
|-
| Creeper
| [[File:CreeperNPC.png]]
| Appears to the clients as a pig. Movable by pushing into it (fix for that coming soon). Lightning can't be adjusted.
|-
|}

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