zoom: debug: false type: command name: zoom description: zoom usage: /zoom #permission: aliases: - z script: - if : - if == null: - flag player zoom:default - while == default: - adjust potion_effects:SLOW,6,99999,false,false,false - actionbar '<&e><&l>Zoom<&f><&l>: <&a><&l>100% <&7>/z to toggle' - wait 1s - else: - adjust remove_effects - actionbar <&r> - flag player zoom:! - foreach 1|2|3|4|5 as:mode: - if == <[mode]>: - flag player zoom:<[mode]> - while == <[mode]>: - adjust remove_effects - adjust potion_effects:SLOW,<[mode].mul[1.2]>,99999,false,false,false - actionbar '<&e><&l>Zoom<&f><&l>: <&a><&l><[mode].mul[2]>0% <&7>/z to toggle' - wait 1s