- 欢迎来到Minecraft插件百科!
- 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
- 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289
“Citizens/指令”的版本间的差异
Qsefthuopq(讨论 | 贡献) (→Waypoint 指令s) |
小 (→NPC指令) |
||
(未显示1个用户的2个中间版本) | |||
第77行: | 第77行: | ||
| /npc || ''无'' || √ || √ || × || 无 || 显示NPC信息 | | /npc || ''无'' || √ || √ || × || 无 || 显示NPC信息 | ||
|- | |- | ||
− | | /npc age || ''[adult, baby, integer, -l]'' - Adult为成年生物, baby 为幼年生物as baby, integer为生物的年龄, -l 开关是否固定年龄 || √ || √ || √ - COW, SHEEP, CHICKEN, PIG, VILLAGER, OCELOT, WOLF || citizens.npc.age || | + | | /npc age || ''[adult, baby, integer, -l]'' - Adult为成年生物, baby 为幼年生物as baby, integer为生物的年龄, -l 开关是否固定年龄 || √ || √ || √ - COW, SHEEP, CHICKEN, PIG, VILLAGER, OCELOT, WOLF || citizens.npc.age || 修改NPC的年龄 |
|- | |- | ||
− | | /npc anchor || ''anchor (--save [名称], --assume [名称], --remove [名称]) (-a)(-c)'' - 保存一个位置作为 '锚点' which can be assumed via assume [名称] || √ || √ || × || citizens.npc.anchor || | + | | /npc anchor || ''anchor (--save [名称], --assume [名称], --remove [名称]) (-a)(-c)'' - 保存一个位置作为 '锚点' which can be assumed via assume [名称] || √ || √ || × || citizens.npc.anchor || 更改/保存/列出NPC的位置锚点 |
|- | |- | ||
| /npc behaviour || behaviour [脚本] (-r) -- scripts is a comma separated list of script file names to look for, -r flag removes them from the NPC. || √ || √ || × || citizens.npc.behaviour || 添加和移除一个NPC的行为. 行为是可以给NPC执行和添加目标的脚本. 这些可以做任何你能编程或想到的事情! | | /npc behaviour || behaviour [脚本] (-r) -- scripts is a comma separated list of script file names to look for, -r flag removes them from the NPC. || √ || √ || × || citizens.npc.behaviour || 添加和移除一个NPC的行为. 行为是可以给NPC执行和添加目标的脚本. 这些可以做任何你能编程或想到的事情! | ||
第92行: | 第92行: | ||
| /npc despawn || ''(id)'' 取消生成的NPC的ID || √ || √ || × || citizens.npc.despawn || 取消生成一个NPC | | /npc despawn || ''(id)'' 取消生成的NPC的ID || √ || √ || × || citizens.npc.despawn || 取消生成一个NPC | ||
|- | |- | ||
− | | /npc gamemode || ''[gamemode] 游戏模式 '' || √ || √ || PLAYER || citizens.npc.gamemode || | + | | /npc gamemode || ''[gamemode] 游戏模式 '' || √ || √ || PLAYER || citizens.npc.gamemode || 设置玩家类型的NPC的游戏模式. |
|- | |- | ||
| /npc gravity || ''无'' || √ || √ || × || citizens.npc.gravity || 开关NPC的重力. | | /npc gravity || ''无'' || √ || √ || × || citizens.npc.gravity || 开关NPC的重力. | ||
|- | |- | ||
− | | /npc equip || ''无'' || √ || √ || √ - PLAYER, PIG, SHEEP, ENDERMAN || citizens.npc.edit.equip || | + | | /npc equip || ''无'' || √ || √ || √ - PLAYER, PIG, SHEEP, ENDERMAN || citizens.npc.edit.equip ||进入或退出装备编辑器. 可查看 [[Editors#Equipment_Editor|Equipment Editor]] Used for player armor, player and endermen items, sheep color/sheared, and pig saddles. |
|- | |- | ||
− | | /npc list || ''(-a)'' - List all NPCs <br>''(--owner ( | + | | /npc list || ''(-a)'' - List all NPCs <br>''(--owner (NPC主人))'' - Owner <br>''(--type (生物类型))'' - Mob type <br>''(--char (character))'' - Character || × || × || × || citizens.npc.list || 列出符合指定条件的NPC列表 |
|- | |- | ||
| /npc lookclose || ''无'' || √ || √ || × || citizens.npc.lookclose || 切换NPC的注视状态 | | /npc lookclose || ''无'' || √ || √ || × || citizens.npc.lookclose || 切换NPC的注视状态 | ||
第104行: | 第104行: | ||
| /npc moveto || ''--x [x] --y [y] --z [z] --world [world]'' || √ || √ || × || citizens.npc.moveto || The NPC's current location is taken as the base location. Value arguments are used to modify this base. | | /npc moveto || ''--x [x] --y [y] --z [z] --world [world]'' || √ || √ || × || citizens.npc.moveto || The NPC's current location is taken as the base location. Value arguments are used to modify this base. | ||
|- | |- | ||
− | | /npc mount|| ''无'' || √ || √ || × || citizens.npc.mount|| | + | | /npc mount|| ''无'' || √ || √ || × || citizens.npc.mount|| 如果NPC设置为可控制,则骑乘选中的NPC. |
|- | |- | ||
− | | /npc owner || ''(name)'' - | + | | /npc owner || ''(name)'' - 新主人的名字, 设置为 "server" 则主人为服务器管理员 (拥有"citizens.admin"权限的玩家) || √ || √ || × || citizens.npc.owner || 设置一个NPC的主人 |
|- | |- | ||
− | | /npc path || ''无'' || √ || √ || × || citizens.npc.edit.path || | + | | /npc path || ''无'' || √ || √ || × || citizens.npc.edit.path || 开关 [[Citizens/路径点|路径点]] 编辑器. 左击添加新的路径点, 右击删除, 用鼠标滚轮或数字键来选择一个路径点. |
|- | |- | ||
| /npc pathrange || ''[range]'' - New range for the NPC || √ || √ || × || citizens.npc.pathfindingrange || Set the range in number of blocks in which the NPC can find a path. | | /npc pathrange || ''[range]'' - New range for the NPC || √ || √ || × || citizens.npc.pathfindingrange || Set the range in number of blocks in which the NPC can find a path. | ||
第120行: | 第120行: | ||
| /npc profession|| ''BLACKSMITH, LIBRARIAN, BUTCHER, FARMER, or PRIEST'' || √ || √ || √ - VILLAGER|| citizens.npc.profession || Change a villager-type NPC's profession. | | /npc profession|| ''BLACKSMITH, LIBRARIAN, BUTCHER, FARMER, or PRIEST'' || √ || √ || √ - VILLAGER|| citizens.npc.profession || Change a villager-type NPC's profession. | ||
|- | |- | ||
− | | /npc remove || ''(all)'' - 将会删除所有的NPC || √ (×t 如果使用了 "all") || √ || × || citizens.npc.remove, (citizens.admin.remove.all) || | + | | /npc remove || ''(all)'' - 将会删除所有的NPC || √ (×t 如果使用了 "all") || √ || × || citizens.npc.remove, (citizens.admin.remove.all) || 删除选中的NPC |
|- | |- | ||
− | | /npc rename || ''[名称]'' - 新的NPC名称 ||| √ || √ || × || citizens.npc.rename || | + | | /npc rename || ''[名称]'' - 新的NPC名称 ||| √ || √ || × || citizens.npc.rename || 重命名选中的NPC |
|- | |- | ||
− | | /npc select || ''[id]'' - 选择指定ID的NPC || × || √ || × || citizens.npc.select || | + | | /npc select || ''[id]'' - 选择指定ID的NPC || × || √ || × || citizens.npc.select || 选择具有给定 ID 的 NPC |
|- | |- | ||
− | | /npc size || ''[size]'' - the integer size for the slime || √ || √ || SLIME || citizens.npc.size || | + | | /npc size || ''[size]'' - the integer size for the slime || √ || √ || SLIME || citizens.npc.size || 设置史莱姆的大小 |
|- | |- | ||
| /npc skeletontype || ''[type]'' - 0 or ×RMAL for ×rmal, 1 or WITHER for wither skeleton || √ || √ || SKELETON || citizens.npc.skeletontype || Changes a Skeleton NPC's type (currently between WITHER and ×RMAL) | | /npc skeletontype || ''[type]'' - 0 or ×RMAL for ×rmal, 1 or WITHER for wither skeleton || √ || √ || SKELETON || citizens.npc.skeletontype || Changes a Skeleton NPC's type (currently between WITHER and ×RMAL) | ||
|- | |- | ||
− | | /npc spawn || ''[id]'' - 你想要生成的NPC的ID || √ || √ || × || citizens.npc.spawn || | + | | /npc spawn || ''[id]'' - 你想要生成的NPC的ID || √ || √ || × || citizens.npc.spawn || 生成现有 NPC |
|- | |- | ||
| /npc speed|| ''[value]'' - 速率| √ || √ || × || citizens.npc.speed|| changes the NPC's default speed multiplier. i.e. use 2 to double the ×rmal speed. | | /npc speed|| ''[value]'' - 速率| √ || √ || × || citizens.npc.speed|| changes the NPC's default speed multiplier. i.e. use 2 to double the ×rmal speed. | ||
第136行: | 第136行: | ||
| /npc text || ''无'' || √ || √ || × || citizens.npc.edit.text || Toggle text editor. '''×te that players need the citizens.npc.talk 权限 to hear NPCs!''' | | /npc text || ''无'' || √ || √ || × || citizens.npc.edit.text || Toggle text editor. '''×te that players need the citizens.npc.talk 权限 to hear NPCs!''' | ||
|- | |- | ||
− | | /npc tphere || ''无'' || √ || √ || × || citizens.npc.tphere || | + | | /npc tphere || ''无'' || √ || √ || × || citizens.npc.tphere || 将 NPC 传送到您的位置 |
|- | |- | ||
− | | /npc tp || ''无'' || √ || √ || × || citizens.npc.tp || | + | | /npc tp || ''无'' || √ || √ || × || citizens.npc.tp || 传送到NPC |
|- | |- | ||
− | | /npc type || ''[type]'' - the new entity type || √ || √ || × || citizens.npc.type || | + | | /npc type || ''[type]'' - the new entity type || √ || √ || × || citizens.npc.type || 更改 NPC 的生物类型 |
|- | |- | ||
| /npc vulnerable || ''无'' || √ || √ || × || citizens.npc.vulnerable || Toggles whether the NPC can take damage and die, and whether monsters will target it when it is on the player list | | /npc vulnerable || ''无'' || √ || √ || × || citizens.npc.vulnerable || Toggles whether the NPC can take damage and die, and whether monsters will target it when it is on the player list |
2024年3月30日 (六) 17:20的最新版本
以下为详细的指令介绍. 更多不同类型的指令信息, 请查看对应的页面.
[] - 强制参数
() - 可选参数
指令 - 指令用法
参数描述 - 指令参数的描述
需要选择 - 指令是否需要先选择一个NPC
需要主人关系 - 输入指令是否需要你是NPC的主人
需要怪物类型 - 是否需要某种怪物类型才能输入这个指令
权限 - 指令的权限节点
描述 - 指令描述
不在列表内的指令
有非常多的指令并没有在这里列出,主要由于维护秩序(wiki不能经常更新, 但指令却常常更新.)
想要查看你所使用版本的指令列表,只需输入在游戏里输入/npc help
. 你可以使用 /npc help 2
来查看第二页的指令并以此类推.
想要查看某个指令的信息, 你可以输入 /npc help create
. 把 "create" 改成其它指令名.
一些指令记录在其他地方. 例如:
- 皮肤指令: Citizens/皮肤 皮肤
还有更多指令用于不同的特性.查看 角色
管理员指令
Admin 指令s | ||
---|---|---|
指令 | 权限 | 描述 |
/citizens | citizens.admin | 显示插件信息 |
/citizens reload | citizens.admin | 重载插件 |
/citizens save | citizens.admin | 保存NPC配置 |
帮助指令
Help 指令s | |||||
---|---|---|---|---|---|
指令 | 参数描述 | 权限 | 描述 | ||
/citizens help | (Page) - 显示的页数 | citizens.help | 显示帮助菜单 | ||
/npc help | (Page) - 显示的页数 | citizens.npc.help | 显示NPC帮助菜单 | ||
/trait help | (Page) - 显示的页数 | citizens.trait.help | 显示 trait帮助菜单 | ||
/script help | (Page) - 显示的页数 | citizens.script.help | 显示脚本帮助菜单 | ||
/template help | (Page) - 显示的页数 | citizens.template.help | 显示模版帮助菜单 | ||
/waypoints help | (Page) - 显示的页数 | citizens.waypoints.help | 显示路径点帮助菜单 |
NPC指令
应用于所有NPC的总指令
注意: '/npc trait' 已被重置, 已有新的指令来添加、移除和复制traits.
用/trait {traitname]
用来添加traits和角色.
更多信息敬请期待.
NPC指令 | ||||||
---|---|---|---|---|---|---|
指令 | 参数描述 | 需要选择NPC | 需要主人关系 | 需要怪物类型 | 权限 | 描述
{{#!: |
/npc | 无 | √ | √ | × | 无 | 显示NPC信息 |
/npc age | [adult, baby, integer, -l] - Adult为成年生物, baby 为幼年生物as baby, integer为生物的年龄, -l 开关是否固定年龄 | √ | √ | √ - COW, SHEEP, CHICKEN, PIG, VILLAGER, OCELOT, WOLF | citizens.npc.age | 修改NPC的年龄 |
/npc anchor | anchor (--save [名称], --assume [名称], --remove [名称]) (-a)(-c) - 保存一个位置作为 '锚点' which can be assumed via assume [名称] | √ | √ | × | citizens.npc.anchor | 更改/保存/列出NPC的位置锚点 |
/npc behaviour | behaviour [脚本] (-r) -- scripts is a comma separated list of script file names to look for, -r flag removes them from the NPC. | √ | √ | × | citizens.npc.behaviour | 添加和移除一个NPC的行为. 行为是可以给NPC执行和添加目标的脚本. 这些可以做任何你能编程或想到的事情! |
/npc controllable | 无 | √ | √ | × | citizens.npc.controllable.[npc type name] | NPC是否可被控制. 可控制NPC可以右键骑乘并用WASD移动. 恶魂、烈焰人和末影龙可以左击来 暂停/继续 飞行 |
/npc copy | (--name 新NPC名) -- 复制一个NPC. | √ | √ | × | citizens.npc.copy | 从当前位置复制选中的NPC. |
/npc create | [NPC Name] - Name to give NPC (--type [type]) - Mob type to use --trait [trait1] [trait2] ... - A list of traits to apply to the NPC |
√ | √ | × | citizens.npc.create.mobtype or citizens.npc.create.* | 创建新的NPC.
Example : |
/npc despawn | (id) 取消生成的NPC的ID | √ | √ | × | citizens.npc.despawn | 取消生成一个NPC |
/npc gamemode | [gamemode] 游戏模式 | √ | √ | PLAYER | citizens.npc.gamemode | 设置玩家类型的NPC的游戏模式. |
/npc gravity | 无 | √ | √ | × | citizens.npc.gravity | 开关NPC的重力. |
/npc equip | 无 | √ | √ | √ - PLAYER, PIG, SHEEP, ENDERMAN | citizens.npc.edit.equip | 进入或退出装备编辑器. 可查看 Equipment Editor Used for player armor, player and endermen items, sheep color/sheared, and pig saddles. |
/npc list | (-a) - List all NPCs (--owner (NPC主人)) - Owner (--type (生物类型)) - Mob type (--char (character)) - Character |
× | × | × | citizens.npc.list | 列出符合指定条件的NPC列表 |
/npc lookclose | 无 | √ | √ | × | citizens.npc.lookclose | 切换NPC的注视状态 |
/npc moveto | --x [x] --y [y] --z [z] --world [world] | √ | √ | × | citizens.npc.moveto | The NPC's current location is taken as the base location. Value arguments are used to modify this base. |
/npc mount | 无 | √ | √ | × | citizens.npc.mount | 如果NPC设置为可控制,则骑乘选中的NPC. |
/npc owner | (name) - 新主人的名字, 设置为 "server" 则主人为服务器管理员 (拥有"citizens.admin"权限的玩家) | √ | √ | × | citizens.npc.owner | 设置一个NPC的主人 |
/npc path | 无 | √ | √ | × | citizens.npc.edit.path | 开关 路径点 编辑器. 左击添加新的路径点, 右击删除, 用鼠标滚轮或数字键来选择一个路径点. |
/npc pathrange | [range] - New range for the NPC | √ | √ | × | citizens.npc.pathfindingrange | Set the range in number of blocks in which the NPC can find a path. |
/npc playerlist | 无 | √ | √ | PLAYER | citizens.npc.playerlist | Toggles an NPC as a 'real' player, so that it will be more recognised by other plugins, will keep chunks loaded and crops ticking. |
/npc pose | --load [名称]|--remove [name) </×wiki> | √ | √ | √ - PLAYER | citizens.pose | Changes/Stores NPC's head position based on the Player's current position. |
/npc power | 无 | √ | √ | √ - CREEPER | citizens.npc.power | Toggle whether a creeper NPC is powered |
/npc profession | BLACKSMITH, LIBRARIAN, BUTCHER, FARMER, or PRIEST | √ | √ | √ - VILLAGER | citizens.npc.profession | Change a villager-type NPC's profession. |
/npc remove | (all) - 将会删除所有的NPC | √ (×t 如果使用了 "all") | √ | × | citizens.npc.remove, (citizens.admin.remove.all) | 删除选中的NPC |
/npc rename | [名称] - 新的NPC名称 | √ | √ | × | citizens.npc.rename | 重命名选中的NPC |
/npc select | [id] - 选择指定ID的NPC | × | √ | × | citizens.npc.select | 选择具有给定 ID 的 NPC |
/npc size | [size] - the integer size for the slime | √ | √ | SLIME | citizens.npc.size | 设置史莱姆的大小 |
/npc skeletontype | [type] - 0 or ×RMAL for ×rmal, 1 or WITHER for wither skeleton | √ | √ | SKELETON | citizens.npc.skeletontype | Changes a Skeleton NPC's type (currently between WITHER and ×RMAL) |
/npc spawn | [id] - 你想要生成的NPC的ID | √ | √ | × | citizens.npc.spawn | 生成现有 NPC |
/npc speed | √ | √ | × | citizens.npc.speed | changes the NPC's default speed multiplier. i.e. use 2 to double the ×rmal speed. | |
/npc text | 无 | √ | √ | × | citizens.npc.edit.text | Toggle text editor. ×te that players need the citizens.npc.talk 权限 to hear NPCs! |
/npc tphere | 无 | √ | √ | × | citizens.npc.tphere | 将 NPC 传送到您的位置 |
/npc tp | 无 | √ | √ | × | citizens.npc.tp | 传送到NPC |
/npc type | [type] - the new entity type | √ | √ | × | citizens.npc.type | 更改 NPC 的生物类型 |
/npc vulnerable | 无 | √ | √ | × | citizens.npc.vulnerable | Toggles whether the NPC can take damage and die, and whether monsters will target it when it is on the player list |
/npc zombiemod | (-b, -v) - -b for baby, -v for villager | √ | √ | ZOMBIE | citizens.npc.zombiemodifier | Sets a zombie NPC's modifiers. |
/trait | [trait1] [trait2] ... [traitN - A list of Traits to apply | √ | √ | × | citizens.npc.trait.* or citizens.npc.trait.<trait-name> for per-trait 权限s | Adds the trait type to the NPC. NPCs can have multiple traits.
Example: |
路径点指令
Waypoint 指令s | ||||||
---|---|---|---|---|---|---|
指令 | Args 描述 | 权限 | 描述 | |||
/waypoints disableteleport | 无 | citizens.waypoints.disableteleport | Stops NPCs from automatically teleporting the end of their path if they get stuck (NOTE: might be removed at some point). | |||
/waypoints provider | [provider名称] (-a) - provider name is the provider to use (currently linear, guided and wander), use -a to get a list of all providers | citizens.waypoints.provider | 在路径点编辑器内设置路径点provider. |
模版指令
Template 指令s | ||||||
---|---|---|---|---|---|---|
指令 | Args 描述 | 权限 | 描述 | |||
/template apply | [template name] (id1 id2...) - takes the name of the template and an optional list of IDs to apply it to | citizens.templates.apply | Applies the given templates to the NPC. | |||
/template create | [template name] (-o) - takes the name of the generated template, -o sets it to override | citizens.templates.create | Generates a template from the selected NPC and saves it to the templates.yml file. |