EntitySelectorReader#readArguments 该方法的主要逻辑是第 276 行一个大 while 循环读取目标选择器的所有参数。在循环体中,第 279~280 行读取该参数的名称,然后调EntitySelectorOptions#getHandler拿 handler,然后在第 290 行用这个 handler 处理后面的内容。比如,目标选择器存在 type=minecraft:sheep 参数,则会读取...
Selections are strings used to specifiy which entity or group of entities should be used in a condition or action. They work very similar toMinecraft target selectors. Each selector must have a selector type which may be followed by one or more selector arguments in squared brackets, separated...
For example, you can use the @s selector with the/give commandto give the player who is running the command 64 tnt: /give @s tnt 64 Target Selector Arguments Target selector arguments can be used to reduce the number of players or entities being targeted and the available options are d...
Fixed an issue where night could not be skipped if one or more players were on the death ...
If the relation is not applicable to the executing entity or there are no entities matching it, the selector returns zero elements. 若指定的关系不适用于当前执行实体,或此关系下没有匹配实体,则返回0个元素。 EXECUTE POSITIONED OVEREXECUTE POSITIONED OVERNew execute sub-command for finding positions ...
Command selector now gets the same position for the player that the command origin player position gets 命令选择器现在会为玩家获取与发出命令玩家获取的相同的坐标 MARKETPLACE 市场 Fixed a bug where the text-to-speech feature would read the entire "My Content" page, both highlighted and non-highl...
particular location, a ‘facing' option has been added to the /camera command. Wherever a rotation could be previously specified with the ‘rot' option, now ‘facing' can be used instead. ‘facing' should be followed either by an entity selector like [type=cow] or by x y z coordinates...
Here we are using the playsound command to play the villager haggle sound. The `@initiator` targets the player who has opened the dialogue. `@s` in this case would select the NPC entity. You can learn more about commands here: [Introduction to Commands](CommandsIntroduction.md) ## Export...
CommandTriggerJava Edition any the arguments are not specified correctly Unparseable target selector fails to resolve to one or more online players Failed all specified player profiles have not been banned Otherwise SuccessfulOutputCommandEditionSituationSuccess Count/execute store success .../execute store...
The CommandAPI has an optional Kotlin DSL just for you Powerful suggestion generation - Generate new suggestions for each argument, or add to existing suggestions Safe suggestion generation - The CommandAPI offers compile-time type safety for specific arguments Precise permission support - Apply ...