From 2973435558909901067b6dfffabed4f8313eda9d Mon Sep 17 00:00:00 2001 From: Legends11 <235496468+tickwarden@users.noreply.github.com> Date: Mon, 17 Aug 2026 15:13:02 +0300 Subject: [PATCH] Refactor setup function to use storage commands --- .../data/macroengine/function/setup.mcfunction | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packs/macroEngine-Datapack-1.21.2/data/macroengine/function/setup.mcfunction b/packs/macroEngine-Datapack-1.21.2/data/macroengine/function/setup.mcfunction index c0ca949..5f68129 100644 --- a/packs/macroEngine-Datapack-1.21.2/data/macroengine/function/setup.mcfunction +++ b/packs/macroEngine-Datapack-1.21.2/data/macroengine/function/setup.mcfunction @@ -47,4 +47,8 @@ data remove storage runtoolkit:tmp _reg # an interactive dialog with admin add/remove (macroengine.admin set/unset) # and status info. The admin-add button is guarded by an op # (permission_level 2+) check, see setup/admin/add_self. -execute if entity @s run function macroengine:setup/open_screen +data modify storage macroengine:input cmd set value "execute if entity @s run function macroengine:setup/open_screen" +data modify storage macroengine:input key set value "open_screen" +function macroengine:player/get_name +data modify storage macroengine:input player set from storage macroengine:names temp.NAME +function macroengine:core/lib/schedule_cmd_as with storage macroengine:input