• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

Citizens/多重特性

来自Minecraft插件百科
Qsefthuopq讨论 | 贡献2018年11月11日 (日) 14:06的版本 (创建页面,内容为“All Citizens 2.0 behavior is dictated by Traits. Traits can be applied to the NPCs and will handle events and interaction in specific ways. NPC可以拥有多重…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

All Citizens 2.0 behavior is dictated by Traits.

Traits can be applied to the NPCs and will handle events and interaction in specific ways.

NPC可以拥有多重角色特性

An example is the Wallet Trait. This trait allows the NPC to have and use economy money. This Trait is useless by itself but works when the NPC is also assigned the DenizenTrader trait.

角色 are really just complicated Traits.

Assigning multiple 角色 traits can lead to powerful results, but also potential conflicts.

NPCs with the Denizen trait should use the commands for that trait to turn on and off specific interactions that may cause conflict.

For example if you want to make a 铁匠 that wanders throughout the town using Denizen Activities to dictate his movement, you would want to turn off Click Triggers in the Denizen Trait so that right-clicking the Blacksmith would perform the proper 铁匠 commands and not trigger any Denizen脚本.


使用指令

/trait [特性名]

会启用会退出特性