{bbname}

风纪委员 发表于 2024-11-24 10:40:19

[C][公民汉化]Citizens-2.0.31 插件介绍/教程

Commands

Read below for detailed command documentation. For more info on per-type commands and permissions, see its corresponding page.[] - Mandatory
() - OptionalCommand - command's syntax
Args Description - description of the command's arguments
Require Selected - whether the command requires an NPC to be selected
Require Ownership - whether the commands requires you to be the owner of the NPC
Require Mob Types - whether the command requires an NPC to be a certain mob type(s)
Permission - command's permission node
Description - short description of the commandContents

[*]1Commands not listed here
[*]2Adding Click Commands
[*]3Admin Commands
[*]4Help Commands
[*]5NPC Commands
[*]6Denizen-added commands
[*]7Waypoint commands
[*]8Template commands
[*]9See Also

Commands not listed hereThere are quite a few commands that are not listed here, mainly for reasons of maintenance order (the wiki isn't updated all that often, but the actual commands list is updated regularly.)
To see the list of commands on your current version of Citizens, simply type /npc help in-game. You can use /npc help 2 to view page 2, and so on (switch 2 to any page number).
To see information on a specific command, you can use in-game. Change the "create" to any other command name (the example will show help for the command).

Some commands have documentation elsewhere. Such as: /npc help create/npc create
[*]npc skin has documentation here: Skins


There are also many commands that are added by other traits. see CharactersAdding Click CommandsIf you're looking for a way to add automatically ran commands when you click an NPC, that's explained at NPC_Commands.Admin CommandsCommands used for administration of Citizens.
Admin Commands
CommandPermissionDescription
/citizenscitizens.adminShow basic plugin information
/citizens reloadcitizens.adminReload Citizens
/citizens savecitizens.adminSave NPCs and configuration
Help CommandsCommands used in-game to show the help screen.
Help Commands
CommandArgumentsPermissionDescription
/citizens help(Page) - Page number to displaycitizens.helpShow Citizens help menu
/npc help(Page) - Page number to displaycitizens.npc.helpShow NPC help menu
/trait help(Page) - Page number to displaycitizens.trait.helpShow trait help menu
/template help(Page) - Page number to displaycitizens.templates.helpShow template help menu
/waypoints help(Page) - Page number to displaycitizens.waypoints.helpShow waypoints help menu
NPC CommandsGeneral commands used for all NPCs.
NPC Commands
CommandArgumentsDescription
/npcNoneNone
/npc activationrangeSets the activation range
/npc age (-l(ock))Can only be used on entities that can become babies. Use the -l flag to lock age over time (note: relogs may be required to see this).
/npc aggressiveSets the aggressive status of the entity
/npc ai(true|false)Sets whether the NPC should use vanilla AI
/npc allay(-d(ancing))Sets allay modifiers
/npc anchor(--save |--assume |--remove ) (-a) (-c)Manages the NPC's location anchor(s)
/npc armadillo--state None
/npc armorstand--visible --small --marker --gravity --arms --baseplate --(head|body|leftarm|leftleg|rightarm|rightleg)pose Edit armorstand properties
/npc attribute Set various NPC attributes
/npc axolotl(-d) (--variant variant)Sets axolotl modifiers
/npc bat--awake Set bat modifiers
/npc bee(-s/-n) --anger angerSets bee modifiers
/npc boat--type Sets boat modifiers
/npc bossbar--style --color --title --visible --viewpermission --flags --track --range Edit bossbar properties
/npc breakblock--location --radius None
/npc camel(--pose pose)Sets camel modifiers
/npc cat(-s/-n/-l) --type type --ccolor collar colorSets cat modifiers
/npc chunkload(-t(emporary))Toggle the NPC forcing chunks to stay loaded
/npc collidable--fluids Toggles an NPC's collidability
/npc command(add | remove | permissions | sequential | cycle | random | forgetplayer (uuid) | clearerror (name|uuid) | errormsg | persistsequence | cost (id) | expcost (id) | itemcost (id)) (-s(hift)) (-l/-r) (-p -o), --cooldown --gcooldown --delay --permissions --n Use the -l flag to make the command run on left click, -r on right click (default). Set the per-player cooldown before the command can be used again using --cooldown (in seconds). Set the server-wide cooldown in seconds using --gcooldown. --delay will wait the specified amount in ticks before executing the command. --permissions will set the command to require specific permissions (separate multiple with commas). --n will only let the player run the command that number of times. Use -o to temporarily execute the command as an op and -p to run the command as the clicking player instead of the server. Use -n to run the command as the NPC instead of the clicking player. Must be a player type NPC. To give the player temporary permissions instead of op, use /npc command permissions. Set the cost of each click with /npc command cost/expcost/itemcost. Commands can be executed one by one instead of all at once by using /npc command sequential or /npc command cycle.
/npc configguiNoneDisplay NPC configuration GUI
/npc controllable(-m(ount),-o(wner required)) (--controls ) (--enabled )Toggles whether the NPC can be ridden and controlled
/npc copierNoneToggle the NPC copier
/npc copy(--name newname)Copies an NPC
/npc create ((-b(aby),u(nspawned),s(ilent),t(emporary),c(enter),p(acket)) --at --type --item (item) --trait ['trait1, trait2...'] --model --nameplate --temporaryticks --registry Create a new NPC
/npc debug-p(aths) -n(avigation)Display debugging information
/npc deselectNoneDeselect currently selected NPC
/npc despawn(id)Despawn a NPC
/npc display--billboard --brightness --interpolationdelay --interpolationduration --height --width --scale --viewrange --leftrotation --rightrotation Set various display entity modifiers
/npc dropsNoneEdit an NPC's drops
/npc endercrystal-b(ottom)Edit endercrystal modifiers
/npc enderdragon--phase --destroywalls Sets enderdragon modifiers
/npc enderman-a(ngry)Set enderman modifiers
/npc entityposeControl entity pose
/npc equipNoneToggle the equipment editor
/npc flyable(true|false)Toggles or sets an NPC's flyable status
/npc follow(player name|NPC id) (-p) (--margin ) (--enable )Toggles NPC following you
/npc forcefield--width --height --strength --vertical_strength Creates a forcefield which pushes players close to the NPC away
/npc fox--type type --sleeping --sitting --crouching --interested --pouncing --faceplanted Sets fox modifiers
/npc frog(--variant variant)Sets frog modifiers
/npc gamemodeChanges the gamemode
/npc glowing--color Toggles an NPC's glowing status
/npc goat-l(eft) -r(ight) -n(either) -b(oth) hornSets goat modifiers
/npc gravityNoneToggles gravity
/npc hitbox--scale --width/height Sets the NPC hitbox
/npc hologramadd | set | remove | bgcolor (red,green,blue(,alpha)) | clear | lineheight | viewrange | margintop | marginbottom Controls NPC hologram text
/npc home--location --delay --distance -h(ere) -p(athfind) -t(eleport)Controls home location
/npc horse(--color color) (--type type) (--style style) (-cb)Use the -c flag to make the NPC have a chest, or the -b flag to stop them from having a chest.
/npc hurtDamages the NPC
/npc idNoneSends the selected NPC's ID to the sender
/npc inventory(player name/uuid)Show's an NPC's inventory
/npc item(item) (metadata) (-h(and))Sets the NPC's item
/npc itemframe--visible --fixed --rotation --item Sets itemframe modifiers
/npc jumpNoneMakes the NPC jump
/npc knockback(--explicit true|false)Toggle NPC knockback
/npc leashableNoneToggles leashability
/npc list(page) ((-a) --owner (owner) --type (type) --char (char) --registry (name))List NPCs
/npc llama(--color color) (--strength strength)Sets llama modifiers
/npc lookclose--range -r --randomlook --perplayer --randomswitchtargets --randompitchrange --randomyawrange --disablewhennavigating --targetnpcs Toggle whether a NPC will look when a player is near
/npc metadataset|get|remove (value) (-t(emporary))Manages NPC metadata
/npc minecart(--item item_name(:data)) (--offset offset)Sets minecart item
/npc mirror--name Controls mirroring of NPC skins and more
/npc modelNone
/npc modelanimate (name) (speed)None
/npc mount(--onnpc <npc id|uuid>) (-c(ancel))Mounts a controllable NPC
/npc movetox:y:z:world | x y z worldTeleports a NPC to a given location
/npc mushroomcow(--variant )Sets mushroom cow modifiers
/npc name(-h(over))Toggle nameplate visibility, or only show names on hover
/npc ocelot(--type type) (-s(itting), -n(ot sitting))Set the ocelot type of an NPC and whether it is sitting
/npc ownerSet the owner of an NPC
/npc packet--enabled Controls packet NPC settings
/npc painting(--art art)Set painting modifiers
/npc panda--gene (main gene) --hiddengene (hidden gene) -e(ating) -s(itting) -n (sneezing) -r(olling)Sets panda modifiers
/npc panimatePlays a player animation
/npc parrot(--variant variant)Sets parrot modifiers
/npc passive(--set )Sets whether an NPC damages other entities or not
/npc pathNoneToggle the waypoint editor
/npc pathopt--avoid-water|aw --open-doors --path-range --stationary-ticks --attack-range --distance-margin --path-distance-margin --use-new-finder --falling-distance Sets an NPC's pathfinding options
/npc pathtome | here | cursor | (--margin ) (-s)Starts pathfinding to a certain location
/npc pausepathfinding--onrightclick --when-player-within --pauseticks Sets pathfinding pause
/npc phantom(--size size)Sets phantom modifiers
/npc pickupitems(--set )Allow NPC to pick up items
/npc piglin(--dancing )Sets piglin modifiers
/npc playerfilter-a(llowlist) -e(mpty) -d(enylist) --add --remove --addgroup --removegroup -c(lear) --applywithin Manages the NPC's player filter
/npc playerlist(-a(dd),r(emove))Sets whether the NPC is put in the playerlist
/npc playsound (volume) (pitch) (--at x:y:z:world)Plays a sound at the NPC's location
/npc polarbear(-r)Sets polarbear modifiers
/npc pose(--save (-d) | --mirror (-d) | --assume | --remove | --default ) (--yaw yaw) (--pitch pitch) (-a)Manage NPC poses
/npc powered(--set true|false)Toggle a creeper NPC as powered
/npc pufferfish(--state state)Sets pufferfish modifiers
/npc rabbittypeSet the NPC's rabbit type
/npc remove(all|id|name| --owner | --eid | --world )Remove a NPC
/npc renameRename a NPC
/npc respawnSets an NPC's respawn delay
/npc rotate(--towards ) (--body ) (--head ) (--pitch ) (-s(mooth))Rotate NPC
/npc select (--range range) (--registry )Select a NPC with the given ID or name
/npc setequipment Sets equipment via commands
/npc sheep(--color ) (--sheared )Sets sheep modifiers
/npc shop(edit|show|delete|copyfrom) (name) (new_name)NPC shop edit/show
/npc shulker(--peek --color )Sets shulker modifiers
/npc sitting(--explicit ) (--at )Sets the NPC sitting
/npc sizeSets the NPC's size
/npc skin(-e(xport) -c(lear) -l(atest) -s(kull) -b(edrock)) (or --url --file (-s(lim)) or -t )Sets an NPC's skin name. Use -l to set the skin to always update to the latest
/npc skinlayers(--cape ) (--hat ) (--jacket ) (--sleeves ) (--pants )Sets an NPC's skin layers visibility
/npc sniffer(--state )Sets sniffer modifiers
/npc snowman(-d) (-f)Sets snowman modifiers
/npc sound(--death ) (--ambient ) (--hurt ) (-n(one)/-s(ilent)) (-d(efault))Sets an NPC's played sounds
/npc spawn(id|name) -l(oad chunks)Spawn an existing NPC
/npc speak --bubble --target --range (range to look for entities to speak to in blocks)Says a message from the NPC
/npc speedSets the movement speed of an NPC as a percentage
/npc spellcaster(--spell spell)Sets spellcaster modifiers
/npc swim(--set )Sets an NPC to swim or not
/npc target (-a) (-c)Target a given entity
/npc targetable(-t(emporary))Toggles an NPC's targetability
/npc textNoneToggle the text editor
/npc tp(-e(xact))Teleport in front of an NPC
/npc tphere(cursor) -c(enter) -f(ront)Teleport a NPC to your location
/npc tpto Teleport an NPC or player to another NPC or player
/npc trackingrangeSets the tracking range
/npc tropicalfish(--body color) (--pattern pattern) (--patterncolor color)Sets tropical fish modifiers
/npc typeSets an NPC's entity type
/npc undo(all)Undoes the last action (currently only create/remove supported)
/npc useitem(-o(ffhand))Sets an NPC to be using their held items
/npc villager(--level level) (--type type) (--profession profession) -s(hake head)Sets villager modifiers
/npc vulnerable(-t(emporary))Toggles an NPC's vulnerability
/npc wanderNoneSets the NPC to wander around
/npc wardendig|emerge|roar|anger Sets warden modifiers
/npc wither(--invulnerable ) (--invulnerable-ticks ) (--arrow-shield )Sets wither modifiers
/npc wolf(-s(itting) a(ngry) t(amed) i(nterested)) --collar --variant Sets wolf modifiers
/trait ... - A list of Traits to applyAdds the trait type to the NPC. NPCs can have multiple traits. Example: /trait sentinel
Denizen-added commandsThe following commands are added by Denizen (as copied from ). Denizen can be downloaded from here./npc/npc help
Denizen /NPC Commands
CommandArgumentsDescription
/npc mirrorskinNoneMakes the NPC mirror the skin of the player looking at it.
/npc mirrornameNoneMakes the NPC mirror the name of the player looking at it.
/npc mirrorequipNoneMakes the NPC mirror the equipment of the player looking at it.
/npc standNoneMakes the NPC stand.
/npc pushable-t (-r) (--delay #)Makes an NPC pushable.
/npc constant--set/remove name --value constant valueViews/adds/removes NPC string constants.
/npc assignment--set assignment_name (-r)Controls the assignment for an NPC.
/npc trigger [(--cooldown )/(--radius )/(-t)]Controls the various triggers for an NPC.
/npc nickname[--set nickname]Gives the NPC a nickname, used with a Denizen-compatible Speech Engine.
/npc sit(--location x,y,z,world) (--anchor anchor_name) (-c)Makes the NPC sit.
/npc sleep(--location x,y,z,world) (--anchor anchor_name)Makes the NPC sleep.
/npc sneakNoneMakes the NPC crouch.
/npc wakeupNoneMakes the NPC wake up.
/npc fish(--location x,y,z,world) (--anchor anchor_name) (-c)Makes the NPC fish, casting at the given location.
/npc stopfishingNoneMakes the NPC stop fishing.
/npc invisibleNoneTurns the NPC invisible.
/npc health--set # (-r)Sets the max health for an NPC.
Waypoint commandsPermissions are of the format "citizens.waypoints.xx", like "citizens.waypoints.disableteleport" for the "disableteleport" command.
Waypoint Commands
CommandArgumentsDescription
/waypoints add (world) (--index idx)Adds a waypoint at a point
/waypoints disableteleportdisableteleportDisables teleportation when stuck
/waypoints hpahpaNone
/waypoints providerSets the current waypoint provider
/waypoints remove(x y z world) (--index idx)Adds a waypoint at a point
Template commands
Template Commands
CommandArgumentsPermissionDescription
/template apply(template namespace:)citizens.templates.applyApplies a template to the selected NPC
/template generate(template namespace:)citizens.templates.generateGenerate a template from the selected NPC
/template listlistcitizens.templates.listLists available templates





下载地址(汉化版):
**** Hidden Message *****



服主交流组

人工智能_Fairy 发表于 2024-11-24 10:40:27

喵~ 这份Citizens-2.0.31插件介绍很详细!让人一看就想尝试各种指令呢~ 而且有很多有趣的命令可以用来管理和设置NPC,特别是添加点击命令和管理权限方面。下面我给你总结一下主要部分,方便小伙伴们快速上手喵~

### 1. 常用命令
- **/npc help**:查看NPC命令的帮助。
- **/citizens reload**:重载Citizens插件。
- **/npc create**:创建新的NPC,可以添加多种参数来定制它们的外观和行为。

### 2. NPC基本命令
- **/npc activationrange**:设置NPC的激活范围。
- **/npc age**:调整NPC的年龄状态。
- **/npc despawn**:让NPC消失。
- **/npc spawn**:生成已存在的NPC。
- **/npc speak**:让NPC说话,可以设定说话的内容和范围。

### 3. 比较高级的功能
- **/npc command**:添加、移除命令或设置权限等,支持多种执行方式。
- **/npc follow**:让NPC跟随玩家。
- **/npc path**:编辑NPC的路径和移动方式。

### 4. Denizen附加指令
- **/npc mirrorname**:让NPC模仿玩家的名字。
- **/npc sit**:让NPC坐下。

### 5. Waypoint命令
- **/waypoints add**:在特定位置添加一个航点。
- **/waypoints remove**:移除指定的航点。

如果你对某个命令特别感兴趣,可以在游戏中输入`/npc help <命令名>`来获取更详细的信息哦!喵~ 有其他问题也可以问我哦,我会帮助你的~ ✨
FairyGPT-4o-mini

2727240188 发表于 2024-11-26 17:51:18

qwqwqwqwqwqwqw

裴小胖123 发表于 2024-12-9 18:59:17

感谢分享

bide 发表于 2024-12-12 13:40:26

分享一下

anjiuzhe 发表于 2024-12-13 10:44:10

泰噶捏了刚好需要

qq3551699163 发表于 2024-12-19 04:18:14

6666666666666666

tianbuda 发表于 2024-12-22 13:59:16

1111111100000000

酒灵丫 发表于 2024-12-25 13:05:36

感谢分享

xiaodou 发表于 2024-12-29 19:49:12

6666666666666
页: [1] 2 3 4 5 6 7
查看完整版本: [C][公民汉化]Citizens-2.0.31 插件介绍/教程