这是用户在 2025-7-15 10:58 为 https://github.com/Pyrbu/ZNPCsPlus/wiki/Properties 保存的双语快照页面,由 沉浸式翻译 提供双语支持。了解如何保存?
Skip to content

Properties  属性

D3v1s0m edited this page Nov 4, 2023 · 2 revisions

This page provides a list of all properties available for customizing your NPCs in ZNPCsPlus.
本页面提供了在 ZNPCsPlus 中自定义 NPC 所有的属性列表。

Not all properties are available for all versions and all NPC Types. For example, is_elder property is only available in versions 1.8.8-1.10 and only for guardian.
并非所有属性在所有版本和所有 NPC 类型中都可用。例如, is_elder 属性仅在版本 1.8.8-1.10 中可用,并且仅适用于 guardian

helmet  头盔

Used to equip helmet to the NPC.
用于给 NPC 装备头盔。

Usage: /npc property set <id> helmet - Hold the item in your hand
使用: /npc property set <id> helmet - 将物品握在手中

Default: none  默认值: none
Versions: all  版本:所有
Types: player,armor_stand,giant,skeleton,zombie,zombified_piglin,husk,stray,
类型: playerarmor_standgiantskeletonzombiezombified_piglinhuskstray

wither_skeleton,zombie_villager,drowned,piglin,piglin_brute

chestplate  胸甲

Used to equip chestplate to the NPC.
用于给 NPC 装备胸甲。

Usage: /npc property set <id> chestplate - Hold the item in your hand
使用: /npc property set <id> chestplate - 将物品握在手中

Default: none  默认值: none
Versions: all  版本:所有
Types: player,armor_stand,giant,skeleton,zombie,zombified_piglin,husk,stray,
类型: player , armor_stand , giant , skeleton , zombie , zombified_piglin , husk , stray ,

wither_skeleton,zombie_villager,drowned,piglin,piglin_brute

leggings

Used to equip leggings to the NPC.
用于给 NPC 装备裤子。

Usage: /npc property set <id> leggings - Hold the item in your hand
使用: /npc property set <id> leggings - 将物品握在手中

Default: none  默认值: none
Versions: all  版本:所有
Types: player,armor_stand,giant,skeleton,zombie,zombified_piglin,husk,stray,
类型: player , armor_stand , giant , skeleton , zombie , zombified_piglin , husk , stray ,

wither_skeleton,zombie_villager,drowned,piglin,piglin_brute

boots  靴子

Used to equip boots to the NPC.
用于给 NPC 装备靴子。

Usage: /npc property set <id> boots - Hold the item in your hand.
用法: /npc property set <id> boots - 将物品握在手中。

Default: none  默认值: none
Versions: all  版本:所有
Types: player,armor_stand,giant,skeleton,zombie,zombified_piglin,husk,stray,
类型: player , armor_stand , giant , skeleton , zombie , zombified_piglin , husk , stray ,

wither_skeleton,zombie_villager,drowned,piglin,piglin_brute

hand  

Used to equip an item in hand of the NPC.
用于给 NPC 装备物品。

Usage: /npc property set <id> hand - Hold the item in your hand
使用: /npc property set <id> hand - 将物品握在手中

Default: none  默认值: none
Versions: all  版本:所有
Types: player,armor_stand,giant,skeleton,zombie,zombified_piglin,husk,stray,
类型: player , armor_stand , giant , skeleton , zombie , zombified_piglin , husk , stray ,

wither_skeleton,zombie_villager,drowned,piglin,piglin_brute,vex,pillager,allay

offhand  随意

Used to equip an item in off hand of the NPC.
用于为 NPC 的副手装备物品。

Usage: /npc property set <id> offhand - Hold the item in your hand
使用: /npc property set <id> offhand - 将物品握在手中

Default: none  默认值: none
Versions: 1.9+   版本:1.9+
Types: player,armor_stand,giant,skeleton,zombie,zombified_piglin,husk,stray,
类型: player , armor_stand , giant , skeleton , zombie , zombified_piglin , husk , stray ,

wither_skeleton,zombie_villager,drowned,piglin,piglin_brute,vex,pillager,allay

dinnerbone

