? 关于
添加各种命令和其他实用工具。数据包制作者和地图制作者可能会觉得这很有用。
? 主要功能
- 玩家数据访问: 允许使用原版
/data 命令读取和修改玩家数据

命令
/motion <add/set> <entity> <momentum> - 对实体应用给定的动量。
/gui <open/close> <player> <menu> <name> <force>
close - 关闭玩家的菜单。你可以选择性地指定要关闭的菜单类型。
open - 为玩家打开一个菜单。你可以选择性地指定容器名称,以及该菜单是否应叠加在其他菜单之上(默认为 false)。
-
/eval <表达式> <缩放比例> <参数/附带> - 计算以字符串形式表示的数学和逻辑表达式,并返回其完成值。支持通过 arguments 和 with 宏使用变量。
-
/provoke <victim> <provoker> - 使 victim 攻击 provoker。如果 victim 是被动型实体,它将进入恐慌状态。
-
/findblock <from> <to> <block> store <block/entity/storage> - 在指定的长方体范围内搜索特定方块。如果提供了 store 参数,会将所有找到的方块 ID 及其坐标存储到指定位置,并返回总数;否则根据成功与否返回 1 或 0。
完整功能描述请参阅维基 ?
? About
Adds various commands and other utilities. Datapackers and mapmakers may find this useful.
? Main Features
- Player Data Access: Gives ability to read and modify the player using the vanilla
/data command

Commands
/motion <add/set> <entity> <momentum> - Applies the given momentum to the entity.
/gui <open/close> <player> <menu> <name> <force>
close - Closes a menu for the player. You can optionally specify the type of menu that should be closed.
open - Opens a menu for the player. You can optionally specify the name of the container and whether it should open on top of other menus (false by default).
/eval <expression> <scale> <arguments/with> - Evaluates mathematical and logical expressions represented as a string and returns its completion value. Supports variables via arguments and with macros.
/provoke <victim> <provoker> - Provokes victim against provoker. If victim is a passive entity, it will panic instead.
/findblock <from> <to> <block> store <block/entity/storage> - Searches for specific blocks within a defined cuboid. If the store argument is provided, it stores all found block IDs and their coordinates in the specified destination, returning the total count. Otherwise, returns 1 or 0 based on success.
Full functionality is described on the wiki ?
评论 0
登录后参与评分
还没有评论,来抢沙发吧