{"pack": {"pack_format": 7, "description": "Custom Data Pack"}, "functions": [{"function": "custom_namespace:execute_function"}], "minecraft:load": {"function": "custom_namespace:init"}, "minecraft:tick": {"function": "custom_namespace:tick"}},scoreboard objectives add trigger dummy,execute as @a[scores={trigger=1..}] run function custom_namespace:execute_function scoreboard players reset @a[scores={trigger=1..}] trigger,# 在这里编写需要执行的特定功能代码

Minecraft 数据包:使用消息栏发送消息执行函数

原文地址: https://www.cveoy.top/t/topic/pPmC 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录