The NPC is inverted like using Dinnerbone nametag.
该 NPC 的显示方式类似于使用 Dinnerbone 的命名牌。

Usage: /npc property set <id> dinnerbone <true/false>  用法: /npc property set <id> dinnerbone <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: all (EXCEPT ender_dragon)
类型:所有(除 ender_dragon 外)

look

Change how the NPC looks, i.e. the head rotation.
改变 NPC 的外观,即头部旋转。

Usage: /npc property set <id> look <FIXED/CLOSEST_PLAYER/PER_PLAYER>  用法: /npc property set <id> look <FIXED/CLOSEST_PLAYER/PER_PLAYER>
Default: FIXED  默认值: FIXED
Example: /npc property set 1 look CLOSEST_PLAYER  示例: /npc property set 1 look CLOSEST_PLAYER
FIXED - NPC will not move its head
已修复 - NPC 不会移动它的头

CLOSEST_PLAYER - NPC will look at the closest player
最近玩家 - NPC 会看向最近的玩家

PER_PLAYER - NPC will look at the player who is looking at it
每个玩家 - NPC 会看向看着它的玩家

Versions: all  版本:所有
Types: all  类型:全部

look_distance

Used to set the distance at which the NPC will look at the player.
用于设置 NPC 观察玩家的距离。

Usage: /npc property set <id> look_distance <distance>  用法: /npc property set <id> look_distance <distance>
Default: 10  默认值: 10
Example: /npc property set 1 look_distance 20.5  示例: /npc property set 1 look_distance 20.5
Versions: all  版本:所有
Types: all  类型:全部

view_distance

Used to set the distance till which the NPC will be visible to the player.
用于设置 NPC 对玩家可见的距离。

Usage: /npc property set <id> view_distance <distance>  用法: /npc property set <id> view_distance <distance>
Default: 32  默认值: 32
Example: /npc property set 1 view_distance 50  示例: /npc property set 1 view_distance 50
Versions: all  版本:所有
Types: all  类型:全部

permission_required

If true, only players with the permission znpcsplus.npc.<id> will be able to view the NPC.
如果为 true,只有拥有权限 znpcsplus.npc.<id> 的玩家才能查看 NPC。

Usage: /npc property set <id> permission_required <true/false>  用法: /npc property set <id> permission_required <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: all  类型:全部

glow

To make the NPC glow.
让 NPC 发光。

Usage: /npc property set <id> glow [<GlowColor>]  用法: /npc property set <id> glow [<GlowColor>]
Default: false  默认值: false
Example: /npc property set 1 glow RED  示例: /npc property set 1 glow RED
Versions: 1.9+  版本:1.9+
Types: all  类型:全部

fire

To set the NPC on fire.
点燃 NPC。

Usage: /npc property set <id> fire <true/false>  用法: /npc property set <id> fire <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: all  类型:全部

invisible  隐形

To set the NPC invisible. This works like the invisibility potion effect.
要设置 NPC 不可见。这和隐形药水效果一样。

Usage: /npc property set <id> invisible <true/false>  用法: /npc property set <id> invisible <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: all (EXCEPT ender_dragon)
类型:所有(除 ender_dragon 外)

silent  无声

To make the NPC silent. Like the silent tag in commands.
使 NPC 沉默。类似于命令中的 silent 标签。

Usage: /npc property set <id> silent <true/false>  用法: /npc property set <id> silent <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: all  类型:全部

sitting  坐着

To make the NPC sit.
让 NPC 坐下。

Usage: /npc property set <id> sitting <true/false>  用法: /npc property set <id> sitting <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: cat, parrot, wolf
类型: catparrotwolf

tamed  被驯服

To tame the NPC. Needed for collar color to work.
驯服 NPC。需要此功能才能使项圈颜色生效。

Usage: /npc property set <id> tamed <true/false>  用法: /npc property set <id> tamed <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: cat, parrot, wolf
类型: catparrotwolf

potion_color  药水颜色

To set the potion color of the NPC.
设置 NPC 的药水颜色。

