实现交互按钮

This commit is contained in:
延皓
2022-07-19 20:53:53 +08:00
parent 7b2136c282
commit 90a4a61855
118 changed files with 378 additions and 252 deletions
@@ -0,0 +1 @@
execute if data storage fz:installed fz.module{last_nether_portal:1b} run tellraw @s [{"text": "获取位置:"},[{"text": "[", "hoverEvent": {"action": "show_text", "value": "发送给:自己"}, "clickEvent": {"action": "run_command", "value": "/trigger fz.module.interactor.trigger set 2000"}},{"text": "私信", "color": "aqua"},{"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "value": "发送给:所有人"}, "clickEvent": {"action": "run_command", "value": "/trigger fz.module.interactor.trigger set 2010"}},{"text": "广播", "color": "aqua"},{"text": "]"}]]
@@ -0,0 +1,2 @@
execute if score @s fz.module.interactor.trigger matches 2000 run function #fz:module/here/private_message
execute if score @s fz.module.interactor.trigger matches 2010 run function #fz:module/here/global_message