'1':
update: [25, 20, -1, -1]
display:
material: blue Stained Glass Pane
name: ['&c<p传送',]
actions:
left:
actions:
- 'command: tpa'
catcher:
target:
type: SING
before: 'tell: 请输入一名玩家的名称'
cancel: 'tell: 已取消捕获器'
reactions:
- condition: 'isOnline.${input_target}'
execute: 'tell: 名称确认. ${input_target}'
deny:
- 'tell: 抱歉, 但玩家 ${input_target} 不在线'
- 'return'
#麻烦哪个大佬帮我修改成正确格式 使得正常使用 点击后 输入玩家ID 后 自动 执行tpa
update: [25, 20, -1, -1]
display:
material: blue Stained Glass Pane
name: ['&c<p传送',]
actions:
left:
actions:
- 'command: tpa'
catcher:
target:
type: SING
before: 'tell: 请输入一名玩家的名称'
cancel: 'tell: 已取消捕获器'
reactions:
- condition: 'isOnline.${input_target}'
execute: 'tell: 名称确认. ${input_target}'
deny:
- 'tell: 抱歉, 但玩家 ${input_target} 不在线'
- 'return'
#麻烦哪个大佬帮我修改成正确格式 使得正常使用 点击后 输入玩家ID 后 自动 执行tpa
我没用过 TrMenu (因为 DeluxeMenus 配合 CommandPrompt 对我来说够用了)
但是凭我的经验我觉得是将
复制代码
改成
复制代码
试试看吧
但是凭我的经验我觉得是将
- execute: 'tell: 名称确认. ${input_target}'
改成
- execute: 'commands: tpa ${input_target}'
试试看吧
本帖最后由 傻狐狐 于 2021-8-18 02:21 编辑
'1':
update: [25, 20, -1, -1]
display:
material: blue Stained Glass Pane
name: ['&c<p传送',]
actions:
all:
- catcher:
target:
type: SING
before: 'tell: 请输入一名玩家的名称'
cancel: 'tell: 已取消捕获器'
reactions:
- condition: 'isOnline.${input_target}'
execute:
- 'tell: 名称确认. ${input_target}'
- 'command: tpa ${input_target}'
deny:
- 'tell: 抱歉, 但玩家 ${input_target} 不在线'
- 'return'
'1':
update: [25, 20, -1, -1]
display:
material: blue Stained Glass Pane
name: ['&c<p传送',]
actions:
all:
- catcher:
target:
type: SING
before: 'tell: 请输入一名玩家的名称'
cancel: 'tell: 已取消捕获器'
reactions:
- condition: 'isOnline.${input_target}'
execute:
- 'tell: 名称确认. ${input_target}'
- 'command: tpa ${input_target}'
deny:
- 'tell: 抱歉, 但玩家 ${input_target} 不在线'
- 'return'