Usage: /npc property set <id> potion_color [<Color>]  用法: /npc property set <id> potion_color [<Color>]
Default: none  默认值: none
Example: /npc property set 1 potion_color #FFFF00 - Sets the potion color to yellow
示例: /npc property set 1 potion_color #FFFF00 - 将药水颜色设置为黄色

Versions: all  版本:所有
Types: all (EXCEPT ender_dragon)
类型:所有(除 ender_dragon 外)

potion_ambient

To set the potion effect to be ambient.
将药水效果设置为环境效果。

Usage: /npc property set <id> potion_ambient <true/false>  用法: /npc property set <id> potion_ambient <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: all (EXCEPT ender_dragon)
类型:所有(除 ender_dragon 外)

baby  婴儿

To make the NPC a baby.
将 NPC 变成婴儿。

Usage: /npc property set <id> baby <true/false>  用法: /npc property set <id> baby <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: all ageable mobs, zombies, piglins, zoglins
类型:所有可成长的生物、僵尸、猪灵、祖古灵

small  

If true, the Armor Stand NPC will be small.
如果为真,则盔甲架 NPC 会变小。

Usage: /npc property set <id> small <true/false>  用法: /npc property set <id> small <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: armor_stand  类型: armor_stand

arms  手臂

If true, the Armor Stand NPC will have arms.
如果为真,盔甲立 NPC 将有手臂。

Usage: /npc property set <id> arms <true/false>  用法: /npc property set <id> arms <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: armor_stand  类型: armor_stand

base_plate

If false, the Armor Stand NPC will not have a base plate.
如果为 false,盔甲架 NPC 将不会有一个底板。

Usage: /npc property set <id> base_plate <true/false>  用法: /npc property set <id> base_plate <true/false>
Default: true  默认值: true
Versions: all  版本:所有
Types: armor_stand  类型: armor_stand

head_rotation  头部旋转

Used to set rotation of the head of the Armor Stand NPC.
用于设置盔甲站立的 NPC 头部的旋转。

Usage: /npc property set <id> head_rotation <x> <y> <z>  用法: /npc property set <id> head_rotation <x> <y> <z>
Default: 0 0 0  默认值: 0 0 0
Example: /npc property set 1 head_rotation 0 90 0  示例: /npc property set 1 head_rotation 0 90 0
Versions: all  版本:所有
Types: armor_stand  类型: armor_stand

body_rotation

Used to set rotation of the body of the Armor Stand NPC.
用于设置盔甲立绘 NPC 身体的旋转。

Usage: /npc property set <id> body_rotation <x> <y> <z>  用法: /npc property set <id> body_rotation <x> <y> <z>
Default: 0 0 0  默认值: 0 0 0
Example: /npc property set 1 body_rotation 0 90 0  示例: /npc property set 1 body_rotation 0 90 0
Versions: all  版本:所有
Types: armor_stand   类型: armor_stand

left_arm_rotation

Used to set rotation of the left arm of the Armor Stand NPC.
用于设置盔甲站立的左臂的旋转。

Usage: /npc property set <id> left_arm_rotation <x> <y> <z>  用法: /npc property set <id> left_arm_rotation <x> <y> <z>
Default: -10 0 -10  默认值: -10 0 -10
Example: /npc property set 1 left_arm_rotation 0 0 -5  示例: /npc property set 1 left_arm_rotation 0 0 -5
Versions: all  版本:所有
Types: armor_stand   类型: armor_stand

right_arm_rotation

Used to set rotation of the right arm of the Armor Stand NPC.
用于设置盔甲站 NPC 的右臂旋转。

Usage: /npc property set <id> right_arm_rotation <x> <y> <z>  用法: /npc property set <id> right_arm_rotation <x> <y> <z>
Default: -15 0 10  默认值: -15 0 10
Example: /npc property set 1 right_arm_rotation -105 0 100  示例: /npc property set 1 right_arm_rotation -105 0 100
Versions: all  版本:所有
Types: armor_stand   类型: armor_stand

left_leg_rotation

Used to set rotation of the left leg of the Armor Stand NPC.
用于设置盔甲站立的左腿的旋转。

