语法
1.12.2
/toast <targets> <type>...
targets:目标玩家,消息的接受者
type:消息类型
消息类型
help
语法:/toast <targets> help <type>
对使用对象返回type的语法消息。其中targets不得为空,但是没有实际作用,可以使用@a。
simple
语法:/toast <targets> simple <title> <text> <icon>
title:原始json文本,作为标题
text:原始json文本,作为正文
icon:物品,类似于give,内容为<name> [count] [data] [tag]
由于版本限制,原始json文本中不能使用空格,可以使用下划线或翻译键代替。
1.16.5
/toast help <type>
对使用者发送type的用法。可能targets存在冲突,当targets被指定为一个名叫help的玩家(如果存在)时无法正常工作。
/toast <targets> <type>...
targets:目标玩家,消息的接受者
type:消息类型
消息类型
simple
语法:/toast <targets> simple <title> <text> <icon>
tite:标题,强制原始json文本
text:正文,强制原始json文本
icon:物品,格式与give物品格式一致。
hand
语法:/toast <targets> hand
只能玩家使用,展示使用者手上的物品,效果同simple。物品作为图标,其名称作为标题,玩家名称作为正文。
资料分类: | 游戏命令 |