版本:Beta ⚠️(未翻译)
Value Placeholder Fact
A fact that is computed from a placeholder.
This placeholder is evaluated when the fact is read and can return anything.
The value will be computed based on the values
specified.
此变量只能读取,不能写入。因此,它仅适用于标准。
How could this be used?
If you only want to run certain actions if the player is in creative mode. Or depending on the weather, change the dialogue of the NPC.
Fields
Comment
继承可选用于记录此条件用途的注释。
Group
必填Placeholder
必填占位符Placeholder to parse (e.g. %player_gamemode%
Values
必填正则表达式The values to match the placeholder with and their corresponding fact value.
An example would be:
values:
SURVIVAL: 0
CREATIVE: 1
ADVENTURE: 2
SPECTATOR: 3
If the placeholder returns CREATIVE
, the fact value will be 1
.
If no value matches, the fact value will be 0
.
Values can have placeholders inside them.