Usage: /npc property set <id> left_leg_rotation <x> <y> <z>  用法: /npc property set <id> left_leg_rotation <x> <y> <z>
Default: -1 0 -1  默认值: -1 0 -1
Example: /npc property set 1 left_leg_rotation 40 0 0  示例: /npc property set 1 left_leg_rotation 40 0 0
Versions: all  版本:所有
Types: armor_stand  类型: armor_stand

right_leg_rotation  右腿旋转

Used to set rotation of the right leg of the Armor Stand NPC.
用于设置盔甲站立的右腿的旋转。

Usage: /npc property set <id> right_leg_rotation <x> <y> <z>  用法: /npc property set <id> right_leg_rotation <x> <y> <z>
Default: 1 0 1  默认值: 1 0 1
Example: /npc property set 1 right_leg_rotation -40 0 0  示例: /npc property set 1 right_leg_rotation -40 0 0
Versions: all  版本:所有
Types: armor_stand  类型: armor_stand

attacking  攻击

To make the Ghast NPC look like it is attacking.
使 Ghast NPC 看起来像是在攻击。

Usage: /npc property set <id> attacking <true/false>  用法: /npc property set <id> attacking <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: ghast  类型: ghast

hanging  悬挂

To make the Bat NPC hang upside down.
使蝙蝠 NPC 倒挂。

Usage: /npc property set <id> hanging <true/false>  用法: /npc property set <id> hanging <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: bat  类型: bat

blaze_on_fire

To make the Blaze NPC on fire.
使 Blaze NPC 着火。

Usage: /npc property set <id> blaze_on_fire <true/false>  用法: /npc property set <id> blaze_on_fire <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: blaze   类型: blaze

creeper_state

To set the state of the Creeper NPC.
设置 Creeper NPC 的状态。

Usage: /npc property set <id> creeper_state <IDLE/FUSE>  用法: /npc property set <id> creeper_state <IDLE/FUSE>
Default: IDLE  默认值: IDLE
Versions: all  版本:所有
Types: creeper  类型: creeper

creeper_charged

To make the Creeper NPC charged.
使 Creeper NPC 带电。

Usage: /npc property set <id> creeper_charged <true/false>  用法: /npc property set <id> creeper_charged <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: creeper  类型: creeper

is_saddled

To make the Horse NPC saddled.
使马 NPC 骑乘。

Usage: /npc property set <id> is_saddled <true/false>  用法: /npc property set <id> is_saddled <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: horse, donkey, mule, skeleton_horse, zombie_horse
类型: horsedonkeymuleskeleton_horsezombie_horse

is_eating

To make the Horse NPC eating.
使马 NPC 进食。

Usage: /npc property set <id> is_eating <true/false>  用法: /npc property set <id> is_eating <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: horse, donkey, mule, skeleton_horse, zombie_horse
类型: horsedonkeymuleskeleton_horsezombie_horse

is_rearing

To make the Horse NPC rearing.
使马 NPC 后仰。

Usage: /npc property set <id> is_rearing <true/false>  用法: /npc property set <id> is_rearing <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: horse, donkey, mule, skeleton_horse, zombie_horse
类型: horse , donkey , mule , skeleton_horse , zombie_horse

has_mouth_open

To make the Horse NPC's mouth open.
让马 NPC 的嘴巴张开。

Usage: /npc property set <id> has_mouth_open <true/false>  用法: /npc property set <id> has_mouth_open <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: horse, donkey, mule, skeleton_horse, zombie_horse
类型: horsedonkeymuleskeleton_horsezombie_horse

beam_target

To set the target of the End Crystal NPC's beam.
设置末晶 NPC 光束的目标。

Usage: /npc property set <id> beam_target <x> <y> <z>  用法: /npc property set <id> beam_target <x> <y> <z>
Default: none  默认值: none
Example: /npc property set 1 beam_target 0 100 0  示例: /npc property set 1 beam_target 0 100 0
Versions: 1.9+   版本:1.9+
Types: ender_crystal  类型: ender_crystal

show_base

If false, the End Crystal NPC will not have a base like a placed End Crystal.
如果为 false,则 End Crystal NPC 不会像放置的 End Crystal 一样有一个基础。

Usage: /npc property set <id> show_base <true/false>  用法: /npc property set <id> show_base <true/false>
Default: true  默认值: true
Versions: 1.9+   版本:1.9+
Types: ender_crystal  类型: ender_crystal

is_elder

To make the Guardian NPC an Elder Guardian.
将守卫 NPC 变成老守卫。

Usage: /npc property set <id> is_elder <true/false>  用法: /npc property set <id> is_elder <true/false>
Default: false  默认值: false
Versions: 1.8.8-1.10  版本:1.8.8-1.10
Types: guardian   类型: guardian

is_retracting_spikes

To make the Guardian NPC retract its spikes.
使守卫 NPC 缩回它的刺。

Usage: /npc property set <id> is_retracting_spikes <true/false>  用法: /npc property set <id> is_retracting_spikes <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: guardian, elder_guardian
类型: guardianelder_guardian

horse_type

To set the type of the Horse NPC.
用于设置马 NPC 的类型。

Usage: /npc property set <id> horse_type <HORSE/DONKEY/MULE/SKELETON/ZOMBIE>  用法: /npc property set <id> horse_type <HORSE/DONKEY/MULE/SKELETON/ZOMBIE>
Default: HORSE  默认值: HORSE
Versions: 1.8.8-1.10  版本:1.8.8-1.10
Types: horse   类型: horse

horse_style

To set the style of the Horse NPC.
用于设置马 NPC 的样式。

Usage: /npc property set <id> horse_style <NONE/WHITE/WHITEFIELD/WHITE_DOTS/BLACK_DOTS>  用法: /npc property set <id> horse_style <NONE/WHITE/WHITEFIELD/WHITE_DOTS/BLACK_DOTS>
Default: HORSE  默认值: HORSE
Versions: all  版本:所有
Types: horse   类型: horse

horse_color

To set the color of the Horse NPC.
用于设置马 NPC 的颜色。

Usage: /npc property set <id> horse_color <WHITE/CREAMY/CHESTNUT/BROWN/BLACK/GRAY/DARK_BROWN>  用法: /npc property set <id> horse_color <WHITE/CREAMY/CHESTNUT/BROWN/BLACK/GRAY/DARK_BROWN>
Default: HORSE  默认值: HORSE
Versions: all  版本:所有
Types: horse   类型: horse

horse_armor  马铠

To set the armor of the Horse NPC.
设置马型 NPC 的盔甲。

Usage: /npc property set <id> horse_armor <NONE/IRON/GOLD/DIAMOND>  用法: /npc property set <id> horse_armor <NONE/IRON/GOLD/DIAMOND>
Default: NONE  默认值: NONE
Versions: 1.8.8-1.13  版本:1.8.8-1.13
Types: horse  类型: horse

has_chest

If true, the NPC will have a chest.
如果为 true,NPC 将拥有一个胸甲。

Usage: /npc property set <id> has_chest <true/false>  用法: /npc property set <id> has_chest <true/false>
Default: false  默认值: false
Versions: all  版本:所有
Types: horse(only 1.8.8-1.13), donkey, mule, llama
类型: horse (仅限 1.8.8-1.13), donkeymulellama

ZNPCsPlus Wiki

Welcome to the documentation for ZNPCsPlus!
欢迎来到 ZNPCsPlus 的文档!

  • Home: Introduction and Overview
    首页:介绍和概览
  • Setup: Installation and Configuration
    设置:安装和配置
  • Converting: Migrating from Older Versions or Other Plugins
    转换:从旧版本或其他插件迁移
  • Commands: List of Available Commands
    命令:可用命令列表
  • Permissions: Permissions and Access Control
    权限:权限和访问控制
  • NPC Types: Information about Different NPC Types
    NPC 类型:不同 NPC 类型的信息
  • Properties: Customization Options
    属性:自定义选项
  • API Docs: Documentation of API
    API 文档:API 文档
  • Other: Additional Resources and Information
    其他:其他资源和信息

Feel free to click on any of the links above to access the corresponding page for detailed information on that topic. If you have any questions or need further assistance, please don't hesitate to reach out on our Discord server
欢迎点击上述任何链接,访问相应页面以获取该主题的详细信息。如果您有任何问题或需要进一步的帮助,请随时在我们的 Discord 服务器上联系我们。

Clone this wiki locally