├── old ├── strings │ ├── data │ │ ├── regex │ │ │ └── functions │ │ │ │ ├── compare │ │ │ │ ├── true.mcfunction │ │ │ │ ├── white_space.mcfunction │ │ │ │ ├── not_digit.mcfunction │ │ │ │ ├── not_white_space.mcfunction │ │ │ │ ├── lower_case.mcfunction │ │ │ │ ├── upper_case.mcfunction │ │ │ │ ├── letter.mcfunction │ │ │ │ ├── not_letter.mcfunction │ │ │ │ ├── default.mcfunction │ │ │ │ ├── not_default │ │ │ │ │ ├── 4_6.mcfunction │ │ │ │ │ ├── 1_3.mcfunction │ │ │ │ │ └── 7_9.mcfunction │ │ │ │ ├── not_default.mcfunction │ │ │ │ ├── main.mcfunction │ │ │ │ └── digit.mcfunction │ │ │ │ ├── start.mcfunction │ │ │ │ ├── done.mcfunction │ │ │ │ ├── load.mcfunction │ │ │ │ ├── found │ │ │ │ ├── not.mcfunction │ │ │ │ ├── one.mcfunction │ │ │ │ └── all.mcfunction │ │ │ │ ├── quantifier │ │ │ │ ├── or_more.mcfunction │ │ │ │ ├── type │ │ │ │ │ ├── 0_l.mcfunction │ │ │ │ │ ├── 1_l.mcfunction │ │ │ │ │ ├── 0_1.mcfunction │ │ │ │ │ └── custom.mcfunction │ │ │ │ ├── decrease.mcfunction │ │ │ │ ├── custom │ │ │ │ │ ├── 0_2.mcfunction │ │ │ │ │ ├── 3_5.mcfunction │ │ │ │ │ └── 6_9.mcfunction │ │ │ │ ├── replace.mcfunction │ │ │ │ ├── replace_quant.mcfunction │ │ │ │ ├── get.mcfunction │ │ │ │ ├── set_point.mcfunction │ │ │ │ └── custom.mcfunction │ │ │ │ ├── check_empty.mcfunction │ │ │ │ ├── restart │ │ │ │ ├── point.mcfunction │ │ │ │ ├── do.mcfunction │ │ │ │ └── check.mcfunction │ │ │ │ ├── reset │ │ │ │ ├── end.mcfunction │ │ │ │ └── start.mcfunction │ │ │ │ ├── check_string_1.mcfunction │ │ │ │ ├── check_string_0.mcfunction │ │ │ │ ├── check_string.mcfunction │ │ │ │ ├── special.mcfunction │ │ │ │ └── check.mcfunction │ │ ├── substring │ │ │ └── functions │ │ │ │ ├── internal │ │ │ │ ├── negative_start.mcfunction │ │ │ │ ├── negative_length.mcfunction │ │ │ │ ├── full_length.mcfunction │ │ │ │ ├── length.mcfunction │ │ │ │ └── start.mcfunction │ │ │ │ ├── load.mcfunction │ │ │ │ ├── callio.mcfunction │ │ │ │ └── call.mcfunction │ │ ├── string │ │ │ └── functions │ │ │ │ ├── run │ │ │ │ ├── parallel │ │ │ │ │ ├── found_one.mcfunction │ │ │ │ │ ├── start.mcfunction │ │ │ │ │ └── continue.mcfunction │ │ │ │ ├── quote_last.mcfunction │ │ │ │ ├── run.mcfunction │ │ │ │ ├── async │ │ │ │ │ ├── tick_end.mcfunction │ │ │ │ │ ├── found_one.mcfunction │ │ │ │ │ ├── tick_start.mcfunction │ │ │ │ │ └── decrement.mcfunction │ │ │ │ ├── error.mcfunction │ │ │ │ ├── start_char.mcfunction │ │ │ │ ├── callback.mcfunction │ │ │ │ ├── compare_prepare.mcfunction │ │ │ │ ├── end.mcfunction │ │ │ │ ├── reset.mcfunction │ │ │ │ ├── compare_found.mcfunction │ │ │ │ ├── continue.mcfunction │ │ │ │ ├── quote_fix.mcfunction │ │ │ │ ├── compare_build.mcfunction │ │ │ │ ├── compare_found_one.mcfunction │ │ │ │ ├── search_maybe.mcfunction │ │ │ │ ├── search.mcfunction │ │ │ │ ├── compare_prepare2.mcfunction │ │ │ │ ├── queue_next.mcfunction │ │ │ │ └── read.mcfunction │ │ │ │ ├── call.mcfunction │ │ │ │ ├── callio.mcfunction │ │ │ │ ├── do │ │ │ │ └── read.mcfunction │ │ │ │ ├── load.mcfunction │ │ │ │ └── helper │ │ │ │ └── build.mcfunction │ │ ├── minecraft │ │ │ └── tags │ │ │ │ └── functions │ │ │ │ └── load.json │ │ ├── ntca │ │ │ └── functions │ │ │ │ ├── load.mcfunction │ │ │ │ ├── internal │ │ │ │ ├── negative.mcfunction │ │ │ │ ├── digit_rec.mcfunction │ │ │ │ ├── special.mcfunction │ │ │ │ ├── digits │ │ │ │ │ ├── 0_2.mcfunction │ │ │ │ │ ├── 7_9.mcfunction │ │ │ │ │ └── 3_6.mcfunction │ │ │ │ └── digit.mcfunction │ │ │ │ ├── callio.mcfunction │ │ │ │ └── call.mcfunction │ │ └── case │ │ │ └── functions │ │ │ ├── callio │ │ │ ├── get_case.mcfunction │ │ │ ├── to_lower.mcfunction │ │ │ └── to_upper.mcfunction │ │ │ └── call │ │ │ ├── to_lower.mcfunction │ │ │ └── to_upper.mcfunction │ └── pack.mcmeta ├── applications │ ├── data │ │ ├── application_cape │ │ │ ├── functions │ │ │ │ ├── call.mcfunction │ │ │ │ └── internal │ │ │ │ │ ├── load.mcfunction │ │ │ │ │ ├── callback.mcfunction │ │ │ │ │ ├── get.mcfunction │ │ │ │ │ └── clear.mcfunction │ │ │ └── loot_tables │ │ │ │ └── get │ │ │ │ └── skull.json │ │ ├── application_name │ │ │ ├── functions │ │ │ │ ├── internal │ │ │ │ │ ├── end_name.mcfunction │ │ │ │ │ ├── force_shorten.mcfunction │ │ │ │ │ ├── simplify.mcfunction │ │ │ │ │ ├── direct_translation.mcfunction │ │ │ │ │ ├── simplify_start.mcfunction │ │ │ │ │ ├── simplify_callback.mcfunction │ │ │ │ │ ├── simplify_callback_io.mcfunction │ │ │ │ │ ├── end_word.mcfunction │ │ │ │ │ ├── next_char.mcfunction │ │ │ │ │ ├── number_check.mcfunction │ │ │ │ │ └── simplify_recursive.mcfunction │ │ │ │ ├── load.mcfunction │ │ │ │ ├── call.mcfunction │ │ │ │ └── callio.mcfunction │ │ │ └── loot_tables │ │ │ │ └── get │ │ │ │ └── skull.json │ │ ├── minecraft │ │ │ └── tags │ │ │ │ └── functions │ │ │ │ └── load.json │ │ └── application_unix │ │ │ └── functions │ │ │ ├── print.mcfunction │ │ │ ├── misc │ │ │ └── year_loop.mcfunction │ │ │ └── load.mcfunction │ └── pack.mcmeta ├── base64 │ ├── data │ │ ├── minecraft │ │ │ └── tags │ │ │ │ └── functions │ │ │ │ └── load.json │ │ ├── base64 │ │ │ └── functions │ │ │ │ ├── out │ │ │ │ ├── next_bit.mcfunction │ │ │ │ ├── write_byte.mcfunction │ │ │ │ ├── bits_interp.mcfunction │ │ │ │ └── read_bits.mcfunction │ │ │ │ ├── call.mcfunction │ │ │ │ ├── callio.mcfunction │ │ │ │ ├── in │ │ │ │ ├── interp_bits.mcfunction │ │ │ │ ├── bits │ │ │ │ │ ├── 0.mcfunction │ │ │ │ │ ├── 1.mcfunction │ │ │ │ │ ├── 10.mcfunction │ │ │ │ │ ├── 11.mcfunction │ │ │ │ │ ├── 12.mcfunction │ │ │ │ │ ├── 13.mcfunction │ │ │ │ │ ├── 14.mcfunction │ │ │ │ │ ├── 15.mcfunction │ │ │ │ │ ├── 16.mcfunction │ │ │ │ │ ├── 17.mcfunction │ │ │ │ │ ├── 18.mcfunction │ │ │ │ │ ├── 19.mcfunction │ │ │ │ │ ├── 2.mcfunction │ │ │ │ │ ├── 20.mcfunction │ │ │ │ │ ├── 21.mcfunction │ │ │ │ │ ├── 22.mcfunction │ │ │ │ │ ├── 23.mcfunction │ │ │ │ │ ├── 24.mcfunction │ │ │ │ │ ├── 25.mcfunction │ │ │ │ │ ├── 26.mcfunction │ │ │ │ │ ├── 27.mcfunction │ │ │ │ │ ├── 28.mcfunction │ │ │ │ │ ├── 29.mcfunction │ │ │ │ │ ├── 3.mcfunction │ │ │ │ │ ├── 30.mcfunction │ │ │ │ │ ├── 31.mcfunction │ │ │ │ │ ├── 32.mcfunction │ │ │ │ │ ├── 33.mcfunction │ │ │ │ │ ├── 34.mcfunction │ │ │ │ │ ├── 35.mcfunction │ │ │ │ │ ├── 36.mcfunction │ │ │ │ │ ├── 37.mcfunction │ │ │ │ │ ├── 38.mcfunction │ │ │ │ │ ├── 39.mcfunction │ │ │ │ │ ├── 4.mcfunction │ │ │ │ │ ├── 40.mcfunction │ │ │ │ │ ├── 41.mcfunction │ │ │ │ │ ├── 42.mcfunction │ │ │ │ │ ├── 43.mcfunction │ │ │ │ │ ├── 44.mcfunction │ │ │ │ │ ├── 45.mcfunction │ │ │ │ │ ├── 46.mcfunction │ │ │ │ │ ├── 47.mcfunction │ │ │ │ │ ├── 48.mcfunction │ │ │ │ │ ├── 49.mcfunction │ │ │ │ │ ├── 5.mcfunction │ │ │ │ │ ├── 50.mcfunction │ │ │ │ │ ├── 51.mcfunction │ │ │ │ │ ├── 52.mcfunction │ │ │ │ │ ├── 53.mcfunction │ │ │ │ │ ├── 54.mcfunction │ │ │ │ │ ├── 55.mcfunction │ │ │ │ │ ├── 56.mcfunction │ │ │ │ │ ├── 57.mcfunction │ │ │ │ │ ├── 58.mcfunction │ │ │ │ │ ├── 59.mcfunction │ │ │ │ │ ├── 6.mcfunction │ │ │ │ │ ├── 60.mcfunction │ │ │ │ │ ├── 61.mcfunction │ │ │ │ │ ├── 62.mcfunction │ │ │ │ │ ├── 63.mcfunction │ │ │ │ │ ├── 7.mcfunction │ │ │ │ │ ├── 8.mcfunction │ │ │ │ │ └── 9.mcfunction │ │ │ │ ├── get_value.mcfunction │ │ │ │ └── values │ │ │ │ │ ├── rem.mcfunction │ │ │ │ │ ├── cap.mcfunction │ │ │ │ │ └── lc.mcfunction │ │ │ │ ├── setup.mcfunction │ │ │ │ ├── convert.mcfunction │ │ │ │ └── load.mcfunction │ │ └── print │ │ │ └── functions │ │ │ ├── call.mcfunction │ │ │ └── output_ascii.mcfunction │ ├── pack.mcmeta │ └── README.md ├── parser │ ├── data │ │ ├── parser │ │ │ └── functions │ │ │ │ ├── detect_type_retry.mcfunction │ │ │ │ ├── name_start_retry.mcfunction │ │ │ │ ├── extra │ │ │ │ ├── object_end.mcfunction │ │ │ │ ├── add_object_notes.mcfunction │ │ │ │ ├── add_array_notes.mcfunction │ │ │ │ ├── add_dec_pos.mcfunction │ │ │ │ ├── num_flat.mcfunction │ │ │ │ ├── num_check.mcfunction │ │ │ │ ├── num_array_convert.mcfunction │ │ │ │ ├── long_num.mcfunction │ │ │ │ ├── number.mcfunction │ │ │ │ └── nac │ │ │ │ │ └── char_to_num.mcfunction │ │ │ │ ├── array │ │ │ │ ├── get_type_retry.mcfunction │ │ │ │ ├── cont │ │ │ │ │ ├── seek_open_retry.mcfunction │ │ │ │ │ ├── escaped_char.mcfunction │ │ │ │ │ ├── pro │ │ │ │ │ │ ├── object_parse.mcfunction │ │ │ │ │ │ ├── backup.mcfunction │ │ │ │ │ │ ├── parse_call.mcfunction │ │ │ │ │ │ └── restore.mcfunction │ │ │ │ │ ├── seek_open.mcfunction │ │ │ │ │ ├── array_parse.mcfunction │ │ │ │ │ ├── transfer_char.mcfunction │ │ │ │ │ ├── do_cont.mcfunction │ │ │ │ │ ├── array_call.mcfunction │ │ │ │ │ ├── cont_copy.mcfunction │ │ │ │ │ └── copy_chars.mcfunction │ │ │ │ ├── number │ │ │ │ │ ├── seek_num_retry.mcfunction │ │ │ │ │ ├── add_dec_pos.mcfunction │ │ │ │ │ ├── next_num.mcfunction │ │ │ │ │ ├── flatten.mcfunction │ │ │ │ │ ├── convert.mcfunction │ │ │ │ │ ├── seek_num.mcfunction │ │ │ │ │ ├── num_copy.mcfunction │ │ │ │ │ └── write_nums.mcfunction │ │ │ │ ├── string │ │ │ │ │ ├── seek_string_retry.mcfunction │ │ │ │ │ ├── seek_string.mcfunction │ │ │ │ │ ├── write_char.mcfunction │ │ │ │ │ ├── string_write.mcfunction │ │ │ │ │ ├── copy_strings.mcfunction │ │ │ │ │ └── escaped_char.mcfunction │ │ │ │ ├── dump_out_to_temp.mcfunction │ │ │ │ ├── prep_for_parse.mcfunction │ │ │ │ ├── do_type.mcfunction │ │ │ │ ├── find_unresolved.mcfunction │ │ │ │ ├── do_array.mcfunction │ │ │ │ ├── check.mcfunction │ │ │ │ └── get_type.mcfunction │ │ │ │ ├── copy │ │ │ │ ├── array │ │ │ │ │ ├── quote_off.mcfunction │ │ │ │ │ ├── quote_on.mcfunction │ │ │ │ │ ├── copy_array.mcfunction │ │ │ │ │ ├── transfer_value_char.mcfunction │ │ │ │ │ ├── quote_toggle.mcfunction │ │ │ │ │ └── value.mcfunction │ │ │ │ ├── escaped_char_name.mcfunction │ │ │ │ ├── transfer_name_char.mcfunction │ │ │ │ ├── basic │ │ │ │ │ ├── transfer_value_char.mcfunction │ │ │ │ │ └── value.mcfunction │ │ │ │ ├── type_resolve.mcfunction │ │ │ │ ├── name.mcfunction │ │ │ │ ├── type_call.mcfunction │ │ │ │ └── escaped_char_val.mcfunction │ │ │ │ ├── init.mcfunction │ │ │ │ ├── generate_pair.mcfunction │ │ │ │ ├── res │ │ │ │ ├── pair_to_temp_obj.mcfunction │ │ │ │ ├── do_resolve.mcfunction │ │ │ │ ├── scan_for_unresolved_retry.mcfunction │ │ │ │ ├── scan_for_unresolved.mcfunction │ │ │ │ ├── return_pairs.mcfunction │ │ │ │ ├── new_unres_found.mcfunction │ │ │ │ ├── temp_object_dump.mcfunction │ │ │ │ ├── fill_temp_object.mcfunction │ │ │ │ ├── pre_resolve.mcfunction │ │ │ │ └── resolve_objects.mcfunction │ │ │ │ ├── start.mcfunction │ │ │ │ ├── call.mcfunction │ │ │ │ ├── callio.mcfunction │ │ │ │ ├── check_for_end.mcfunction │ │ │ │ ├── write_nv_to_out.mcfunction │ │ │ │ ├── scan_for_name_start.mcfunction │ │ │ │ ├── call_nv_pair.mcfunction │ │ │ │ ├── setup.mcfunction │ │ │ │ ├── load.mcfunction │ │ │ │ ├── call_int.mcfunction │ │ │ │ ├── detect_type.mcfunction │ │ │ │ └── num │ │ │ │ ├── flatten.mcfunction │ │ │ │ └── dec.mcfunction │ │ ├── minecraft │ │ │ └── tags │ │ │ │ └── functions │ │ │ │ └── load.json │ │ ├── base_conv │ │ │ └── functions │ │ │ │ ├── convert │ │ │ │ ├── get_num.mcfunction │ │ │ │ ├── write.mcfunction │ │ │ │ ├── start.mcfunction │ │ │ │ └── next.mcfunction │ │ │ │ ├── setup.mcfunction │ │ │ │ ├── convert.mcfunction │ │ │ │ └── call.mcfunction │ │ ├── c │ │ │ └── functions │ │ │ │ ├── ctc.mcfunction │ │ │ │ ├── nvc.mcfunction │ │ │ │ └── oec.mcfunction │ │ └── rev_conv │ │ │ └── functions │ │ │ ├── setup.mcfunction │ │ │ ├── conv │ │ │ ├── reverse_input.mcfunction │ │ │ └── calc.mcfunction │ │ │ └── call.mcfunction │ ├── pack.mcmeta │ └── README.md └── examples │ ├── pack.mcmeta │ └── data │ └── example │ ├── functions │ ├── 2_callback_pt2.mcfunction │ ├── 1_basic_pt2.mcfunction │ ├── 11_seed.mcfunction │ ├── 16_simplify_name_pt2.mcfunction │ ├── 1_basic.mcfunction │ ├── 2_callback.mcfunction │ ├── 7_substr_char_array.mcfunction │ ├── 14_get_unix_time_pt2.mcfunction │ ├── 3_callback2.mcfunction │ ├── 6_all.mcfunction │ ├── 11_seed_pt2.mcfunction │ ├── 17_async.mcfunction │ ├── 14_get_unix_time.mcfunction │ ├── 18_parallel.mcfunction │ ├── 5_skull.mcfunction │ ├── 15_from_book.mcfunction │ ├── 8_substr_string.mcfunction │ ├── 13_decode64.mcfunction │ ├── 4_multi.mcfunction │ └── _all.mcfunction │ └── loot_tables │ └── get │ └── skull.json ├── offbrand_player.png ├── images └── offbrand_player.png └── LICENSE /old/strings/data/regex/functions/compare/true.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players set success regex 0 -------------------------------------------------------------------------------- /old/applications/data/application_cape/functions/call.mcfunction: -------------------------------------------------------------------------------- 1 | function application_cape:internal/get -------------------------------------------------------------------------------- /old/base64/data/minecraft/tags/functions/load.json: -------------------------------------------------------------------------------- 1 | { 2 | "values": [ 3 | "base64:load" 4 | ] 5 | } -------------------------------------------------------------------------------- /offbrand_player.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/McTsts/Minecraft-String-Utilities/HEAD/offbrand_player.png -------------------------------------------------------------------------------- /old/parser/data/parser/functions/detect_type_retry.mcfunction: -------------------------------------------------------------------------------- 1 | function c:ctc 2 | function parser:detect_type -------------------------------------------------------------------------------- /old/applications/data/application_name/functions/internal/end_name.mcfunction: -------------------------------------------------------------------------------- 1 | data remove storage simplify:main in -------------------------------------------------------------------------------- /old/parser/data/parser/functions/name_start_retry.mcfunction: -------------------------------------------------------------------------------- 1 | function c:ctc 2 | function parser:scan_for_name_start -------------------------------------------------------------------------------- /images/offbrand_player.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/McTsts/Minecraft-String-Utilities/HEAD/images/offbrand_player.png -------------------------------------------------------------------------------- /old/examples/pack.mcmeta: -------------------------------------------------------------------------------- 1 | { 2 | "pack": { 3 | "pack_format": 1, 4 | "description": "Example usages" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /old/parser/data/parser/functions/extra/object_end.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage parse:main out append value {Type:"object_end"} -------------------------------------------------------------------------------- /old/strings/data/regex/functions/start.mcfunction: -------------------------------------------------------------------------------- 1 | function regex:reset/start 2 | function regex:check 3 | function regex:done -------------------------------------------------------------------------------- /old/parser/pack.mcmeta: -------------------------------------------------------------------------------- 1 | { 2 | "pack": { 3 | "pack_format": 1, 4 | "description": "json parser by gibbsly" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /old/examples/data/example/functions/2_callback_pt2.mcfunction: -------------------------------------------------------------------------------- 1 | tellraw @a ["[#02] ",{"storage":"string:io","nbt":"out","interpret":false}] -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/get_type_retry.mcfunction: -------------------------------------------------------------------------------- 1 | data remove storage parse:list in[0] 2 | function parser:array/get_type -------------------------------------------------------------------------------- /old/examples/data/example/functions/1_basic_pt2.mcfunction: -------------------------------------------------------------------------------- 1 | tellraw @a ["[#01] Output: ",{"storage":"string:io","nbt":"out","interpret":false}] -------------------------------------------------------------------------------- /old/strings/data/regex/functions/done.mcfunction: -------------------------------------------------------------------------------- 1 | tellraw @a {"nbt":"out","storage":"regex:main","interpret":false} 2 | #function regex:reset/end -------------------------------------------------------------------------------- /old/strings/data/substring/functions/internal/negative_start.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players operation $start substring += $curLength substring -------------------------------------------------------------------------------- /old/strings/pack.mcmeta: -------------------------------------------------------------------------------- 1 | { 2 | "pack": { 3 | "pack_format": 1, 4 | "description": "Converts strings to char arrays" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /old/base64/pack.mcmeta: -------------------------------------------------------------------------------- 1 | { 2 | "pack": { 3 | "pack_format": 1, 4 | "description": "base64 to ascii converter by gibbsly" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /old/parser/data/minecraft/tags/functions/load.json: -------------------------------------------------------------------------------- 1 | { 2 | "values": [ 3 | "rev_conv:setup", 4 | "base_conv:setup", 5 | "parser:load" 6 | ] 7 | } -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/cont/seek_open_retry.mcfunction: -------------------------------------------------------------------------------- 1 | data remove storage parse:list in[0] 2 | function parser:array/cont/seek_open -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/parallel/found_one.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage string:out parallel append from storage string:internal char -------------------------------------------------------------------------------- /old/applications/data/minecraft/tags/functions/load.json: -------------------------------------------------------------------------------- 1 | { 2 | "values": [ 3 | "application_unix:load", 4 | "application_name:load" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/number/seek_num_retry.mcfunction: -------------------------------------------------------------------------------- 1 | data remove storage parse:list in[0] 2 | function parser:array/number/seek_num -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/string/seek_string_retry.mcfunction: -------------------------------------------------------------------------------- 1 | data remove storage parse:list in[0] 2 | function parser:array/string/seek_string -------------------------------------------------------------------------------- /old/strings/data/regex/functions/compare/white_space.mcfunction: -------------------------------------------------------------------------------- 1 | execute if data storage regex:main {cur_char:" "} run scoreboard players set success regex 0 -------------------------------------------------------------------------------- /old/strings/data/minecraft/tags/functions/load.json: -------------------------------------------------------------------------------- 1 | { 2 | "values": [ 3 | "substring:load", 4 | "regex:load", 5 | "ntca:load", 6 | "string:load" 7 | ] 8 | } -------------------------------------------------------------------------------- /old/strings/data/ntca/functions/load.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard objectives add ntca dummy 2 | scoreboard players set $10 ntca 10 3 | scoreboard players set $-1 ntca -1 -------------------------------------------------------------------------------- /old/strings/data/ntca/functions/internal/negative.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage ntca:io out append value "-" 2 | scoreboard players operation $ntca ntca *= $-1 ntca -------------------------------------------------------------------------------- /old/strings/data/regex/functions/load.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard objectives add regex dummy 2 | scoreboard objectives add Const dummy 3 | scoreboard players set 10 Const 10 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/out/next_bit.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage base64:main temp set from storage base64:main bits[0] 2 | data remove storage base64:main bits[0] -------------------------------------------------------------------------------- /old/strings/data/ntca/functions/internal/digit_rec.mcfunction: -------------------------------------------------------------------------------- 1 | function ntca:internal/digit 2 | execute unless score $ntca ntca matches 0 run function ntca:internal/digit_rec -------------------------------------------------------------------------------- /old/strings/data/regex/functions/compare/not_digit.mcfunction: -------------------------------------------------------------------------------- 1 | function regex:compare/digit 2 | execute store success score success regex unless score success regex matches 1 -------------------------------------------------------------------------------- /old/parser/data/parser/functions/copy/array/quote_off.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players set array_quote_tog= parse.main 0 2 | scoreboard players set array_quote_count= parse.main 0 -------------------------------------------------------------------------------- /old/parser/data/parser/functions/copy/array/quote_on.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players set array_quote_tog= parse.main 0 2 | scoreboard players set array_quote_count= parse.main 1 -------------------------------------------------------------------------------- /old/parser/data/parser/functions/init.mcfunction: -------------------------------------------------------------------------------- 1 | #checking for a valid json start 2 | function c:ctc 3 | execute if data storage parse:main {check:"{"} run function parser:start -------------------------------------------------------------------------------- /old/parser/data/parser/functions/extra/add_object_notes.mcfunction: -------------------------------------------------------------------------------- 1 | #adds "unresolved" note to the "Extra" array 2 | data modify storage parse:main pair.Extra append value "unresolved" -------------------------------------------------------------------------------- /old/parser/data/parser/functions/generate_pair.mcfunction: -------------------------------------------------------------------------------- 1 | #prepares temp pair value for writing 2 | data modify storage parse:main pair set value {Name:[],Value:[],Type:"",Extra:[]} -------------------------------------------------------------------------------- /old/parser/data/parser/functions/res/pair_to_temp_obj.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage parse:obj temp_obj append from storage parse:main check 2 | function parser:res/fill_temp_object -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/cont/escaped_char.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage parse:list temp_val append from storage parse:list in[0] 2 | data remove storage parse:list in[0] -------------------------------------------------------------------------------- /old/strings/data/regex/functions/compare/not_white_space.mcfunction: -------------------------------------------------------------------------------- 1 | function regex:compare/white_space 2 | execute store success score success regex unless score success regex matches 1 -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/quote_last.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players set $quoteString string 2 2 | scoreboard players remove $found string 1 3 | function string:run/compare_found 4 | -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/run.mcfunction: -------------------------------------------------------------------------------- 1 | data remove storage string:internal queue[0] 2 | data merge block -30000000 1 74063 {auto:1b} 3 | scoreboard players set $searching string 1 -------------------------------------------------------------------------------- /old/strings/data/substring/functions/internal/negative_length.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players operation $length substring = $curLength substring 2 | scoreboard players remove $length substring 1 -------------------------------------------------------------------------------- /old/applications/pack.mcmeta: -------------------------------------------------------------------------------- 1 | { 2 | "pack": { 3 | "pack_format": 1, 4 | "description": "Applications for string manipulation. Mainly relies on combining the other modules." 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /old/strings/data/regex/functions/found/not.mcfunction: -------------------------------------------------------------------------------- 1 | #tellraw @a "> f/n" 2 | data modify storage regex:main cur_in prepend from storage regex:main cur_char 3 | scoreboard players remove index regex 1 -------------------------------------------------------------------------------- /old/strings/data/string/functions/call.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage string:in input append from storage string:io queue[] 2 | data modify storage string:io queue set value [] 3 | function string:do/read -------------------------------------------------------------------------------- /old/applications/data/application_name/functions/load.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard objectives add string.simplify dummy 2 | scoreboard objectives add string.simplifyp dummy 3 | setblock -30000000 10 74063 shulker_box -------------------------------------------------------------------------------- /old/parser/data/parser/functions/start.mcfunction: -------------------------------------------------------------------------------- 1 | #creates a pair 2 | function parser:scan_for_name_start 3 | function parser:call_nv_pair 4 | #checking for the "end" string 5 | function parser:check_for_end -------------------------------------------------------------------------------- /old/strings/data/substring/functions/internal/full_length.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players operation $length substring = $curLength substring 2 | scoreboard players operation $length substring -= $start substring -------------------------------------------------------------------------------- /old/applications/data/application_cape/functions/internal/load.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard objectives add player_model dummy 2 | scoreboard objectives add cape_check.res dummy 3 | setblock -30000000 10 74063 shulker_box -------------------------------------------------------------------------------- /old/parser/data/base_conv/functions/convert/get_num.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players operation current= base_conv.num = add= base_conv.num 2 | scoreboard players operation current= base_conv.num -= hold= base_conv.num -------------------------------------------------------------------------------- /old/parser/data/c/functions/ctc.mcfunction: -------------------------------------------------------------------------------- 1 | #this shifts the current char into the check register 2 | data modify storage parse:main check set from storage parse:main in[0] 3 | data remove storage parse:main in[0] -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/async/tick_end.mcfunction: -------------------------------------------------------------------------------- 1 | execute if score $searching string matches 1 run setblock -30000000 1 74062 minecraft:command_block[facing=north]{Command:"help me",auto:1b} destroy -------------------------------------------------------------------------------- /old/parser/data/c/functions/nvc.mcfunction: -------------------------------------------------------------------------------- 1 | #this shifts the current n/v pair into the check register 2 | data modify storage parse:main check set from storage parse:main out[0] 3 | data remove storage parse:main out[0] -------------------------------------------------------------------------------- /old/strings/data/ntca/functions/callio.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage ntca:io in set from storage universal:strings io 2 | function ntca:call 3 | data modify storage universal:strings io set from storage ntca:io out -------------------------------------------------------------------------------- /old/strings/data/string/functions/callio.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage string:in input append from storage universal:strings io 2 | data modify storage string:in input[-1].callio set value 1 3 | function string:call -------------------------------------------------------------------------------- /old/parser/data/c/functions/oec.mcfunction: -------------------------------------------------------------------------------- 1 | #checks if the current char marks the end of an object 2 | execute if data storage parse:main {check:"}"} run data modify storage parse:main out append value {Type:"object_end"} -------------------------------------------------------------------------------- /old/parser/data/parser/functions/call.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage parse:in in set from storage parse:io in 2 | function parser:call_int 3 | data modify storage parse:io out set from storage parse:main out[{Name:[main]}].Value -------------------------------------------------------------------------------- /old/strings/data/substring/functions/load.mcfunction: -------------------------------------------------------------------------------- 1 | data merge storage substring:io {in:[{string:[],start:0,length:0}],out:[]} 2 | data merge storage substring:internal {string:[]} 3 | scoreboard objectives add substring dummy -------------------------------------------------------------------------------- /old/base64/data/base64/functions/out/write_byte.mcfunction: -------------------------------------------------------------------------------- 1 | execute store result storage base64:out temp byte 1 run scoreboard players get byte= base64.num 2 | data modify storage base64:out bytes append from storage base64:out temp -------------------------------------------------------------------------------- /old/examples/data/example/functions/11_seed.mcfunction: -------------------------------------------------------------------------------- 1 | tellraw @a ["\n"] 2 | gamerule sendCommandFeedback true 3 | setblock -30000000 3 74063 command_block{auto:1b,Command:"seed"} destroy 4 | schedule function example:11_seed_pt2 2t -------------------------------------------------------------------------------- /old/strings/data/case/functions/callio/get_case.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage case:io in set from storage universal:strings io 2 | function case:call/get_case 3 | data modify storage universal:strings io set from storage case:io out -------------------------------------------------------------------------------- /old/strings/data/case/functions/callio/to_lower.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage case:io in set from storage universal:strings io 2 | function case:call/to_lower 3 | data modify storage universal:strings io set from storage case:io out -------------------------------------------------------------------------------- /old/strings/data/case/functions/callio/to_upper.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage case:io in set from storage universal:strings io 2 | function case:call/to_upper 3 | data modify storage universal:strings io set from storage case:io out -------------------------------------------------------------------------------- /old/strings/data/ntca/functions/internal/special.mcfunction: -------------------------------------------------------------------------------- 1 | execute if score $ntca ntca matches ..-1 run function ntca:internal/negative 2 | execute if score $ntca ntca matches 0 run data modify storage ntca:io out set value ["0"] -------------------------------------------------------------------------------- /old/base64/data/print/functions/call.mcfunction: -------------------------------------------------------------------------------- 1 | #put list of bytes into: storage ascii:main bytes 2 | 3 | data modify storage ascii:main text set value [] 4 | execute if data storage ascii:main bytes[0] run function print:output_ascii -------------------------------------------------------------------------------- /old/parser/data/base_conv/functions/convert/write.mcfunction: -------------------------------------------------------------------------------- 1 | execute store result storage base_conv:main temp int 1 run scoreboard players get current= base_conv.num 2 | data modify storage base_conv:main out prepend from storage base_conv:main temp -------------------------------------------------------------------------------- /old/parser/data/parser/functions/callio.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage parse:in in set from storage universal:strings io 2 | function parser:call_int 3 | data modify storage universal:strings io set from storage parse:main out[{Name:[main]}].Value -------------------------------------------------------------------------------- /old/parser/data/parser/functions/extra/add_array_notes.mcfunction: -------------------------------------------------------------------------------- 1 | #adds "unresolved" note to the "Extra" array if necessary 2 | execute if data storage parse:main pair.Value[0] run data modify storage parse:main pair.Extra append value "unresolved" -------------------------------------------------------------------------------- /old/strings/data/regex/functions/compare/lower_case.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage case:main in set from storage regex:main cur_char 2 | function case:get_case 3 | execute if data storage case:main {case:0} run scoreboard players set success regex 0 -------------------------------------------------------------------------------- /old/strings/data/regex/functions/compare/upper_case.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage case:main in set from storage regex:main cur_char 2 | function case:get_case 3 | execute if data storage case:main {case:1} run scoreboard players set success regex 0 -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/error.mcfunction: -------------------------------------------------------------------------------- 1 | # Does an error callback 2 | data modify block -30000000 1 74062 Command set from storage string:internal callback.error 3 | 4 | # Reset String Parser 5 | function string:run/reset 6 | 7 | -------------------------------------------------------------------------------- /old/strings/data/substring/functions/callio.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage substring:io in set from storage universal:strings io 2 | function substring:call 3 | data modify storage universal:strings io set from storage substring:io out 4 | 5 | -------------------------------------------------------------------------------- /old/parser/data/parser/functions/check_for_end.mcfunction: -------------------------------------------------------------------------------- 1 | #loops if the "end" string isn't found 2 | data modify storage parse:main check set from storage parse:main in[0] 3 | execute unless data storage parse:main {check:"end"} run function parser:start -------------------------------------------------------------------------------- /old/strings/data/regex/functions/compare/letter.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage case:main in set from storage regex:main cur_char 2 | function case:get_case 3 | execute unless data storage case:main {case:-1} run scoreboard players set success regex 0 -------------------------------------------------------------------------------- /old/strings/data/regex/functions/compare/not_letter.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage case:main in set from storage regex:main cur_char 2 | function case:get_case 3 | execute if data storage case:main {case:-1} run scoreboard players set success regex 0 -------------------------------------------------------------------------------- /old/strings/data/regex/functions/quantifier/or_more.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players operation quantifier_max regex = length regex 2 | scoreboard players operation quantifier_max regex -= index regex 3 | scoreboard players remove quantifier_max regex 1 4 | -------------------------------------------------------------------------------- /old/parser/data/base_conv/functions/setup.mcfunction: -------------------------------------------------------------------------------- 1 | data merge storage base_conv:main {in:0,out:[],temp:0} 2 | scoreboard objectives add base_conv.num dummy 3 | 4 | scoreboard players set base= base_conv.num 2 5 | scoreboard players set in= base_conv.num 63 -------------------------------------------------------------------------------- /old/parser/data/parser/functions/copy/escaped_char_name.mcfunction: -------------------------------------------------------------------------------- 1 | #moves the next value after an escape char directly to the name array 2 | data modify storage parse:main pair.Name append from storage parse:main in[0] 3 | data remove storage parse:main in[0] -------------------------------------------------------------------------------- /old/parser/data/parser/functions/res/do_resolve.mcfunction: -------------------------------------------------------------------------------- 1 | #places the found object into the "temp_out" array 2 | data modify storage parse:obj temp_out prepend from storage parse:main check 3 | 4 | #fills temp object 5 | function parser:res/fill_temp_object -------------------------------------------------------------------------------- /old/parser/data/rev_conv/functions/setup.mcfunction: -------------------------------------------------------------------------------- 1 | data merge storage rev_conv:main {in:[],rev:[],out:0} 2 | scoreboard objectives add rev_conv.num dummy 3 | 4 | scoreboard players set base= rev_conv.num 2 5 | scoreboard players set mult= rev_conv.num 1 -------------------------------------------------------------------------------- /old/examples/data/example/functions/16_simplify_name_pt2.mcfunction: -------------------------------------------------------------------------------- 1 | function application_name:internal/simplify_callback 2 | tellraw @a ["[#16] ",{"storage":"string:io","nbt":"out","interpret":true}," -> ",{"storage":"simplify:io","nbt":"out","interpret":true}] -------------------------------------------------------------------------------- /old/parser/data/parser/functions/res/scan_for_unresolved_retry.mcfunction: -------------------------------------------------------------------------------- 1 | #this function looks for the first unresolved object available 2 | data modify storage parse:obj temp_out prepend from storage parse:main check 3 | function parser:res/scan_for_unresolved -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/string/seek_string.mcfunction: -------------------------------------------------------------------------------- 1 | #looking for the quote 2 | data modify storage parse:list check set from storage parse:list in[0] 3 | execute unless data storage parse:list {check:'"'} run function parser:array/string/seek_string_retry -------------------------------------------------------------------------------- /old/strings/data/regex/functions/compare/default.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage regex:main cur_char_c set from storage regex:main cur_char 2 | execute store success score success regex run data modify storage regex:main cur_char_c set from storage regex:main cur_regex_char -------------------------------------------------------------------------------- /old/parser/data/base_conv/functions/convert.mcfunction: -------------------------------------------------------------------------------- 1 | #conversion 2 | function base_conv:convert/get_num 3 | function base_conv:convert/write 4 | function base_conv:convert/next 5 | 6 | #loop 7 | execute if score add= base_conv.num matches 1.. run function base_conv:convert -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/dump_out_to_temp.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage parse:list temp_out append from storage parse:main out[0] 2 | data remove storage parse:main out[0] 3 | execute if data storage parse:main out[0] run function parser:array/dump_out_to_temp -------------------------------------------------------------------------------- /old/parser/data/parser/functions/copy/array/copy_array.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players set array_bracket_count= parse.main 1 2 | scoreboard players set array_quote_count= parse.main 0 3 | scoreboard players set array_quote_tog= parse.main 0 4 | function parser:copy/array/value -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/cont/pro/object_parse.mcfunction: -------------------------------------------------------------------------------- 1 | #backing up data 2 | function parser:array/cont/pro/backup 3 | 4 | #parsing pre-processed objects 5 | function parser:array/cont/pro/parse_call 6 | 7 | #restoring data 8 | function parser:array/cont/pro/restore -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/async/found_one.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players add $foundX string 1 2 | execute if score $foundX string matches 15 run function string:run/async/decrement 3 | execute if score $foundX string matches 15 run scoreboard players set $foundX string 0 -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/async/tick_start.mcfunction: -------------------------------------------------------------------------------- 1 | execute store result score $iterations_left string run data get storage string:internal async.iterations 2 | setblock -30000000 1 74062 minecraft:chain_command_block[facing=north]{Command:"help me",auto:1b} destroy -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/start_char.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players operation $half string = $total string 2 | scoreboard players add $half string 1 3 | scoreboard players operation $half string /= $2 string 4 | scoreboard players operation $current string = $half string -------------------------------------------------------------------------------- /old/base64/data/base64/functions/out/bits_interp.mcfunction: -------------------------------------------------------------------------------- 1 | #bit reading 2 | function base64:out/read_bits 3 | 4 | function base64:out/write_byte 5 | scoreboard players reset * base64.num 6 | 7 | #loop 8 | execute if data storage base64:main bits[7] run function base64:out/bits_interp -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/prep_for_parse.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage parse:list Value set value {ArrayType:"",List:[]} 2 | data modify storage parse:list in set from storage parse:list temp_out[-1].Value 3 | data modify storage parse:list temp_out[-1].Value set value {} -------------------------------------------------------------------------------- /old/parser/data/parser/functions/copy/transfer_name_char.mcfunction: -------------------------------------------------------------------------------- 1 | #copies character from check register into name array 2 | execute unless data storage parse:main {check:"\\"} run data modify storage parse:main pair.Name append from storage parse:main check 3 | function parser:copy/name -------------------------------------------------------------------------------- /old/parser/data/parser/functions/extra/add_dec_pos.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players remove dec= parse.main 1 2 | execute store result storage parse:num check int 1 run scoreboard players get dec= parse.main 3 | data modify storage parse:main temp.array append from storage parse:num check -------------------------------------------------------------------------------- /old/parser/data/parser/functions/res/scan_for_unresolved.mcfunction: -------------------------------------------------------------------------------- 1 | #this function looks for the first unresolved object available 2 | function c:nvc 3 | execute unless data storage parse:main {check:{Type:"object",Extra:["unresolved"]}} run function parser:res/scan_for_unresolved_retry -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/number/add_dec_pos.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players remove dec= parse.main 1 2 | execute store result storage parse:num check int 1 run scoreboard players get dec= parse.main 3 | data modify storage parse:list temp_val append from storage parse:num check -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/callback.mcfunction: -------------------------------------------------------------------------------- 1 | # Does a callback 2 | data modify block -30000000 1 74062 Command set from storage string:internal callback.command 3 | # Sets a callback ID 4 | execute store result score $callback string run data get storage string:internal callback.id -------------------------------------------------------------------------------- /old/base64/data/base64/functions/call.mcfunction: -------------------------------------------------------------------------------- 1 | #copying from io in 2 | data modify storage base64:in string set from storage base64:io in 3 | 4 | #runs base64 converter 5 | function base64:convert 6 | 7 | #coying from print out 8 | data modify storage base64:io out set from storage ascii:main text -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/number/next_num.mcfunction: -------------------------------------------------------------------------------- 1 | data remove storage parse:list in[0] 2 | data modify storage parse:list check set from storage parse:list in[0] 3 | execute unless data storage parse:list {check:","} if data storage parse:list in[0] run function parser:array/number/write_nums -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/string/write_char.mcfunction: -------------------------------------------------------------------------------- 1 | #writing char from check to temp_val array and looping 2 | execute unless data storage parse:list {check:"\\"} run data modify storage parse:list temp_val append from storage parse:list check 3 | function parser:array/string/string_write -------------------------------------------------------------------------------- /old/parser/data/parser/functions/copy/basic/transfer_value_char.mcfunction: -------------------------------------------------------------------------------- 1 | #copies character from check register into value array 2 | execute unless data storage parse:main {check:"\\"} run data modify storage parse:main pair.Value append from storage parse:main check 3 | function parser:copy/basic/value -------------------------------------------------------------------------------- /old/parser/data/parser/functions/write_nv_to_out.mcfunction: -------------------------------------------------------------------------------- 1 | #writes the finished name value pair to the output array 2 | execute unless data storage parse:main {pair:{Name: []}} run data modify storage parse:main out append from storage parse:main pair 3 | data modify storage parse:main pair set value {} 4 | -------------------------------------------------------------------------------- /old/strings/data/regex/functions/check_empty.mcfunction: -------------------------------------------------------------------------------- 1 | execute unless data storage regex:main cur_regex[0] run scoreboard players add index regex 1 2 | execute unless data storage regex:main cur_regex[0] run function regex:found/all 3 | execute if data storage regex:main cur_regex[0] run function regex:check -------------------------------------------------------------------------------- /old/base64/data/base64/functions/callio.mcfunction: -------------------------------------------------------------------------------- 1 | #copying from io in 2 | data modify storage base64:in string set from storage universal:strings io 3 | 4 | #runs base64 converter 5 | function base64:convert 6 | 7 | #coying from print out 8 | data modify storage universal:strings io set from storage ascii:main text -------------------------------------------------------------------------------- /old/parser/data/parser/functions/res/return_pairs.mcfunction: -------------------------------------------------------------------------------- 1 | #returns all pairs back into main out array 2 | data modify storage parse:main out prepend from storage parse:obj temp_out[0] 3 | data remove storage parse:obj temp_out[0] 4 | execute if data storage parse:obj temp_out[0] run function parser:res/return_pairs -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/interp_bits.mcfunction: -------------------------------------------------------------------------------- 1 | #char to value 2 | function base64:in/get_value 3 | 4 | #removing current char 5 | data remove storage base64:in string[0] 6 | scoreboard players reset * base64.num 7 | 8 | #loop 9 | execute if data storage base64:in string[0] run function base64:in/interp_bits -------------------------------------------------------------------------------- /old/strings/data/regex/functions/compare/not_default/4_6.mcfunction: -------------------------------------------------------------------------------- 1 | execute if score cur_regex_char regex matches 4 run function regex:compare/letter 2 | execute if score cur_regex_char regex matches 5 run function regex:compare/not_letter 3 | execute if score cur_regex_char regex matches 6 run function regex:compare/digit -------------------------------------------------------------------------------- /old/strings/data/regex/functions/compare/not_default/1_3.mcfunction: -------------------------------------------------------------------------------- 1 | execute if score cur_regex_char regex matches 1 run function regex:compare/lower_case 2 | execute if score cur_regex_char regex matches 2 run function regex:compare/upper_case 3 | execute if score cur_regex_char regex matches 3 run function regex:compare/true -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/cont/pro/backup.mcfunction: -------------------------------------------------------------------------------- 1 | #placing all current data into hold arrays 2 | data modify storage parse:hold list prepend from storage parse:list {} 3 | data modify storage parse:hold main prepend from storage parse:main {} 4 | data modify storage parse:hold obj prepend from storage parse:obj {} -------------------------------------------------------------------------------- /old/parser/data/parser/functions/scan_for_name_start.mcfunction: -------------------------------------------------------------------------------- 1 | #clears out data until the next quote 2 | data modify storage parse:main check set from storage parse:main in[0] 3 | function c:oec 4 | execute unless data storage parse:main {check:'"'} unless data storage parse:main {check:"end"} run function parser:name_start_retry -------------------------------------------------------------------------------- /old/parser/data/parser/functions/extra/num_flat.mcfunction: -------------------------------------------------------------------------------- 1 | #converts all numbers into a single value 2 | data modify storage parse:num in set from storage parse:main temp.array 3 | function parser:num/flatten 4 | 5 | #putting flattened value into value array 6 | data modify storage parse:main pair.Value set from storage parse:num out -------------------------------------------------------------------------------- /old/parser/data/rev_conv/functions/conv/reverse_input.mcfunction: -------------------------------------------------------------------------------- 1 | #this reverses the input array for the base calculation 2 | data modify storage rev_conv:main rev prepend from storage rev_conv:main in[0] 3 | data remove storage rev_conv:main in[0] 4 | execute if data storage rev_conv:main in[0] run function rev_conv:conv/reverse_input -------------------------------------------------------------------------------- /old/strings/data/regex/functions/compare/not_default/7_9.mcfunction: -------------------------------------------------------------------------------- 1 | execute if score cur_regex_char regex matches 7 run function regex:compare/not_digit 2 | execute if score cur_regex_char regex matches 8 run function regex:compare/white_space 3 | execute if score cur_regex_char regex matches 9 run function regex:compare/not_white_space -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/compare_prepare.mcfunction: -------------------------------------------------------------------------------- 1 | # Adds the two first enchants to the tags so that they can be sorted 2 | data modify entity 00000000-0073-9653-0000-000000000000 Tags append from block ~ ~ ~2 LastOutput 3 | data modify entity 00000000-0073-9653-0000-000000000000 Tags append from block ~ ~ ~1 LastOutput -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/parallel/start.mcfunction: -------------------------------------------------------------------------------- 1 | setblock -29999999 1 74063 minecraft:repeating_command_block[facing=up]{auto:1b} 2 | data modify block -29999999 1 74063 Command set from storage string:internal callback.command 3 | execute store result score $callback string run data get storage string:internal callback.id -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/cont/seek_open.mcfunction: -------------------------------------------------------------------------------- 1 | #finds the first [ or { 2 | data modify storage parse:list check set from storage parse:list in[0] 3 | execute if data storage parse:list in[0] unless data storage parse:list {check:"["} unless data storage parse:list {check:"{"} run function parser:array/cont/seek_open_retry -------------------------------------------------------------------------------- /old/parser/data/parser/functions/res/new_unres_found.mcfunction: -------------------------------------------------------------------------------- 1 | #runs if new unresolved object is found within another unresolved object and resolves it instead 2 | execute if data storage parse:obj temp_obj[0] run function parser:res/temp_object_dump 3 | 4 | #starts object res over for new found object 5 | function parser:res/do_resolve -------------------------------------------------------------------------------- /old/parser/data/parser/functions/res/temp_object_dump.mcfunction: -------------------------------------------------------------------------------- 1 | #moves all entries from temp_obj to temp_out in reverse order 2 | data modify storage parse:obj temp_out prepend from storage parse:obj temp_obj[0] 3 | data remove storage parse:obj temp_obj[0] 4 | execute if data storage parse:obj temp_obj[0] run function parser:res/temp_object_dump -------------------------------------------------------------------------------- /old/strings/data/ntca/functions/call.mcfunction: -------------------------------------------------------------------------------- 1 | # Number to Char Array 2 | data merge storage ntca:io {out:[]} 3 | execute store result score $ntca ntca run data get storage ntca:io in 4 | execute if score $ntca ntca matches ..0 run function ntca:internal/special 5 | execute unless score $ntca ntca matches 0 run function ntca:internal/digit_rec -------------------------------------------------------------------------------- /old/strings/data/substring/functions/internal/length.mcfunction: -------------------------------------------------------------------------------- 1 | execute if score $length substring matches 1.. run data remove storage substring:io out[-1] 2 | execute if score $length substring matches 1.. run scoreboard players remove $length substring 1 3 | execute if score $length substring matches 1.. run function substring:internal/length -------------------------------------------------------------------------------- /old/parser/data/base_conv/functions/convert/start.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players operation add= base_conv.num = in= base_conv.num 2 | scoreboard players operation hold= base_conv.num = add= base_conv.num 3 | scoreboard players operation hold= base_conv.num /= base= base_conv.num 4 | scoreboard players operation hold= base_conv.num *= base= base_conv.num -------------------------------------------------------------------------------- /old/parser/data/parser/functions/call_nv_pair.mcfunction: -------------------------------------------------------------------------------- 1 | #runs all functions to move a name/value pair to out 2 | function parser:generate_pair 3 | function c:ctc 4 | function parser:copy/name 5 | function parser:detect_type 6 | function parser:copy/type_call 7 | function parser:copy/type_resolve 8 | function parser:write_nv_to_out 9 | function c:oec -------------------------------------------------------------------------------- /old/strings/data/regex/functions/compare/not_default.mcfunction: -------------------------------------------------------------------------------- 1 | execute if score cur_regex_char regex matches 1..3 run function regex:compare/not_default/1_3 2 | execute if score cur_regex_char regex matches 4..6 run function regex:compare/not_default/4_6 3 | execute if score cur_regex_char regex matches 7..9 run function regex:compare/not_default/7_9 -------------------------------------------------------------------------------- /old/parser/data/base_conv/functions/convert/next.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players operation add= base_conv.num /= base= base_conv.num 2 | scoreboard players operation hold= base_conv.num = add= base_conv.num 3 | scoreboard players operation hold= base_conv.num /= base= base_conv.num 4 | scoreboard players operation hold= base_conv.num *= base= base_conv.num -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/parallel/continue.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage string:io out set from storage string:out parallel 2 | execute if score $iterations_left string matches 1 run data modify storage string:out parallel set value [] 3 | execute if score $searching string matches -1 run data modify storage string:out parallel set value [] -------------------------------------------------------------------------------- /old/parser/data/parser/functions/copy/type_resolve.mcfunction: -------------------------------------------------------------------------------- 1 | execute if data storage parse:main {pair:{Type:"number"}} run function parser:extra/number 2 | execute if data storage parse:main {pair:{Type:"object"}} run function parser:extra/add_object_notes 3 | execute if data storage parse:main {pair:{Type:"array"}} run function parser:extra/add_array_notes -------------------------------------------------------------------------------- /old/strings/data/ntca/functions/internal/digits/0_2.mcfunction: -------------------------------------------------------------------------------- 1 | execute if score $ntca.last ntca matches 0 run data modify storage ntca:io out prepend value "0" 2 | execute if score $ntca.last ntca matches 1 run data modify storage ntca:io out prepend value "1" 3 | execute if score $ntca.last ntca matches 2 run data modify storage ntca:io out prepend value "2" -------------------------------------------------------------------------------- /old/strings/data/ntca/functions/internal/digits/7_9.mcfunction: -------------------------------------------------------------------------------- 1 | execute if score $ntca.last ntca matches 7 run data modify storage ntca:io out prepend value "7" 2 | execute if score $ntca.last ntca matches 8 run data modify storage ntca:io out prepend value "8" 3 | execute if score $ntca.last ntca matches 9 run data modify storage ntca:io out prepend value "9" -------------------------------------------------------------------------------- /old/base64/data/print/functions/output_ascii.mcfunction: -------------------------------------------------------------------------------- 1 | #moving current byte into temp position 2 | data modify storage ascii:main temp set from storage ascii:main bytes[0] 3 | data remove storage ascii:main bytes[0] 4 | 5 | #writing character 6 | function print:print_char 7 | 8 | #loop 9 | execute if data storage ascii:main bytes[0] run function print:output_ascii -------------------------------------------------------------------------------- /old/parser/data/parser/functions/extra/num_check.mcfunction: -------------------------------------------------------------------------------- 1 | #checking array length 2 | 3 | ##if less than 10 values it will flatten number 4 | execute unless data storage parse:main temp.array[11] run function parser:extra/num_flat 5 | 6 | ##if not it just copies array to value 7 | execute if data storage parse:main temp.array[11] run function parser:extra/long_num -------------------------------------------------------------------------------- /old/strings/data/regex/functions/restart/point.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage regex:main points append value {regex:0,string:0,out:[],out_ind:[]} 2 | execute store result storage regex:main points[-1].regex int 1 run scoreboard players get rindex regex 3 | execute store result storage regex:main points[-1].string int 1 run scoreboard players get start_string regex 4 | -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/async/decrement.mcfunction: -------------------------------------------------------------------------------- 1 | execute store result score $decrement string run data get storage string:internal async.iterations 2 | execute store result storage string:internal async.iterations int 1 if score $decrement string matches 5.. run scoreboard players remove $decrement string 1 3 | scoreboard players reset $decrement string -------------------------------------------------------------------------------- /old/applications/data/application_name/functions/internal/force_shorten.mcfunction: -------------------------------------------------------------------------------- 1 | data merge storage substring:io {in:{start:0,length:7}} 2 | data modify storage substring:io in.string set from storage simplify:main out 3 | function substring:call 4 | data modify storage simplify:main out set from storage substring:io out 5 | data modify storage simplify:main out append value "." -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/cont/array_parse.mcfunction: -------------------------------------------------------------------------------- 1 | #backing up data 2 | function parser:array/cont/pro/backup 3 | data merge storage parse:list {Value:{ArrayType:"",List:[]},in:[],temp_list:[],temp_val:[],temp_out:[]} 4 | 5 | #parsing pre-processed arrays 6 | function parser:array/cont/array_call 7 | 8 | #restoring data 9 | function parser:array/cont/pro/restore -------------------------------------------------------------------------------- /old/parser/data/parser/functions/copy/name.mcfunction: -------------------------------------------------------------------------------- 1 | #this copies the name of a pair until it hits a '"' 2 | function c:ctc 3 | 4 | #escape char handling 5 | execute if data storage parse:main {check:"\\"} run function parser:copy/escaped_char_name 6 | 7 | execute if data storage parse:main in[0] unless data storage parse:main {check:'"'} run function parser:copy/transfer_name_char -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/number/flatten.mcfunction: -------------------------------------------------------------------------------- 1 | #converts all numbers into a single value 2 | data modify storage parse:num in set from storage parse:list temp_val 3 | function parser:num/flatten 4 | 5 | #putting flattened value into value array 6 | data modify storage parse:list temp_val set value {num:0} 7 | data modify storage parse:list temp_val.num set from storage parse:num out -------------------------------------------------------------------------------- /old/strings/data/regex/functions/reset/end.mcfunction: -------------------------------------------------------------------------------- 1 | data remove storage regex:main quantifier 2 | data remove storage regex:main quantifier2 3 | data remove storage regex:main quantifier3 4 | data remove storage regex:main quantifier4 5 | data remove storage regex:main out 6 | scoreboard players reset quantifier_calc regex 7 | scoreboard players reset quantifier_calc_count regex 8 | ## temp function -------------------------------------------------------------------------------- /old/strings/data/regex/functions/quantifier/type/0_l.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players set quantifier_min regex 0 2 | function regex:quantifier/or_more 3 | 4 | # Default Quant Commands 5 | scoreboard players add rindex regex 1 6 | data remove storage regex:main cur_regex[0] 7 | scoreboard players operation count regex = quantifier_max regex 8 | scoreboard players operation min regex = quantifier_min regex -------------------------------------------------------------------------------- /old/strings/data/regex/functions/quantifier/type/1_l.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players set quantifier_min regex 1 2 | function regex:quantifier/or_more 3 | 4 | # Default Quant Commands 5 | scoreboard players add rindex regex 1 6 | data remove storage regex:main cur_regex[0] 7 | scoreboard players operation count regex = quantifier_max regex 8 | scoreboard players operation min regex = quantifier_min regex -------------------------------------------------------------------------------- /old/strings/data/regex/functions/quantifier/type/0_1.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players set quantifier_min regex 0 2 | scoreboard players set quantifier_max regex 1 3 | 4 | # Default Quant Commands 5 | scoreboard players add rindex regex 1 6 | data remove storage regex:main cur_regex[0] 7 | scoreboard players operation count regex = quantifier_max regex 8 | scoreboard players operation min regex = quantifier_min regex -------------------------------------------------------------------------------- /old/examples/data/example/functions/1_basic.mcfunction: -------------------------------------------------------------------------------- 1 | tellraw @a ["\n"] 2 | # Input a string 3 | data modify storage string:io queue append value {string:"abc"} 4 | tellraw @a ["[#01] Input: ",{"storage":"string:io","nbt":"queue[-1].string","interpret":false}] 5 | 6 | # Read the string 7 | function string:call 8 | 9 | # Wait a tick until it's done & Print output 10 | schedule function example:1_basic_pt2 3t -------------------------------------------------------------------------------- /old/examples/data/example/functions/2_callback.mcfunction: -------------------------------------------------------------------------------- 1 | tellraw @a ["\n"] 2 | # Input a string & provide a function to be called once it's done 3 | data modify storage string:io queue append value {string:"abc",callback:{command:"function example:2_callback_pt2"}} 4 | tellraw @a ["[#02] Input: ",{"storage":"string:io","nbt":"queue[-1].string","interpret":false}] 5 | 6 | # Read the string 7 | function string:call 8 | -------------------------------------------------------------------------------- /old/strings/data/substring/functions/internal/start.mcfunction: -------------------------------------------------------------------------------- 1 | execute if score $start substring matches 1.. run data remove storage substring:io out[0] 2 | execute if score $start substring matches 1.. run scoreboard players remove $start substring 1 3 | execute if score $start substring matches 0 run function substring:internal/length 4 | execute if score $start substring matches 1.. run function substring:internal/start -------------------------------------------------------------------------------- /old/applications/data/application_cape/functions/internal/callback.mcfunction: -------------------------------------------------------------------------------- 1 | function base64:callio 2 | function parser:callio 3 | execute store result score @s player_model if data storage parse:main out[{Name:["main"]}].Value[{Name:[t,e,x,t,u,r,e,s]}].Value[{Name:[S,K,I,N]}].Value[{Name:[m,e,t,a,d,a,t,a]}].Value[{Name:[m,o,d,e,l]}].Value 4 | function application_cape:internal/check 5 | function application_cape:internal/clear -------------------------------------------------------------------------------- /old/strings/data/regex/functions/check_string_1.mcfunction: -------------------------------------------------------------------------------- 1 | execute if score found regex >= min regex run function regex:found/not 2 | execute if score found regex >= min regex if data storage regex:main cur_regex[0] run function regex:check 3 | execute if data storage regex:main cur_out[0] if score count regex matches 0.. if score found regex >= min regex unless data storage regex:main cur_regex[0] run function regex:found/all -------------------------------------------------------------------------------- /old/base64/data/base64/functions/setup.mcfunction: -------------------------------------------------------------------------------- 1 | data remove storage base64:in string 2 | data remove storage base64:main bits 3 | data remove storage base64:out bytes 4 | 5 | data merge storage base64:in {temp:"",string:[]} 6 | data merge storage base64:main {temp:0b,bits:[]} 7 | data merge storage base64:out {temp:0b,bytes:[]} 8 | 9 | scoreboard objectives add base64.num dummy 10 | scoreboard players reset * base64.num -------------------------------------------------------------------------------- /old/parser/data/parser/functions/copy/array/transfer_value_char.mcfunction: -------------------------------------------------------------------------------- 1 | #copies character from check register into value array 2 | execute unless data storage parse:main {check:"\\"} run data modify storage parse:main pair.Value append from storage parse:main check 3 | execute if data storage parse:main {check:"\\"} run data modify storage parse:main pair.Value insert -2 from storage parse:main check 4 | function parser:copy/array/value -------------------------------------------------------------------------------- /old/parser/data/parser/functions/copy/array/quote_toggle.mcfunction: -------------------------------------------------------------------------------- 1 | #toggles quote count value 2 | scoreboard players set array_quote_tog= parse.main 1 3 | 4 | execute if score array_quote_count= parse.main matches 1 if score array_quote_tog= parse.main matches 1 run function parser:copy/array/quote_off 5 | execute if score array_quote_count= parse.main matches 0 if score array_quote_tog= parse.main matches 1 run function parser:copy/array/quote_on -------------------------------------------------------------------------------- /old/base64/README.md: -------------------------------------------------------------------------------- 1 | ## Module - Base64 2 | #### Basic Instructions 3 | 1. `/data modify storage base64:io in set value ["S", "G", "V", "s", "b", "G", "8", "g", "V", "2", "9", "y", "b", "G", "Q", "h"]` 4 | 2. `/function base64:call` 5 | 3. `/data get base64:io out` to read the output 6 | 7 | #### Other Instructions 8 | - `/function print:call` converts an array of bytes in the `storage ascii:main bytes` into ascii characters (ascii values 32 to 126) 9 | -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/string/string_write.mcfunction: -------------------------------------------------------------------------------- 1 | #writing char to check register 2 | data modify storage parse:list check set from storage parse:list in[0] 3 | data remove storage parse:list in[0] 4 | 5 | #escape char handling 6 | execute if data storage parse:list {check:"\\"} run function parser:array/string/escaped_char 7 | 8 | 9 | execute unless data storage parse:list {check:'"'} run function parser:array/string/write_char -------------------------------------------------------------------------------- /old/strings/data/regex/functions/check_string_0.mcfunction: -------------------------------------------------------------------------------- 1 | function regex:found/one 2 | execute if score count regex matches 1.. run function regex:check_string 3 | execute if score success regex matches 0 if score count regex matches 0 if data storage regex:main cur_regex[0] run function regex:check 4 | execute if score success regex matches 0 if score count regex matches 0 unless data storage regex:main cur_regex[0] run function regex:found/all 5 | -------------------------------------------------------------------------------- /old/base64/data/base64/functions/convert.mcfunction: -------------------------------------------------------------------------------- 1 | #init 2 | data remove storage base64:out bytes 3 | 4 | #base64 to bits 5 | function base64:in/interp_bits 6 | 7 | #bits to bytes 8 | function base64:out/bits_interp 9 | data modify storage base64:main bits set value [] 10 | data modify storage base64:in string set value [] 11 | 12 | #bytes to chars 13 | data modify storage ascii:main bytes set from storage base64:out bytes 14 | function print:call -------------------------------------------------------------------------------- /old/parser/data/parser/functions/extra/num_array_convert.mcfunction: -------------------------------------------------------------------------------- 1 | #shifting current number into check register 2 | data modify storage parse:main check set from storage parse:main pair.Value[0] 3 | data remove storage parse:main pair.Value[0] 4 | 5 | #converting char to number and storing into temp array 6 | function parser:extra/nac/char_to_num 7 | 8 | #loop 9 | execute if data storage parse:main pair.Value[0] run function parser:extra/num_array_convert -------------------------------------------------------------------------------- /old/strings/data/ntca/functions/internal/digits/3_6.mcfunction: -------------------------------------------------------------------------------- 1 | execute if score $ntca.last ntca matches 3 run data modify storage ntca:io out prepend value "3" 2 | execute if score $ntca.last ntca matches 4 run data modify storage ntca:io out prepend value "4" 3 | execute if score $ntca.last ntca matches 5 run data modify storage ntca:io out prepend value "5" 4 | execute if score $ntca.last ntca matches 6 run data modify storage ntca:io out prepend value "6" -------------------------------------------------------------------------------- /old/strings/data/regex/functions/quantifier/decrease.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players operation quantifier_index regex = rindex regex 2 | data modify storage regex:main cur_regex set from storage regex:main int_regex 3 | data modify storage regex:main temp_regex set value [] 4 | function regex:quantifier/replace 5 | data modify storage regex:main cur_regex set from storage regex:main temp_regex 6 | #tellraw @a ["dcr: ",{"nbt":"cur_regex","storage":"regex:main"}] -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/cont/transfer_char.mcfunction: -------------------------------------------------------------------------------- 1 | execute unless data storage parse:list {check:"\\"} run data modify storage parse:list temp_val append from storage parse:list check 2 | execute if data storage parse:list {check:"\\"} run data modify storage parse:list temp_val insert -2 from storage parse:list check 3 | execute if data storage parse:list in[0] if score array_bracket_count= parse.main matches 1.. run function parser:array/cont/copy_chars -------------------------------------------------------------------------------- /old/base64/data/base64/functions/load.mcfunction: -------------------------------------------------------------------------------- 1 | data remove storage base64:in string 2 | data remove storage base64:main bits 3 | data remove storage base64:out bytes 4 | 5 | data merge storage base64:in {temp:"",string:[]} 6 | data merge storage base64:main {temp:0b,bits:[]} 7 | data merge storage base64:out {temp:0b,bytes:[]} 8 | data merge storage base64:io {in:[],out:[]} 9 | 10 | scoreboard objectives add base64.num dummy 11 | scoreboard players reset * base64.num -------------------------------------------------------------------------------- /old/parser/data/parser/functions/setup.mcfunction: -------------------------------------------------------------------------------- 1 | data merge storage parse:in {in:[]} 2 | data merge storage parse:list {Value:{ArrayType:"",List:[]},in:[],temp_list:[],temp_val:[],temp_out:[]} 3 | data merge storage parse:hold {list:[],main:[],obj:[]} 4 | 5 | scoreboard objectives add parse.main dummy 6 | 7 | scoreboard players set array_quote_tog= parse.main 0 8 | scoreboard players set array_quote_count= parse.main 0 9 | scoreboard players set array_bracket_count= parse.main 0 -------------------------------------------------------------------------------- /old/parser/data/rev_conv/functions/call.mcfunction: -------------------------------------------------------------------------------- 1 | #setting up values and clearing data 2 | data modify storage rev_conv:main rev set value [] 3 | scoreboard players set mult= rev_conv.num 1 4 | scoreboard players set out= rev_conv.num 0 5 | 6 | #reversing input array 7 | function rev_conv:conv/reverse_input 8 | 9 | #doing calculation 10 | function rev_conv:conv/calc 11 | 12 | execute store result storage rev_conv:main out int 1 run scoreboard players get out= rev_conv.num -------------------------------------------------------------------------------- /old/strings/data/regex/functions/quantifier/custom/0_2.mcfunction: -------------------------------------------------------------------------------- 1 | execute if data storage regex:main {quantifier4:"0"} run scoreboard players set quantifier_calc regex 0 2 | execute if data storage regex:main {quantifier4:"1"} run scoreboard players set quantifier_calc regex 1 3 | execute if data storage regex:main {quantifier4:"2"} run scoreboard players set quantifier_calc regex 2 4 | execute unless score quantifier_calc regex matches 0.. run function regex:quantifier/custom/3_5 -------------------------------------------------------------------------------- /old/strings/data/regex/functions/quantifier/custom/3_5.mcfunction: -------------------------------------------------------------------------------- 1 | execute if data storage regex:main {quantifier4:"3"} run scoreboard players set quantifier_calc regex 3 2 | execute if data storage regex:main {quantifier4:"4"} run scoreboard players set quantifier_calc regex 4 3 | execute if data storage regex:main {quantifier4:"5"} run scoreboard players set quantifier_calc regex 5 4 | execute unless score quantifier_calc regex matches 0.. run function regex:quantifier/custom/6_9 -------------------------------------------------------------------------------- /old/strings/data/regex/functions/quantifier/custom/6_9.mcfunction: -------------------------------------------------------------------------------- 1 | execute if data storage regex:main {quantifier4:"6"} run scoreboard players set quantifier_calc regex 6 2 | execute if data storage regex:main {quantifier4:"7"} run scoreboard players set quantifier_calc regex 7 3 | execute if data storage regex:main {quantifier4:"8"} run scoreboard players set quantifier_calc regex 8 4 | execute if data storage regex:main {quantifier4:"9"} run scoreboard players set quantifier_calc regex 9 -------------------------------------------------------------------------------- /old/strings/data/ntca/functions/internal/digit.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players operation $ntca.last ntca = $ntca ntca 2 | scoreboard players operation $ntca ntca /= $10 ntca 3 | scoreboard players operation $ntca.last ntca %= $10 ntca 4 | execute if score $ntca.last ntca matches 0..2 run function ntca:internal/digits/0_2 5 | execute if score $ntca.last ntca matches 3..6 run function ntca:internal/digits/3_6 6 | execute if score $ntca.last ntca matches 7..9 run function ntca:internal/digits/7_9 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/0.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #A - 0 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/1.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #B - 1 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/10.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #K - 10 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/11.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #L - 11 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/12.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #M - 12 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/13.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #N - 13 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/14.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #O - 14 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/15.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #P - 15 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/16.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #Q - 16 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/17.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #R - 17 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/18.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #S - 18 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/19.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #T - 19 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/2.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #C - 2 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/20.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #U - 20 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/21.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #V - 21 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/22.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #W - 22 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/23.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #X - 23 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/24.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #Y - 24 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/25.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #Z - 25 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/26.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #a - 26 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/27.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #b - 27 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/28.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #c - 28 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/29.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #d - 29 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/3.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #D - 3 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/30.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #e - 30 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/31.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #f - 31 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/32.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #g - 32 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/33.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #h - 33 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/34.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #i - 34 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/35.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #j - 35 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/36.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #k - 36 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/37.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #l - 37 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/38.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #m - 38 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/39.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #n - 39 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/4.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #E - 4 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/40.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #o - 40 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/41.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #p - 41 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/42.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #q - 42 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/43.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #r - 43 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/44.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #s - 44 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/45.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #t - 45 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/46.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #u - 46 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/47.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #v - 47 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/48.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #w - 48 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/49.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #x - 49 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/5.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #F - 5 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/50.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #y - 50 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/51.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #z - 51 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/52.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #0 - 52 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/53.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #1 - 53 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/54.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #2 - 54 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/55.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #3 - 55 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/56.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #4 - 56 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/57.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #5 - 57 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/58.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #6 - 58 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/59.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #7 - 59 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/6.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #G - 6 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/60.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #8 - 60 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/61.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #9 - 61 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/62.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #+ - 62 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/63.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #/ - 63 3 | 4 | data modify storage base64:main bits append value 1b 5 | data modify storage base64:main bits append value 1b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/7.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #H - 7 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 0b 7 | data modify storage base64:main bits append value 1b 8 | data modify storage base64:main bits append value 1b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/8.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #I - 8 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 0b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/bits/9.mcfunction: -------------------------------------------------------------------------------- 1 | #adding bits in order 2 | #J - 9 3 | 4 | data modify storage base64:main bits append value 0b 5 | data modify storage base64:main bits append value 0b 6 | data modify storage base64:main bits append value 1b 7 | data modify storage base64:main bits append value 0b 8 | data modify storage base64:main bits append value 0b 9 | data modify storage base64:main bits append value 1b 10 | 11 | scoreboard players set char_found= base64.num 1 -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/do_type.mcfunction: -------------------------------------------------------------------------------- 1 | execute if data storage parse:list {Value:{ArrayType:"number"}} run function parser:array/number/num_copy 2 | execute if data storage parse:list {Value:{ArrayType:"string"}} run function parser:array/string/copy_strings 3 | 4 | execute if data storage parse:list {Value:{ArrayType:"array"}} run function parser:array/cont/do_cont 5 | execute if data storage parse:list {Value:{ArrayType:"object"}} run function parser:array/cont/do_cont 6 | -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/find_unresolved.mcfunction: -------------------------------------------------------------------------------- 1 | #moving data from out to temp out and setting check value 2 | data modify storage parse:list temp_out append from storage parse:main out[0] 3 | data remove storage parse:main out[0] 4 | data modify storage parse:list check set from storage parse:list temp_out[-1] 5 | 6 | #looping if unresolved isn't found 7 | execute unless data storage parse:list {check:{Type:"array",Extra:["unresolved"]}} run function parser:array/find_unresolved -------------------------------------------------------------------------------- /old/examples/data/example/loot_tables/get/skull.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "minecraft:entity", 3 | "pools": [ 4 | { 5 | "rolls": 1, 6 | "entries": [ 7 | { 8 | "type": "minecraft:item", 9 | "name": "minecraft:player_head", 10 | "functions": [ 11 | { 12 | "function": "minecraft:fill_player_head", 13 | "entity": "this" 14 | } 15 | ] 16 | } 17 | ] 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/do_array.mcfunction: -------------------------------------------------------------------------------- 1 | #setup 2 | data merge storage parse:list {Value:{ArrayType:"",List:[]},in:[],temp_list:[],temp_val:[],temp_out:[]} 3 | 4 | #parsing all arrays 5 | function parser:array/check 6 | 7 | #dumping the remaining pairs into the temp out array then restoring the out array 8 | function parser:array/dump_out_to_temp 9 | data modify storage parse:main out set from storage parse:list temp_out 10 | data modify storage parse:list check set value {} -------------------------------------------------------------------------------- /old/parser/data/base_conv/functions/call.mcfunction: -------------------------------------------------------------------------------- 1 | #clears previous outputs 2 | data modify storage base_conv:main out set value [] 3 | 4 | #init 5 | function base_conv:convert/start 6 | execute if score in= base_conv.num matches 1.. run function base_conv:convert 7 | 8 | #output 9 | execute store result storage base_conv:main in int 1 run scoreboard players get in= base_conv.num 10 | tellraw @a [{"nbt":"in","storage":"base_conv:main"}," converted to: ",{"nbt":"out","storage":"base_conv:main"}] -------------------------------------------------------------------------------- /old/applications/data/application_cape/loot_tables/get/skull.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "minecraft:entity", 3 | "pools": [ 4 | { 5 | "rolls": 1, 6 | "entries": [ 7 | { 8 | "type": "minecraft:item", 9 | "name": "minecraft:player_head", 10 | "functions": [ 11 | { 12 | "function": "minecraft:fill_player_head", 13 | "entity": "this" 14 | } 15 | ] 16 | } 17 | ] 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /old/applications/data/application_name/loot_tables/get/skull.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "minecraft:entity", 3 | "pools": [ 4 | { 5 | "rolls": 1, 6 | "entries": [ 7 | { 8 | "type": "minecraft:item", 9 | "name": "minecraft:player_head", 10 | "functions": [ 11 | { 12 | "function": "minecraft:fill_player_head", 13 | "entity": "this" 14 | } 15 | ] 16 | } 17 | ] 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /old/strings/data/regex/functions/found/one.mcfunction: -------------------------------------------------------------------------------- 1 | #tellraw @a ">> f/o" 2 | ### a single character has been found 3 | 4 | # add character to output 5 | data modify storage regex:main cur_out append from storage regex:main cur_char 6 | 7 | # add index to output 8 | data modify storage regex:main cur_out_ind append value 0 9 | execute store result storage regex:main cur_out_ind[-1] int 1 run scoreboard players get index regex 10 | 11 | # Increment found counter 12 | scoreboard players add found regex 1 -------------------------------------------------------------------------------- /old/parser/data/parser/functions/copy/type_call.mcfunction: -------------------------------------------------------------------------------- 1 | execute if data storage parse:main {pair:{Type:"string"}} run function c:ctc 2 | execute if data storage parse:main {pair:{Type:"array"}} run function c:ctc 3 | 4 | execute if data storage parse:main {pair:{Type:"string"}} run function parser:copy/basic/value 5 | execute if data storage parse:main {pair:{Type:"number"}} run function parser:copy/basic/value 6 | 7 | execute if data storage parse:main {pair:{Type:"array"}} run function parser:copy/array/copy_array -------------------------------------------------------------------------------- /old/parser/data/parser/functions/res/fill_temp_object.mcfunction: -------------------------------------------------------------------------------- 1 | #this shifts entries from the out array into the temp_object array until either an object end is found or another unresolved object is encountered 2 | 3 | #shifting entry into check register 4 | function c:nvc 5 | 6 | #checks 7 | execute if data storage parse:main {check:{Type:"object",Extra:["unresolved"]}} run function parser:res/new_unres_found 8 | execute unless data storage parse:main {check:{Type:"object_end"}} run function parser:res/pair_to_temp_obj -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/cont/do_cont.mcfunction: -------------------------------------------------------------------------------- 1 | #converting main char array into array of char arrays (outputs into list[0].temp_list) 2 | data modify storage parse:list temp_list set value [] 3 | function parser:array/cont/cont_copy 4 | 5 | #parsing object arrays 6 | execute if data storage parse:list {Value:{ArrayType:"object"}} run function parser:array/cont/pro/object_parse 7 | 8 | #parsing array arrays 9 | execute if data storage parse:list {Value:{ArrayType:"array"}} run function parser:array/cont/array_parse -------------------------------------------------------------------------------- /old/parser/data/parser/functions/load.mcfunction: -------------------------------------------------------------------------------- 1 | data merge storage parse:io {in:[],out:[]} 2 | data merge storage parse:in {in:[]} 3 | data merge storage parse:list {Value:{ArrayType:"",List:[]},in:[],temp_list:[],temp_val:[],temp_out:[]} 4 | data merge storage parse:hold {list:[],main:[],obj:[]} 5 | 6 | scoreboard objectives add parse.main dummy 7 | 8 | scoreboard players set array_quote_tog= parse.main 0 9 | scoreboard players set array_quote_count= parse.main 0 10 | scoreboard players set array_bracket_count= parse.main 0 -------------------------------------------------------------------------------- /old/parser/data/parser/functions/res/pre_resolve.mcfunction: -------------------------------------------------------------------------------- 1 | #setting up data for object condensing 2 | data modify storage parse:obj temp_out set value [] 3 | data modify storage parse:obj temp_obj set value [] 4 | 5 | #adds "main" name/value object pair 6 | data modify storage parse:main out prepend value {Value:[],Type:"object",Extra:["unresolved"],Name:["main"]} 7 | 8 | #runs object resolution 9 | execute if data storage parse:main out[{Type:"object_end"}] if data storage parse:main out[{Type:"object",Extra:["unresolved"]}] run function parser:res/resolve_objects -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/string/copy_strings.mcfunction: -------------------------------------------------------------------------------- 1 | #seeking the string 2 | function parser:array/string/seek_string 3 | 4 | #getting rid of the first quote 5 | data remove storage parse:list in[0] 6 | 7 | #copying the string 8 | function parser:array/string/string_write 9 | 10 | #copying number array to value list 11 | data modify storage parse:list Value.List append from storage parse:list temp_val 12 | data modify storage parse:list temp_val set value [] 13 | 14 | #loop 15 | execute if data storage parse:list in[0] run function parser:array/string/copy_strings -------------------------------------------------------------------------------- /old/examples/data/example/functions/7_substr_char_array.mcfunction: -------------------------------------------------------------------------------- 1 | tellraw @a ["\n"] 2 | # Simple Substring of a Char Array 3 | data merge storage substring:io {in:{string:["a","b","c"],start:0,length:2}} 4 | tellraw @a ["[#07] Input: ",{"storage":"substring:io","nbt":"in.string","interpret":false}] 5 | tellraw @a ["[#07] String: ",{"storage":"substring:io","nbt":"in.string","interpret":true}] 6 | function substring:call 7 | tellraw @a ["[#07] Output: ",{"storage":"substring:io","nbt":"out","interpret":false}] 8 | tellraw @a ["[#07] Substr: ",{"storage":"substring:io","nbt":"out","interpret":true}] -------------------------------------------------------------------------------- /old/applications/data/application_name/functions/call.mcfunction: -------------------------------------------------------------------------------- 1 | # Get Name 2 | # Setup 3 | loot replace block -30000000 10 74063 container.0 loot application_name:get/skull 4 | data modify storage string:io temp set value {string:"",callback:{command:"function application_name:internal/simplify_callback",id:1}} 5 | data modify storage string:io temp.string set from block -30000000 10 74063 Items[0].tag.SkullOwner.Name 6 | data modify storage string:io queue append from storage string:io temp 7 | function string:call 8 | 9 | scoreboard players reset * string.simplifyp 10 | scoreboard players set @s string.simplifyp 0 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/get_value.mcfunction: -------------------------------------------------------------------------------- 1 | #writing current char to temp value for detection 2 | data modify storage base64:in temp set from storage base64:in string[0] 3 | 4 | #checking char and writing bits accordingly 5 | execute unless score char_found= base64.num matches 1.. unless data storage base64:in {temp:"="} run function base64:in/values/rem 6 | execute unless score char_found= base64.num matches 1.. unless data storage base64:in {temp:"="} run function base64:in/values/cap 7 | execute unless score char_found= base64.num matches 1.. unless data storage base64:in {temp:"="} run function base64:in/values/lc -------------------------------------------------------------------------------- /old/parser/data/parser/functions/call_int.mcfunction: -------------------------------------------------------------------------------- 1 | #initialization and data transfer 2 | data merge storage parse:main {check:"",pair:{},out:[],in:[],temp:{array:[],char:"",obj:{}}} 3 | data modify storage parse:main in set from storage parse:in in 4 | data modify storage parse:main in append value "end" 5 | 6 | #starting 7 | function parser:init 8 | 9 | #array parsing 10 | execute if data storage parse:main out[{Type:"array",Extra:["unresolved"]}] run function parser:array/do_array 11 | 12 | #object condensing 13 | function parser:res/pre_resolve 14 | 15 | #fixing ts's thing 16 | gamerule sendCommandFeedback true -------------------------------------------------------------------------------- /old/strings/data/regex/functions/compare/main.mcfunction: -------------------------------------------------------------------------------- 1 | ## Compare character 2 | # 0 -> Direct Comparison 3 | # 1 -> \a lower case letter 4 | # 2 -> \A upper case letter 5 | # 3 -> . anything 6 | # 4 -> \w letter 7 | # 5 -> \W not letter 8 | # 6 -> \d digit 9 | # 7 -> \D not digit 10 | scoreboard players set success regex 1 11 | execute if score cur_regex_char regex matches 0 run function regex:compare/default 12 | execute unless score cur_regex_char regex matches 0 run function regex:compare/not_default 13 | #execute unless data storage regex:main cur_char run scoreboard players set success regex 1 -------------------------------------------------------------------------------- /old/applications/data/application_name/functions/callio.mcfunction: -------------------------------------------------------------------------------- 1 | # Get Name 2 | # Setup 3 | loot replace block -30000000 10 74063 container.0 loot application_name:get/skull 4 | data modify storage string:io temp set value {string:"",callback:{command:"function application_name:internal/simplify_callback_io",id:1}} 5 | data modify storage string:io temp.string set from block -30000000 10 74063 Items[0].tag.SkullOwner.Name 6 | data modify storage string:io queue append from storage string:io temp 7 | function string:callio 8 | 9 | scoreboard players reset * string.simplifyp 10 | scoreboard players set @s string.simplifyp 0 -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/string/escaped_char.mcfunction: -------------------------------------------------------------------------------- 1 | #moves the next value after an escape char directly to the value array 2 | data modify storage parse:list temp_val append from storage parse:list in[0] 3 | data modify storage parse:main temp.char set from storage parse:list in[0] 4 | execute if data storage parse:main {temp:{char:"n"}} run data modify storage parse:list temp_val[-1] set value "\\n" 5 | execute if data storage parse:main {temp:{char:"u"}} run data modify storage parse:list temp_val[-1] set value "\\u" 6 | data modify storage parse:main temp.char set value "" 7 | data remove storage parse:list in[0] -------------------------------------------------------------------------------- /old/parser/data/parser/functions/copy/escaped_char_val.mcfunction: -------------------------------------------------------------------------------- 1 | #moves the next value after an escape char directly to the value array 2 | data modify storage parse:main pair.Value append from storage parse:main in[0] 3 | data modify storage parse:main temp.char set from storage parse:main in[0] 4 | execute if data storage parse:main {temp:{char:"n"}} run data modify storage parse:main pair.Value[-1] set value "\\n" 5 | execute if data storage parse:main {temp:{char:"u"}} run data modify storage parse:main pair.Value[-1] set value "\\u" 6 | data modify storage parse:main temp.char set value "" 7 | data remove storage parse:main in[0] -------------------------------------------------------------------------------- /old/parser/data/rev_conv/functions/conv/calc.mcfunction: -------------------------------------------------------------------------------- 1 | #getting current value 2 | execute store result score current= rev_conv.num run data get storage rev_conv:main rev[0] 3 | data remove storage rev_conv:main rev[0] 4 | 5 | #math 6 | scoreboard players operation current= rev_conv.num *= mult= rev_conv.num 7 | scoreboard players operation out= rev_conv.num += current= rev_conv.num 8 | 9 | #prepping for next and looping 10 | execute if data storage rev_conv:main rev[0] run scoreboard players operation mult= rev_conv.num *= base= rev_conv.num 11 | execute if data storage rev_conv:main rev[0] run function rev_conv:conv/calc -------------------------------------------------------------------------------- /old/strings/data/regex/functions/found/all.mcfunction: -------------------------------------------------------------------------------- 1 | #tellraw @a ">>> f/a" 2 | # A complete result has been found 3 | data modify storage regex:main out append value {char:[],indices:[]} 4 | data modify storage regex:main out[-1].char set from storage regex:main cur_out 5 | data modify storage regex:main out[-1].indices set from storage regex:main cur_out_ind 6 | data merge storage regex:main {cur_out:[],cur_out_ind:[]} 7 | 8 | # Remove points 9 | data modify storage regex:main points set value [{regex:0,string:0}] 10 | execute store result storage regex:main points[0].string int 1 run scoreboard players get index regex 11 | -------------------------------------------------------------------------------- /old/applications/data/application_name/functions/internal/simplify.mcfunction: -------------------------------------------------------------------------------- 1 | # Get Name 2 | # Setup 3 | loot replace block -30000000 10 74063 container.0 loot application_name:get/skull 4 | data modify storage string:io temp set value {string:"",callback:{command:"function application_name:internal/simplify_callback",id:1}} 5 | data modify storage string:io temp.string set from block -30000000 10 74063 Items[0].tag.SkullOwner.Name 6 | data modify storage string:io queue append from storage string:io temp 7 | function string:call 8 | 9 | scoreboard players reset * string.simplifyp 10 | scoreboard players set @s string.simplifyp 0 -------------------------------------------------------------------------------- /old/applications/data/application_unix/functions/print.mcfunction: -------------------------------------------------------------------------------- 1 | #Example for displaying result 2 | 3 | tellraw @a [{"selector":"@e[type=minecraft:armor_stand,tag=weekday,tag=application_unix]"},{"text":", "},{"score":{"name":"$day","objective":"application_unix"}},{"text":" of "},{"selector":"@e[type=minecraft:armor_stand,tag=month,tag=application_unix]"},{"text":" "},{"score":{"name":"$year","objective":"application_unix"}}] 4 | tellraw @a [{"score":{"name":"$hour","objective":"application_unix"}},{"text":":"},{"score":{"name":"$minute","objective":"application_unix"}},{"text":":"},{"score":{"name":"$second","objective":"application_unix"}}] -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/check.mcfunction: -------------------------------------------------------------------------------- 1 | #searching for the first unresolved array and placing it at index -1 2 | function parser:array/find_unresolved 3 | 4 | #doing parsing 5 | function parser:array/prep_for_parse 6 | function parser:array/get_type 7 | function parser:array/do_type 8 | 9 | # finalizing array handling and marking array as resolved 10 | data modify storage parse:list temp_out[-1].Value set from storage parse:list Value 11 | data remove storage parse:list temp_out[-1].Extra[0] 12 | 13 | #looping 14 | execute if data storage parse:main out[{Type:"array",Extra:["unresolved"]}] run function parser:array/check -------------------------------------------------------------------------------- /old/strings/data/regex/functions/quantifier/replace.mcfunction: -------------------------------------------------------------------------------- 1 | # Keep or Discard other regex characters 2 | execute unless score quantifier_index regex matches 0 unless score quantifier_index regex matches 2.. run data modify storage regex:main temp_regex append from storage regex:main cur_regex[0] 3 | 4 | # Create Lesser Quantifier 5 | execute if score quantifier_index regex matches 0 run function regex:quantifier/replace_quant 6 | 7 | # Next iteration 8 | data remove storage regex:main cur_regex[0] 9 | scoreboard players remove quantifier_index regex 1 10 | execute if data storage regex:main cur_regex[0] run function regex:quantifier/replace -------------------------------------------------------------------------------- /old/applications/data/application_cape/functions/internal/get.mcfunction: -------------------------------------------------------------------------------- 1 | # Reading value from a skull 2 | execute unless score $callback string matches 0.. run loot replace block -30000000 10 74063 container.0 loot application_cape:get/skull 3 | execute unless score $callback string matches 0.. run data modify storage universal:strings io set value {string:"",callback:{command:"function application_cape:internal/callback",id:1}} 4 | execute unless score $callback string matches 0.. run data modify storage universal:strings io.string set from block -30000000 10 74063 Items[0].tag.SkullOwner.Properties.textures[0].Value 5 | function string:callio 6 | 7 | scoreboard players reset * cape_check.res -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/cont/pro/parse_call.mcfunction: -------------------------------------------------------------------------------- 1 | #writing current object char array to parse in 2 | data modify storage parse:in in set from storage parse:hold list[0].temp_list[0] 3 | data remove storage parse:hold list[0].temp_list[0] 4 | 5 | scoreboard players add level= parse.main 1 6 | 7 | #calling parser 8 | function parser:call_int 9 | 10 | scoreboard players remove level= parse.main 1 11 | 12 | #writing output to list 13 | data modify storage parse:hold list[0].Value.List append from storage parse:main out[{Name:[main]}].Value 14 | 15 | #looping 16 | execute if data storage parse:hold list[0].temp_list[0] run function parser:array/cont/pro/parse_call -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/number/convert.mcfunction: -------------------------------------------------------------------------------- 1 | #creating number object 2 | data modify storage parse:main temp.obj set value {num:[],pol:1,dec:0,base:10} 3 | 4 | #writing into num object 5 | data modify storage parse:main temp.obj.pol set from storage parse:list temp_val[0] 6 | data remove storage parse:list temp_val[0] 7 | data modify storage parse:main temp.obj.dec set from storage parse:list temp_val[-1] 8 | data remove storage parse:list temp_val[-1] 9 | data modify storage parse:main temp.obj.num set from storage parse:list temp_val 10 | 11 | data modify storage parse:list temp_val set from storage parse:main temp.obj 12 | data modify storage parse:main temp.obj set value {} -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/end.mcfunction: -------------------------------------------------------------------------------- 1 | # Loop 2 | data merge block ~ ~ ~ {UpdateLastExecution:1b} 3 | data merge block ~ ~ ~-1 {UpdateLastExecution:1b} 4 | data merge block ~ ~ ~-2 {UpdateLastExecution:1b} 5 | data merge block ~ ~ ~-3 {UpdateLastExecution:1b} 6 | data merge block ~ ~ ~-4 {UpdateLastExecution:1b} 7 | data merge block ~ ~ ~-5 {UpdateLastExecution:1b} 8 | data merge block ~-1 ~ ~ {UpdateLastExecution:1b} 9 | data merge block ~-1 ~ ~-1 {UpdateLastExecution:1b} 10 | data merge block ~-1 ~ ~-2 {UpdateLastExecution:1b} 11 | data merge block ~-1 ~ ~-3 {UpdateLastExecution:1b} 12 | data merge block ~-1 ~ ~-4 {UpdateLastExecution:1b} 13 | data merge block ~-1 ~ ~-5 {UpdateLastExecution:1b} -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/reset.mcfunction: -------------------------------------------------------------------------------- 1 | # Kill all the entities (I hope) 2 | kill 00000000-0073-9653-0000-000000000000 3 | kill 00000000-0073-9653-0000-000000000001 4 | kill 00000000-0073-9653-0000-000000000002 5 | kill 00000000-0073-9653-0000-000000000003 6 | scoreboard players set $searching string -1 7 | scoreboard players reset $current string 8 | scoreboard players reset $half string 9 | scoreboard players reset $success string 10 | scoreboard players reset $prev string 11 | scoreboard players reset $iterations string 12 | scoreboard players reset $length string 13 | scoreboard players reset $found string 14 | scoreboard players reset $foundX string 15 | setblock -29999999 1 74063 minecraft:air destroy -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/number/seek_num.mcfunction: -------------------------------------------------------------------------------- 1 | #looks for the first valid number 2 | data modify storage parse:list check set from storage parse:list in[0] 3 | execute unless data storage parse:list {check:"."} unless data storage parse:list {check:"-"} unless data storage parse:list {check:"0"} unless data storage parse:list {check:"1"} unless data storage parse:list {check:"2"} unless data storage parse:list {check:"3"} unless data storage parse:list {check:"4"} unless data storage parse:list {check:"5"} unless data storage parse:list {check:"6"} unless data storage parse:list {check:"7"} unless data storage parse:list {check:"8"} unless data storage parse:list {check:"9"} run function parser:array/number/seek_num_retry -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/cont/pro/restore.mcfunction: -------------------------------------------------------------------------------- 1 | data merge storage parse:list {Value:{ArrayType:"",List:[]},in:[],temp_list:[],temp_val:[],temp_out:[]} 2 | data modify storage parse:list {} merge from storage parse:hold list[0] 3 | data remove storage parse:hold list[0] 4 | 5 | data merge storage parse:main {check:"",pair:{},out:[],in:[],temp:{array:[],char:"",obj:{}}} 6 | data modify storage parse:main {} merge from storage parse:hold main[0] 7 | data remove storage parse:hold main[0] 8 | 9 | data modify storage parse:obj temp_out set value [] 10 | data modify storage parse:obj temp_obj set value [] 11 | data modify storage parse:obj {} merge from storage parse:hold obj[0] 12 | data remove storage parse:hold obj[0] -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/compare_found.mcfunction: -------------------------------------------------------------------------------- 1 | # Find final character 2 | execute unless score $found string = $maxchars string run function string:run/compare_found_one 3 | 4 | # Fix Quote String 5 | execute if score $quoteString string matches 2 run data remove storage string:internal out[-1] 6 | 7 | # Output 8 | data modify storage string:io out set from storage string:internal out 9 | execute if data storage string:in {callio:1} run data modify storage universal:strings io set from storage string:internal out 10 | # Do the callback 11 | execute if data storage string:internal callback run function string:run/callback 12 | 13 | # Reset 14 | function string:run/reset 15 | 16 | schedule function string:run/queue_next 1t -------------------------------------------------------------------------------- /old/strings/data/regex/functions/reset/start.mcfunction: -------------------------------------------------------------------------------- 1 | ## reset all values for the start 2 | 3 | data merge storage regex:main {out:[],cur_out:[],cur_out_ind:[],temp_regex:[],points:[{regex:0,string:0,out:[],out_ind:[]}],cur_regex_char:"",cur_char:""} 4 | data modify storage regex:main cur_in set from storage regex:main in.string 5 | data modify storage regex:main int_regex set from storage regex:main in.regex 6 | data modify storage regex:main cur_regex set from storage regex:main int_regex 7 | execute store result score rindex regex store result score cur_out_length regex run scoreboard players set success regex 0 8 | execute store result score length regex run data get storage regex:main in.string 9 | scoreboard players set index regex -1 10 | -------------------------------------------------------------------------------- /old/parser/data/parser/functions/extra/long_num.mcfunction: -------------------------------------------------------------------------------- 1 | #changing type 2 | data modify storage parse:main pair.Type set value "long_number" 3 | 4 | #creating number object 5 | data modify storage parse:main temp.obj set value {num:[],pol:1,dec:0,base:10} 6 | 7 | #writing into num object 8 | data modify storage parse:main temp.obj.pol set from storage parse:main temp.array[0] 9 | data remove storage parse:main temp.array[0] 10 | data modify storage parse:main temp.obj.dec set from storage parse:main temp.array[-1] 11 | data remove storage parse:main temp.array[-1] 12 | data modify storage parse:main temp.obj.num set from storage parse:main temp.array 13 | 14 | #writing value 15 | data modify storage parse:main pair.Value set from storage parse:main temp.obj -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/get_type.mcfunction: -------------------------------------------------------------------------------- 1 | #checking for array type 2 | data modify storage parse:list check set from storage parse:list in[0] 3 | 4 | data modify storage parse:list Value.ArrayType set value "number" 5 | execute if data storage parse:list {check:'"'} run data modify storage parse:list Value.ArrayType set value "string" 6 | execute if data storage parse:list {check:"{"} run data modify storage parse:list Value.ArrayType set value "object" 7 | execute if data storage parse:list {check:"["} run data modify storage parse:list Value.ArrayType set value "array" 8 | 9 | execute if data storage parse:list {check:" "} run function parser:array/get_type_retry 10 | execute if data storage parse:list {check:","} run function parser:array/get_type_retry -------------------------------------------------------------------------------- /old/examples/data/example/functions/14_get_unix_time_pt2.mcfunction: -------------------------------------------------------------------------------- 1 | #converts base64 char array into ascii char array 2 | function base64:callio 3 | 4 | #parses output 5 | function parser:callio 6 | 7 | #sets up to do unix conversion 8 | data modify storage rev_conv:main in set from storage universal:strings io[{Name:[t,i,m,e,s,t,a,m,p]}].Value.num 9 | 10 | data remove storage rev_conv:main in[-1] 11 | data remove storage rev_conv:main in[-1] 12 | data remove storage rev_conv:main in[-1] 13 | 14 | scoreboard players set base= rev_conv.num 10 15 | function rev_conv:call 16 | 17 | #unix conversion 18 | scoreboard players operation $second application_unix = out= rev_conv.num 19 | function application_unix:call 20 | tellraw @a ["[#14] Outputing timestamp..."] 21 | function application_unix:print -------------------------------------------------------------------------------- /old/strings/data/regex/functions/quantifier/replace_quant.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage regex:main temp_regex append value ["{"] 2 | execute store result storage ntca:main in int 1 run scoreboard players get qmin regex 3 | function ntca:call 4 | data modify storage regex:main temp_regex[-1] append from storage ntca:main out[] 5 | data modify storage regex:main temp_regex[-1] append value "," 6 | execute store result storage ntca:main in int 1 run scoreboard players remove qmax regex 1 7 | function ntca:call 8 | data modify storage regex:main temp_regex[-1] append from storage ntca:main out[] 9 | data modify storage regex:main temp_regex[-1] append value "}" 10 | # tellraw @a ["qmn -> ",{"score":{"name":"qmin","objective":"regex"}},"; qmx -> ",{"score":{"name":"qmax","objective":"regex"}}] -------------------------------------------------------------------------------- /old/strings/data/regex/functions/quantifier/type/custom.mcfunction: -------------------------------------------------------------------------------- 1 | data remove storage regex:main quantifier3 2 | data remove storage regex:main quantifier4 3 | 4 | data modify storage regex:main quantifier3 set from storage regex:main cur_regex[0] 5 | data remove storage regex:main quantifier3[0] 6 | data remove storage regex:main quantifier3[-1] 7 | scoreboard players set quantifier_calc_count regex 0 8 | scoreboard players set quantifier_min regex 0 9 | scoreboard players set quantifier_max regex 0 10 | function regex:quantifier/custom 11 | 12 | # Default Quant Commands 13 | scoreboard players add rindex regex 1 14 | data remove storage regex:main cur_regex[0] 15 | scoreboard players operation count regex = quantifier_max regex 16 | scoreboard players operation min regex = quantifier_min regex -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/continue.mcfunction: -------------------------------------------------------------------------------- 1 | # Loop 2 | data merge block ~ ~ ~ {UpdateLastExecution:0b} 3 | data merge block ~ ~ ~-1 {UpdateLastExecution:0b} 4 | data merge block ~ ~ ~-2 {UpdateLastExecution:0b} 5 | data merge block ~ ~ ~-3 {UpdateLastExecution:0b} 6 | data merge block ~ ~ ~-4 {UpdateLastExecution:0b} 7 | data merge block ~ ~ ~-5 {UpdateLastExecution:0b} 8 | data merge block ~-1 ~ ~ {UpdateLastExecution:0b} 9 | data merge block ~-1 ~ ~-1 {UpdateLastExecution:0b} 10 | data merge block ~-1 ~ ~-2 {UpdateLastExecution:0b} 11 | data merge block ~-1 ~ ~-3 {UpdateLastExecution:0b} 12 | data merge block ~-1 ~ ~-4 {UpdateLastExecution:0b} 13 | data merge block ~-1 ~ ~-5 {UpdateLastExecution:0b} 14 | execute if score $parallel string matches 1 run function string:run/parallel/continue 15 | -------------------------------------------------------------------------------- /old/strings/data/string/functions/do/read.mcfunction: -------------------------------------------------------------------------------- 1 | # Don't read if callback 2 | execute if score $callback string matches 0.. run data remove storage string:in input 3 | execute if score $callback string matches ..0 run data remove storage string:in input 4 | 5 | # Read 6 | execute unless score $callback string matches 0.. unless score $callback string matches ..0 run data modify storage string:in in set from storage string:in input[0] 7 | execute unless score $callback string matches 0.. unless score $callback string matches ..0 run function string:run/read 8 | execute unless score $callback string matches 0.. unless score $callback string matches ..0 run data remove storage string:in input[0] 9 | execute unless score $callback string matches 0.. unless score $callback string matches ..0 if data storage string:in input[0] run function string:do/read -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/quote_fix.mcfunction: -------------------------------------------------------------------------------- 1 | # Fixes stuff when a quote is found (or probably puts a quote if other errors occurs but I don't know a better way to find quotes) 2 | data remove storage string:internal out[-1] 3 | scoreboard players set $current string 3 4 | execute unless score $quoteString string matches 1.. run scoreboard players set $quoteString string 1 5 | scoreboard players remove $found string 1 6 | data modify block -30000000 2 74063 Text2 set from block -30000000 2 74063 Text3 7 | function string:run/compare_found_one 8 | 9 | execute if score $found string = $length string run scoreboard players set $quoteString string 2 10 | execute if score $found string = $length string run function string:run/quote_last 11 | execute if score $found string = $length string run scoreboard players remove $found string 1 12 | -------------------------------------------------------------------------------- /old/parser/data/parser/functions/detect_type.mcfunction: -------------------------------------------------------------------------------- 1 | #this function detects what type of value the pair will be using (default is number) 2 | data modify storage parse:main check set from storage parse:main in[0] 3 | 4 | #detecting type of data and setting "Type" string 5 | data modify storage parse:main pair.Type set value "number" 6 | execute if data storage parse:main {check:'"'} run data modify storage parse:main pair.Type set value "string" 7 | execute if data storage parse:main {check:"["} run data modify storage parse:main pair.Type set value "array" 8 | execute if data storage parse:main {check:"{"} run data modify storage parse:main pair.Type set value "object" 9 | 10 | execute if data storage parse:main {check:" "} run function parser:detect_type_retry 11 | execute if data storage parse:main {check:":"} run function parser:detect_type_retry -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/compare_build.mcfunction: -------------------------------------------------------------------------------- 1 | # Async Handling 2 | execute if score $iterations_left string matches 0 run function string:run/async/tick_start 3 | 4 | # Reset tags 5 | data modify entity 00000000-0073-9653-0000-000000000000 Tags set value ["a, b, c"] 6 | 7 | # Find new character (binary search) 8 | scoreboard players operation $id string = $current string 9 | function string:run/id_to_char 10 | 11 | # Create new comparison string (with new character) 12 | data modify block -30000000 2 74063 Text1 set value '[" ",{"storage":"string:in","nbt":"in.ignore"},{"block":"-30000000 2 74063","nbt":"Text2","interpret":true},{"storage":"string:internal","nbt":"char"}," "]' 13 | 14 | # Text from sign into CustomName 15 | data modify entity 00000000-0073-9653-0000-000000000002 CustomName set from block -30000000 2 74063 Text1 -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/cont/array_call.mcfunction: -------------------------------------------------------------------------------- 1 | #writing current object char array to parse in 2 | data modify storage parse:list Value set value {ArrayType:"",List:[]} 3 | data modify storage parse:list in set from storage parse:hold list[0].temp_list[0] 4 | data remove storage parse:hold list[0].temp_list[0] 5 | 6 | data remove storage parse:list in[0] 7 | data remove storage parse:list in[-1] 8 | 9 | scoreboard players add level= parse.main 1 10 | 11 | #calling parser 12 | function parser:array/get_type 13 | function parser:array/do_type 14 | 15 | scoreboard players remove level= parse.main 1 16 | 17 | #writing output to list 18 | data modify storage parse:hold list[0].Value.List append from storage parse:list Value 19 | 20 | #looping 21 | execute if data storage parse:hold list[0].temp_list[0] run function parser:array/cont/array_call -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/compare_found_one.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players operation $id string = $current string 2 | function string:run/id_to_char 3 | data modify storage string:internal out append from storage string:internal char 4 | 5 | # Store the last prefix for Quote Fix 6 | data modify block -30000000 2 74063 Text3 set from block -30000000 2 74063 Text2 7 | 8 | # Create new prefix 9 | data modify block -30000000 2 74063 Text2 set value '[{"block":"-30000000 2 74063","nbt":"Text2","interpret":true},{"storage":"string:internal","nbt":"char"}]' 10 | 11 | function string:run/start_char 12 | scoreboard players add $found string 1 13 | 14 | # Async Handling 15 | execute if score $iterations_left string matches 0.. run function string:run/async/found_one 16 | 17 | execute if score $parallel string matches 1 run function string:run/parallel/found_one -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/cont/cont_copy.mcfunction: -------------------------------------------------------------------------------- 1 | #setting up scoreboard and data 2 | scoreboard players set array_bracket_count= parse.main 0 3 | scoreboard players set array_quote_count= parse.main 0 4 | scoreboard players set array_quote_tog= parse.main 0 5 | data modify storage parse:list temp_val set value [] 6 | 7 | #finding the first open bracket 8 | function parser:array/cont/seek_open 9 | 10 | #copying char array to temp_val 11 | execute if data storage parse:list in[0] run function parser:array/cont/copy_chars 12 | 13 | #writing char array to temp_list 14 | execute if data storage parse:list temp_val[0] run data modify storage parse:list temp_list append from storage parse:list temp_val 15 | data modify storage parse:list temp_val set value [] 16 | 17 | #loop 18 | execute if data storage parse:list in[0] run function parser:array/cont/cont_copy -------------------------------------------------------------------------------- /old/applications/data/application_name/functions/internal/direct_translation.mcfunction: -------------------------------------------------------------------------------- 1 | execute as @p[scores={string.simplifyp=0}] if entity @s[name=_tsts_] run scoreboard players set $directTrans string.simplify 1 2 | execute as @p[scores={string.simplifyp=0}] if entity @s[name=_tsts_] run data modify storage simplify:main out set value ["T","s"] 3 | 4 | execute as @p[scores={string.simplifyp=0}] if entity @s[name=Ds43m] run scoreboard players set $directTrans string.simplify 1 5 | execute as @p[scores={string.simplifyp=0}] if entity @s[name=Ds43m] run data modify storage simplify:main out set value ["D","s"] 6 | 7 | execute as @p[scores={string.simplifyp=0}] if entity @s[name=marhjo] run scoreboard players set $directTrans string.simplify 1 8 | execute as @p[scores={string.simplifyp=0}] if entity @s[name=marhjo] run data modify storage simplify:main out set value ["M","a","r","k"] -------------------------------------------------------------------------------- /old/applications/data/application_unix/functions/misc/year_loop.mcfunction: -------------------------------------------------------------------------------- 1 | #For loop used to determine the year taking leap years into account 2 | 3 | scoreboard players operation $temp3 application_unix = $year application_unix 4 | scoreboard players operation $temp3 application_unix %= $4 application_unix 5 | 6 | execute if score $temp3 application_unix matches 0 run scoreboard players operation $temp2 application_unix = $cYearb application_unix 7 | execute unless score $temp3 application_unix matches 0 run scoreboard players operation $temp2 application_unix = $cYear application_unix 8 | 9 | scoreboard players operation $temp application_unix += $temp2 application_unix 10 | scoreboard players operation $year application_unix += $1 application_unix 11 | 12 | execute if score $temp application_unix < $second application_unix run function application_unix:misc/year_loop -------------------------------------------------------------------------------- /old/strings/data/regex/functions/check_string.mcfunction: -------------------------------------------------------------------------------- 1 | # Get String Char 2 | data remove storage regex:main cur_char 3 | data modify storage regex:main cur_char set from storage regex:main cur_in[0] 4 | data remove storage regex:main cur_in[0] 5 | # increases string index 6 | scoreboard players add index regex 1 7 | # decrease count of characters to be found 8 | scoreboard players remove count regex 1 9 | 10 | #tellraw @a ["[@] cs ",{"score":{"name":"index","objective":"regex"}},"; left: ",{"score":{"name":"count","objective":"regex"}}, " - ",{"nbt":"cur_char","storage":"regex:main"}] 11 | 12 | # Check if character matches 13 | function regex:compare/main 14 | 15 | # Character not found 16 | execute if score success regex matches 1 run function regex:check_string_1 17 | 18 | # Character found 19 | execute if score success regex matches 0 run function regex:check_string_0 -------------------------------------------------------------------------------- /old/applications/data/application_name/functions/internal/simplify_start.mcfunction: -------------------------------------------------------------------------------- 1 | # Recursive Handling 2 | function application_name:internal/simplify_recursive 3 | # First Char to Upper Case 4 | data modify storage case:io in set from storage simplify:main out[0] 5 | function case:call/to_upper 6 | data modify storage simplify:main out[0] set from storage case:io out 7 | # Force Shorten >=9 8 | execute if score $length string.simplify matches 10.. run function application_name:internal/force_shorten 9 | # Force Name to Exist 10 | execute unless score @p[scores={string.simplifyp=0}] model matches 1 unless data storage simplify:main out[0] run data modify storage simplify:main out set value ["S","t","e","v","e"] 11 | execute if score @p[scores={string.simplifyp=0}] model matches 1 unless data storage simplify:main out[0] run data modify storage simplify:main out set value ["A","l","e","x"] -------------------------------------------------------------------------------- /old/examples/data/example/functions/3_callback2.mcfunction: -------------------------------------------------------------------------------- 1 | execute unless score $callback string matches 0.. run tellraw @a ["\n"] 2 | # Input a string & provide a function to be called once it's done (the current function) as well as an ID that can be used to identify the callback 3 | # When doing a callback to the function itself callbackID needs to be set 4 | data modify storage string:io queue append value {string:"abc",callback:{command:"function example:3_callback2",id:1}} 5 | execute unless score $callback string matches 0.. run tellraw @a ["[#03] Input: ",{"storage":"string:io","nbt":"queue[-1].string","interpret":false}] 6 | 7 | # Read the string (Skipped automatically if callback id is set) 8 | function string:call 9 | 10 | # Output if in Callback 11 | execute if score $callback string matches 1 run tellraw @a ["[#03] Output: ",{"storage":"string:io","nbt":"out","interpret":false}] -------------------------------------------------------------------------------- /old/parser/data/parser/functions/res/resolve_objects.mcfunction: -------------------------------------------------------------------------------- 1 | #this loop resolves objects properly into the name/value pair format 2 | 3 | #looks for the first available unresolved object 4 | function parser:res/scan_for_unresolved 5 | 6 | #resolves object 7 | function parser:res/do_resolve 8 | 9 | #shifts data from temp_obj to current object being resolved and marks object as resolved 10 | data modify storage parse:obj temp_out[0].Value set from storage parse:obj temp_obj 11 | data modify storage parse:obj temp_obj set value [] 12 | data remove storage parse:obj temp_out[0].Extra[0] 13 | 14 | #moves entries from temp_out back to out 15 | function parser:res/return_pairs 16 | 17 | #looping if any unresolved objects remain 18 | execute if data storage parse:main out[{Type:"object_end"}] if data storage parse:main out[{Type:"object",Extra:["unresolved"]}] run function parser:res/resolve_objects -------------------------------------------------------------------------------- /old/parser/data/parser/functions/extra/number.mcfunction: -------------------------------------------------------------------------------- 1 | #converting the char numbers into an array of numbers 2 | scoreboard players set dec= parse.main -1 3 | function parser:extra/num_array_convert 4 | 5 | #adds 1 if no -1 is found 6 | data modify storage parse:num check set from storage parse:main temp.array[0] 7 | execute unless data storage parse:num {check:-1} run data modify storage parse:main temp.array prepend value 1 8 | 9 | #adds decimal point position 10 | execute if score dec= parse.main matches -1 run data modify storage parse:main temp.array append value 0 11 | execute if score dec= parse.main matches 0.. run function parser:extra/add_dec_pos 12 | 13 | #flattens number if possible and copies it to pair 14 | function parser:extra/num_check 15 | 16 | #clearing array/object 17 | data modify storage parse:main temp.array set value [] 18 | data modify storage parse:main temp.obj set value {} -------------------------------------------------------------------------------- /old/parser/data/parser/functions/copy/array/value.mcfunction: -------------------------------------------------------------------------------- 1 | #this copies the name of a pair until it hits a "]", for arrays, does not parse array data 2 | function c:ctc 3 | 4 | #counting quotes 5 | execute if data storage parse:main {check:'"'} run function parser:copy/array/quote_toggle 6 | 7 | #counting brackets 8 | execute if score array_quote_count= parse.main matches 0 if data storage parse:main {check:"["} run scoreboard players add array_bracket_count= parse.main 1 9 | execute if score array_quote_count= parse.main matches 0 if data storage parse:main {check:"]"} run scoreboard players remove array_bracket_count= parse.main 1 10 | 11 | #escape char handling 12 | execute if data storage parse:main {check:"\\"} run function parser:copy/escaped_char_val 13 | 14 | execute if data storage parse:main in[0] if score array_bracket_count= parse.main matches 1.. run function parser:copy/array/transfer_value_char -------------------------------------------------------------------------------- /old/examples/data/example/functions/6_all.mcfunction: -------------------------------------------------------------------------------- 1 | execute unless score $callback string matches 0.. run tellraw @a ["\n"] 2 | # All supported characters (" are a nightmare and ! and space are pretty annoying) 3 | execute unless score $callback string matches 0.. run data modify storage string:io temp set value {string:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~",callback:{command:"function example:6_all",id:1}} 4 | execute unless score $callback string matches 0.. run tellraw @a ["[#06] Input: ",{"storage":"string:io","nbt":"temp.string","interpret":false}] 5 | execute unless score $callback string matches 0.. run data modify storage string:io queue append from storage string:io temp 6 | function string:call 7 | 8 | # Output if in Callback 9 | execute if score $callback string matches 1 run tellraw @a ["[#06] Output: ",{"nbt":"out","storage":"string:io","interpret":false}] -------------------------------------------------------------------------------- /old/parser/data/parser/functions/copy/basic/value.mcfunction: -------------------------------------------------------------------------------- 1 | #this copies the value of a pair until it hits a "," or "}", for numbers and strings 2 | function c:ctc 3 | 4 | #number fix 5 | execute if data storage parse:main {check:"}"} if data storage parse:main {pair:{Type:"number"}} run data modify storage parse:main in prepend value "}" 6 | 7 | #escape char handling 8 | execute if data storage parse:main {check:"\\"} run function parser:copy/escaped_char_val 9 | 10 | #checking for end in numbers 11 | execute if data storage parse:main {pair:{Type:"number"}} if data storage parse:main in[0] unless data storage parse:main {check:","} unless data storage parse:main {check:"}"} run function parser:copy/basic/transfer_value_char 12 | 13 | #checking for end in strings 14 | execute if data storage parse:main {pair:{Type:"string"}} if data storage parse:main in[0] unless data storage parse:main {check:'"'} run function parser:copy/basic/transfer_value_char -------------------------------------------------------------------------------- /old/applications/data/application_name/functions/internal/simplify_callback.mcfunction: -------------------------------------------------------------------------------- 1 | # Reset Values 2 | data modify storage simplify:main out set value [] 3 | data modify storage simplify:main in set from storage string:io out 4 | scoreboard players reset * string.simplify 5 | 6 | # Attempty Direct 7 | function application_name:internal/direct_translation 8 | 9 | # Start 10 | execute unless score $directTrans string.simplify matches 1 run function application_name:internal/simplify_start 11 | scoreboard players reset $directTrans string.simplify 12 | 13 | # Store 14 | replaceitem block -30000000 10 74063 container.0 minecraft:name_tag 15 | data modify block -30000000 10 74063 Items[{Slot:0b}].tag.name set from storage simplify:main out 16 | data modify storage simplify:io out set from storage simplify:main out 17 | loot replace entity @p[scores={string.simplifyp=0}] enderchest.0 mine -30000000 10 74063 18 | 19 | # Reset 20 | scoreboard players reset * string.simplifyp -------------------------------------------------------------------------------- /old/parser/data/parser/functions/num/flatten.mcfunction: -------------------------------------------------------------------------------- 1 | #writing polarity and decimal place values 2 | data modify storage parse:num pol set from storage parse:num in[0] 3 | data modify storage parse:num dec set from storage parse:num in[-1] 4 | data remove storage parse:num in[0] 5 | data remove storage parse:num in[-1] 6 | 7 | #writing to flattener, flattening, and receiving flattened number 8 | data modify storage rev_conv:main in set from storage parse:num in 9 | scoreboard players set base= rev_conv.num 10 10 | function rev_conv:call 11 | data modify storage parse:num temp set from storage rev_conv:main out 12 | 13 | #making value negative if marked so 14 | execute if data storage parse:num {pol:-1} store result storage parse:num temp int -1 run data get storage parse:num temp 15 | 16 | #adding decimal if needed 17 | execute unless data storage parse:num {dec:0} run function parser:num/dec 18 | 19 | data modify storage parse:num out set from storage parse:num temp -------------------------------------------------------------------------------- /old/applications/data/application_name/functions/internal/simplify_callback_io.mcfunction: -------------------------------------------------------------------------------- 1 | # Reset Values 2 | data modify storage simplify:main out set value [] 3 | data modify storage simplify:main in set from storage string:io out 4 | scoreboard players reset * string.simplify 5 | 6 | # Attempty Direct 7 | function application_name:internal/direct_translation 8 | 9 | # Start 10 | execute unless score $directTrans string.simplify matches 1 run function application_name:internal/simplify_start 11 | scoreboard players reset $directTrans string.simplify 12 | 13 | # Store 14 | replaceitem block -30000000 10 74063 container.0 minecraft:name_tag 15 | data modify block -30000000 10 74063 Items[{Slot:0b}].tag.name set from storage simplify:main out 16 | data modify storage universal:strings io set from storage simplify:main out 17 | loot replace entity @p[scores={string.simplifyp=0}] enderchest.0 mine -30000000 10 74063 18 | 19 | # Reset 20 | scoreboard players reset * string.simplifyp -------------------------------------------------------------------------------- /old/strings/data/regex/functions/compare/digit.mcfunction: -------------------------------------------------------------------------------- 1 | execute if data storage regex:main {cur_char:"0"} run scoreboard players set success regex 0 2 | execute if data storage regex:main {cur_char:"1"} run scoreboard players set success regex 0 3 | execute if data storage regex:main {cur_char:"2"} run scoreboard players set success regex 0 4 | execute if data storage regex:main {cur_char:"3"} run scoreboard players set success regex 0 5 | execute if data storage regex:main {cur_char:"4"} run scoreboard players set success regex 0 6 | execute if data storage regex:main {cur_char:"5"} run scoreboard players set success regex 0 7 | execute if data storage regex:main {cur_char:"6"} run scoreboard players set success regex 0 8 | execute if data storage regex:main {cur_char:"7"} run scoreboard players set success regex 0 9 | execute if data storage regex:main {cur_char:"8"} run scoreboard players set success regex 0 10 | execute if data storage regex:main {cur_char:"9"} run scoreboard players set success regex 0 -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/search_maybe.mcfunction: -------------------------------------------------------------------------------- 1 | execute store success score $success string run data modify block ~ ~ ~-1 LastOutput set from block ~-1 ~ ~ LastOutput 2 | 3 | execute if score $success string matches 0 if score $searching string matches 1 run function string:run/search 4 | 5 | # Continue? 6 | scoreboard players add $iterations string 1 7 | execute if score $iterations string >= $max_iterations string run function string:run/error 8 | execute if score $current string matches ..-4 run scoreboard players set $searching string 0 9 | execute if score $searching string matches 1 run function string:run/continue 10 | execute if score $searching string matches ..0 run function string:run/end 11 | 12 | # Reset Tags 13 | data modify entity 00000000-0073-9653-0000-000000000000 Tags set value ["a","b","c"] 14 | 15 | # Async Handling 16 | scoreboard players remove $iterations_left string 1 17 | execute if score $iterations_left string matches 0 run function string:run/async/tick_end 18 | -------------------------------------------------------------------------------- /old/examples/data/example/functions/11_seed_pt2.mcfunction: -------------------------------------------------------------------------------- 1 | execute unless score $callback string matches 1.. run data modify storage universal:strings io set value {string:"",callback:{command:"function example:11_seed_pt2",id:1}} 2 | execute unless score $callback string matches 1.. run data modify storage universal:strings io.string set from block -30000000 3 74063 LastOutput 3 | execute unless score $callback string matches 1.. run tellraw @a ["[#11] Input: ",{"storage":"universal:strings","nbt":"io.string","interpret":false}] 4 | function string:callio 5 | 6 | 7 | # Output if in Callback 8 | execute if score $callback string matches 1 run function parser:callio 9 | execute if score $callback string matches 1 run tellraw @a ["[#11] Output: ",{"nbt":"io[{Name:[e,x,t,r,a]}].Value.List[0][{Name:[w,i,t,h]}].Value.List[0][{Name:[e,x,t,r,a]}].Value.List[0][{Name:[t,e,x,t]}].Value","storage":"universal:strings","interpret":true}] 10 | execute if score $callback string matches 1 run setblock -30000000 3 74063 air destroy -------------------------------------------------------------------------------- /old/strings/data/regex/functions/quantifier/get.mcfunction: -------------------------------------------------------------------------------- 1 | #say get quantifier 2 | 3 | data modify storage regex:main quantifier set from storage regex:main cur_regex[0][0] 4 | data remove storage regex:main quantifier2 5 | 6 | ####SPLIT ALL OF THESE INTO TYPES FOLDER 7 | # Zero or More 8 | execute if data storage regex:main {quantifier:"*"} run function regex:quantifier/type/0_l 9 | 10 | # One or More 11 | execute if data storage regex:main {quantifier:"+"} run function regex:quantifier/type/1_l 12 | 13 | # Optional 14 | execute if data storage regex:main {quantifier:"?"} run function regex:quantifier/type/0_1 15 | 16 | # Custom Quantifiers 17 | execute if data storage regex:main {quantifier:"{"} run data modify storage regex:main quantifier2 set from storage regex:main cur_regex[0][-1] 18 | execute if data storage regex:main {quantifier2:"}"} run function regex:quantifier/type/custom 19 | 20 | # Set Point 21 | execute if score quantifier_max regex > quantifier_min regex run function regex:quantifier/set_point -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/values/rem.mcfunction: -------------------------------------------------------------------------------- 1 | #char checks 0-/ 2 | execute if data storage base64:in {temp:"0"} run function base64:in/bits/52 3 | execute if data storage base64:in {temp:"1"} run function base64:in/bits/53 4 | execute if data storage base64:in {temp:"2"} run function base64:in/bits/54 5 | execute if data storage base64:in {temp:"3"} run function base64:in/bits/55 6 | execute if data storage base64:in {temp:"4"} run function base64:in/bits/56 7 | execute if data storage base64:in {temp:"5"} run function base64:in/bits/57 8 | execute if data storage base64:in {temp:"6"} run function base64:in/bits/58 9 | execute if data storage base64:in {temp:"7"} run function base64:in/bits/59 10 | execute if data storage base64:in {temp:"8"} run function base64:in/bits/60 11 | execute if data storage base64:in {temp:"9"} run function base64:in/bits/61 12 | execute if data storage base64:in {temp:"+"} run function base64:in/bits/62 13 | execute if data storage base64:in {temp:"/"} run function base64:in/bits/63 -------------------------------------------------------------------------------- /old/examples/data/example/functions/17_async.mcfunction: -------------------------------------------------------------------------------- 1 | execute unless score $callback string matches 0.. run tellraw @a ["\n"] 2 | # This is done async. Every async.iterations iterations the system stops for the tick and restarts in the next one 3 | data modify storage string:io queue append value {string:"abcdefghijklmopqrstuvwxyz just writing some text here so that the async is even worth it because like otherwise what even is the point so you see the point of this thing is so that this can run in the background and not freeze everything else which honestly is quite inconvenient for maps so this runs in the background yay . . .....",callback:{command:"function example:17_async",id:1},async:{iterations:10}} 4 | execute unless score $callback string matches 0.. run tellraw @a ["[#17] Input: ",{"storage":"string:io","nbt":"queue[-1].string","interpret":false}] 5 | function string:call 6 | 7 | # Output 8 | execute if score $callback string matches 1 run tellraw @a ["[#17] Output: ",{"storage":"string:io","nbt":"out","interpret":true}] -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/search.mcfunction: -------------------------------------------------------------------------------- 1 | ## Coordinates = The two enchant commands | Checks if they are the same 2 | execute store success score $success string run data modify block ~ ~ ~-3 LastOutput set from block ~ ~ ~-2 LastOutput 3 | 4 | # Next Character has what id? 5 | scoreboard players operation $prev string = $half string 6 | scoreboard players add $half string 1 7 | scoreboard players operation $half string /= $2 string 8 | 9 | # Binary search in which direction? 10 | execute if score $success string matches 0 run scoreboard players operation $current string -= $half string 11 | execute if score $success string matches 1 run scoreboard players operation $current string += $half string 12 | 13 | # Binary search done? 14 | execute if score $prev string matches ..1 if score $success string matches 0 unless score $current string > $total string run function string:run/compare_found_one 15 | execute if score $current string > $total string run function string:run/quote_fix 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /old/examples/data/example/functions/14_get_unix_time.mcfunction: -------------------------------------------------------------------------------- 1 | execute unless score $callback string matches 0.. run tellraw @a ["\n"] 2 | # Reading value from a skull 3 | execute unless score $callback string matches 0.. run setblock 0 0 0 player_head{SkullOwner:{Name:"idk2"}} destroy 4 | execute unless score $callback string matches 0.. run data modify storage universal:strings io set value {string:"",callback:{command:"function example:14_get_unix_time",id:1}} 5 | execute unless score $callback string matches 0.. run data modify storage universal:strings io.string set from block 0 0 0 SkullOwner.Properties.textures[0].Value 6 | execute unless score $callback string matches 0.. run replaceitem entity @a weapon.mainhand air 7 | execute unless score $callback string matches 0.. run tellraw @a ["[#14] Starting Processing..."] 8 | function string:callio 9 | 10 | # Output if in Callback 11 | execute if score $callback string matches 1 run tellraw @a ["[#14] Converting..."] 12 | execute if score $callback string matches 1 run function example:14_get_unix_time_pt2 -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/compare_prepare2.mcfunction: -------------------------------------------------------------------------------- 1 | # Constructed String = Input String? If so end search 2 | execute if score $count string matches 2 if score $searching string matches 1 run function string:run/compare_found 3 | execute unless score $maxchars string matches ..0 if score $found string = $maxchars string run function string:run/compare_found 4 | 5 | 6 | # Concats: the first /tag list command & the first two enchant commands 7 | data modify block -30000000 2 74063 Text1 set value '{"text":"","extra":[{"nbt":"LastOutput","block":"-30000000 1 74061","interpret":true},{"text":", "},{"nbt":"LastOutput","block":"-30000000 1 74059"},{"text":", "},{"nbt":"LastOutput","block":"-30000000 1 74058"}]}' 8 | 9 | # Puts sorted tag list and fake constructed tag list onto entity names so that they can be enchantflattened and compared 10 | data modify entity 00000000-0073-9653-0000-000000000003 CustomName set from block ~ ~ ~-1 LastOutput 11 | data modify entity 00000000-0073-9653-0000-000000000002 CustomName set from block -30000000 2 74063 Text1 12 | -------------------------------------------------------------------------------- /old/examples/data/example/functions/18_parallel.mcfunction: -------------------------------------------------------------------------------- 1 | execute unless score $callback string matches 0.. run tellraw @a ["\n"] 2 | # This is done async. Every async.iterations iterations the system stops for the tick and restarts in the next one 3 | data modify storage string:io queue append value {string:"abcdefghijklmopqrstuvwxyz just writing some text here so that the async is even worth it because like otherwise what even is the point so you see the point of this thing is so that this can run in the background and not freeze everything else which honestly is quite inconvenient for maps so this runs in the background yay . . .....",callback:{command:"function example:18_parallel",id:1},async:{iterations:10,parallel:1}} 4 | execute unless score $callback string matches 0.. run tellraw @a ["[#18] Input: ",{"storage":"string:io","nbt":"queue[-1].string","interpret":false}] 5 | function string:call 6 | 7 | # Output 8 | execute if score $callback string matches 1 if data storage string:io out[0] run tellraw @a ["[#18] Output: ",{"storage":"string:io","nbt":"out","interpret":true}] -------------------------------------------------------------------------------- /old/strings/data/substring/functions/call.mcfunction: -------------------------------------------------------------------------------- 1 | # Get Values 2 | execute store result score $start substring run data get storage substring:io in.start 3 | execute store result score $length substring run data get storage substring:io in.length 4 | execute store result score $curLength substring run data get storage substring:io in.string 5 | # Handle entire word 6 | execute if score $length substring matches 0 run function substring:internal/full_length 7 | # Handle Negative Values 8 | execute if score $start substring matches ..-1 run function substring:internal/negative_start 9 | execute if score $length substring matches ..-1 run function substring:internal/negative_length 10 | # Calculate characters to remove from end 11 | scoreboard players operation $curLength substring -= $start substring 12 | scoreboard players operation $curLength substring -= $length substring 13 | scoreboard players operation $length substring = $curLength substring 14 | # Start 15 | data modify storage substring:io out set from storage substring:io in.string 16 | function substring:internal/start -------------------------------------------------------------------------------- /old/strings/data/regex/functions/special.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage regex:main cur_regex_char set from storage regex:main cur_regex[0][0] 2 | data remove storage regex:main cur_regex[0] 3 | scoreboard players add rindex regex 1 4 | execute if data storage regex:main {cur_regex_char:"a"} run scoreboard players set cur_regex_char regex 1 5 | execute if data storage regex:main {cur_regex_char:"A"} run scoreboard players set cur_regex_char regex 2 6 | execute if data storage regex:main {cur_regex_char:"w"} run scoreboard players set cur_regex_char regex 4 7 | execute if data storage regex:main {cur_regex_char:"W"} run scoreboard players set cur_regex_char regex 5 8 | execute if data storage regex:main {cur_regex_char:"d"} run scoreboard players set cur_regex_char regex 6 9 | execute if data storage regex:main {cur_regex_char:"D"} run scoreboard players set cur_regex_char regex 7 10 | execute if data storage regex:main {cur_regex_char:"s"} run scoreboard players set cur_regex_char regex 8 11 | execute if data storage regex:main {cur_regex_char:"S"} run scoreboard players set cur_regex_char regex 9 12 | -------------------------------------------------------------------------------- /old/strings/data/string/functions/load.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard objectives add string dummy 2 | scoreboard players reset * string 3 | scoreboard players set $2 string 2 4 | scoreboard players set $total string 98 5 | scoreboard players set $queue string 0 6 | scoreboard players set $searching string -1 7 | scoreboard players set $helper string -1 8 | gamerule commandBlockOutput false 9 | 10 | function string:run/reset 11 | data merge storage string:out {out:[]} 12 | data merge storage string:in {in:"",callback:{command:"",id:0},temp:{},input:[],temp:{callback:{command:"",id:0},async:{iterations:-1,parallel:0},string:""}} 13 | data merge storage string:internal {string:[],out:[],char:"",queue:[],async:{iterations:-1,parallel:0},callback:{command:"",id:0},tempChar:[]} 14 | 15 | forceload remove -30000000 74048 16 | forceload add -30000000 74048 17 | 18 | execute positioned -30000000 1 74063 unless score $loaded string matches 5 run function string:helper/build 19 | execute positioned -30000000 1 74063 unless block ~ ~ ~ command_block run function string:helper/build 20 | scoreboard players set $loaded string 5 -------------------------------------------------------------------------------- /old/strings/data/regex/functions/quantifier/set_point.mcfunction: -------------------------------------------------------------------------------- 1 | #tellraw @a ["qpp: qmin -> ",{"score":{"name":"quantifier_min","objective":"regex"}}," qmax -> ",{"score":{"name":"quantifier_max","objective":"regex"}}," index -> ",{"score":{"name":"index","objective":"regex"}}," rnd -> ",{"score":{"name":"rindex","objective":"regex"}}] 2 | #tellraw @a ["qpp: out -> ",{"nbt":"cur_out","storage":"regex:main"}] 3 | data modify storage regex:main points append value {regex:0,string:0,quantifier:1,qmin:0,qmax:0,out:[],out_ind:[]} 4 | execute store result storage regex:main points[-1].qmin int 1 run scoreboard players get quantifier_min regex 5 | execute store result storage regex:main points[-1].qmax int 1 run scoreboard players get quantifier_max regex 6 | execute store result storage regex:main points[-1].regex int 1 run scoreboard players get rindex regex 7 | execute store result storage regex:main points[-1].string int 1 run scoreboard players get index regex 8 | data modify storage regex:main points[-1].out set from storage regex:main cur_out 9 | data modify storage regex:main points[-1].out_ind set from storage regex:main cur_out_ind -------------------------------------------------------------------------------- /old/examples/data/example/functions/5_skull.mcfunction: -------------------------------------------------------------------------------- 1 | execute unless score $callback string matches 0.. run tellraw @a ["\n"] 2 | # Reading value from a skull 3 | execute unless score $callback string matches 0.. as @a run loot replace entity @s weapon.mainhand loot example:get/skull 4 | execute unless score $callback string matches 0.. run data modify storage string:io temp set value {string:"",callback:{command:"function example:5_skull",id:1}} 5 | execute unless score $callback string matches 0.. run data modify storage string:io temp.string set from entity @r SelectedItem.tag.SkullOwner.Properties.textures[0].Value 6 | execute unless score $callback string matches 0.. run replaceitem entity @a weapon.mainhand air 7 | execute unless score $callback string matches 0.. run tellraw @a ["[#05] Input: ",{"storage":"string:io","nbt":"temp.string","interpret":false}] 8 | execute unless score $callback string matches 0.. run data modify storage string:io queue append from storage string:io temp 9 | function string:call 10 | 11 | # Output if in Callback 12 | execute if score $callback string matches 1 run tellraw @a ["[#05] Output: ",{"nbt":"out","storage":"string:io","interpret":false}] -------------------------------------------------------------------------------- /old/examples/data/example/functions/15_from_book.mcfunction: -------------------------------------------------------------------------------- 1 | execute unless score $callback string matches 0.. run tellraw @a ["\n"] 2 | # Reading value from a skull 3 | execute unless score $callback string matches 0.. run data modify storage universal:strings io set value {string:"",callback:{command:"function example:15_from_book",id:1}} 4 | execute unless score $callback string matches 0.. run data modify block -30000000 2 74063 Text1 set value '{"nbt":"SelectedItem.tag.pages","entity":"@p","interpret":true}' 5 | execute unless score $callback string matches 0.. run data modify storage universal:strings io.string set from block -30000000 2 74063 Text1 6 | execute unless score $callback string matches 0.. run tellraw @a ["[#15] Input: ",{"storage":"universal:strings","nbt":"io.string","interpret":false}] 7 | function string:callio 8 | 9 | # Output if in Callback 10 | execute if score $callback string matches 1 run function parser:callio 11 | execute if score $callback string matches 1 run tellraw @a {"nbt":"io","storage":"universal:strings"} 12 | execute if score $callback string matches 1 run tellraw @a {"nbt":"io[{Name:[t,e,x,t]}].Value","storage":"universal:strings","interpret":true} -------------------------------------------------------------------------------- /old/applications/data/application_name/functions/internal/end_word.mcfunction: -------------------------------------------------------------------------------- 1 | # 'the' check 2 | scoreboard players set $the string.simplify 0 3 | data modify storage simplify:main temp set from storage simplify:main out[-2] 4 | execute if data storage simplify:main {temp:"e"} run scoreboard players add $the string.simplify 1 5 | execute if data storage simplify:main {temp:"E"} run scoreboard players add $the string.simplify 1 6 | data modify storage simplify:main temp set from storage simplify:main out[-3] 7 | execute if data storage simplify:main {temp:"h"} run scoreboard players add $the string.simplify 1 8 | execute if data storage simplify:main {temp:"H"} run scoreboard players add $the string.simplify 1 9 | data modify storage simplify:main temp set from storage simplify:main out[-4] 10 | execute if data storage simplify:main {temp:"t"} run scoreboard players add $the string.simplify 1 11 | execute if data storage simplify:main {temp:"T"} run scoreboard players add $the string.simplify 1 12 | 13 | # Remove Last Char 14 | execute unless score $the string.simplify matches 3 run data remove storage simplify:main out[-1] 15 | execute unless score $the string.simplify matches 3 run function application_name:internal/end_name -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/number/num_copy.mcfunction: -------------------------------------------------------------------------------- 1 | #seeking the number 2 | function parser:array/number/seek_num 3 | scoreboard players set dec= parse.main -1 4 | 5 | #writing the numbers 6 | function parser:array/number/write_nums 7 | 8 | #adding 1 if no -1 is found 9 | data modify storage parse:num check set from storage parse:list temp_val[0] 10 | execute unless data storage parse:num {check:-1} run data modify storage parse:list temp_val prepend value 1 11 | 12 | #adding decimal point position value 13 | execute if score dec= parse.main matches -1 run data modify storage parse:list temp_val append value 0 14 | execute if score dec= parse.main matches 0.. run function parser:array/number/add_dec_pos 15 | 16 | #flattening number if possible 17 | execute unless data storage parse:list temp_val[11] run function parser:array/number/flatten 18 | execute if data storage parse:list temp_val[11] run function parser:array/number/convert 19 | 20 | #copying number array to value list 21 | data modify storage parse:list Value.List append from storage parse:list temp_val 22 | data modify storage parse:list temp_val set value [] 23 | 24 | #loop 25 | execute if data storage parse:list in[0] run function parser:array/number/num_copy -------------------------------------------------------------------------------- /old/examples/data/example/functions/8_substr_string.mcfunction: -------------------------------------------------------------------------------- 1 | execute unless score $callback string matches 1.. run tellraw @a ["\n"] 2 | # String to Char Array 3 | data modify storage string:io queue append value {string:"This is an example string!",callback:{command:"function example:8_substr_string",id:1}} 4 | execute unless score $callback string matches 1.. run tellraw @a ["[#08] Input: ",{"storage":"string:io","nbt":"queue[-1].string","interpret":false}] 5 | function string:call 6 | 7 | 8 | # Substring once String is a char array 9 | execute if score $callback string matches 1 run tellraw @a ["[#08] Char Array: ",{"nbt":"out","storage":"string:io","interpret":false}] 10 | execute if score $callback string matches 1 run data merge storage substring:io {in:{start:7,length:8}} 11 | execute if score $callback string matches 1 run data modify storage substring:io in.string set from storage string:io out 12 | execute if score $callback string matches 1 run function substring:call 13 | execute if score $callback string matches 1 run tellraw @a ["[#08] Output: ",{"storage":"substring:io","nbt":"out","interpret":false}] 14 | execute if score $callback string matches 1 run tellraw @a ["[#08] Substr: ",{"storage":"substring:io","nbt":"out","interpret":true}] -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /old/examples/data/example/functions/13_decode64.mcfunction: -------------------------------------------------------------------------------- 1 | execute unless score $callback string matches 0.. run tellraw @a ["\n"] 2 | # Reading value from a skull 3 | execute unless score $callback string matches 0.. as @a run loot replace entity @s weapon.mainhand loot example:get/skull 4 | execute unless score $callback string matches 0.. run data modify storage universal:strings io set value {string:"",callback:{command:"function example:13_decode64",id:1}} 5 | execute unless score $callback string matches 0.. run data modify storage universal:strings io.string set from entity @r SelectedItem.tag.SkullOwner.Properties.textures[0].Value 6 | execute unless score $callback string matches 0.. run replaceitem entity @a weapon.mainhand air 7 | execute unless score $callback string matches 0.. run tellraw @a ["[#13] Input: ",{"storage":"universal:strings","nbt":"io.string","interpret":false}] 8 | function string:callio 9 | 10 | # Output if in Callback 11 | execute if score $callback string matches 1 run tellraw @a ["[#13] Char Array: ",{"nbt":"io","storage":"universal:strings","interpret":false}] 12 | execute if score $callback string matches 1 run function base64:callio 13 | execute if score $callback string matches 1 run tellraw @a ["[#13] Output: ",{"storage":"universal:strings","nbt":"io","interpret":false}] -------------------------------------------------------------------------------- /old/strings/data/regex/functions/quantifier/custom.mcfunction: -------------------------------------------------------------------------------- 1 | # Get next number 2 | data modify storage regex:main quantifier4 set from storage regex:main quantifier3[0] 3 | data remove storage regex:main quantifier3[0] 4 | # Check if number is actually the seperator 5 | execute if data storage regex:main {quantifier4:","} run scoreboard players set quantifier_calc_count regex 1 6 | # Convert number to scoreboard 7 | scoreboard players reset quantifier_calc regex 8 | function regex:quantifier/custom/0_2 9 | # Calculate value 10 | execute if score quantifier_calc regex matches 0.. if score quantifier_calc_count regex matches 0 run scoreboard players operation quantifier_min regex *= 10 Const 11 | execute if score quantifier_calc regex matches 0.. if score quantifier_calc_count regex matches 0 run scoreboard players operation quantifier_min regex += quantifier_calc regex 12 | execute if score quantifier_calc regex matches 0.. if score quantifier_calc_count regex matches 1 run scoreboard players operation quantifier_max regex *= 10 Const 13 | execute if score quantifier_calc regex matches 0.. if score quantifier_calc_count regex matches 1 run scoreboard players operation quantifier_max regex += quantifier_calc regex 14 | # Continue(?) 15 | execute if data storage regex:main quantifier3[0] run function regex:quantifier/custom -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/queue_next.mcfunction: -------------------------------------------------------------------------------- 1 | scoreboard players reset $callback string 2 | 3 | # Queue empty 4 | execute unless data storage string:internal queue[0] run scoreboard players set $searching string -1 5 | 6 | # Queue not empty 7 | execute if data storage string:internal queue[0] run data modify storage string:in string set from storage string:internal queue[0].string 8 | execute if data storage string:internal queue[0] run data modify storage string:in callback.command set from storage string:internal queue[0].callback.command 9 | execute if data storage string:internal queue[0] run data modify storage string:in callback.id set from storage string:internal queue[0].callback.id 10 | execute if data storage string:internal queue[0] run data modify storage string:in async.iterations set from storage string:internal queue[0].async.iterations 11 | execute if data storage string:internal queue[0] run data modify storage string:in async.parallel set from storage string:internal queue[0].async.parallel 12 | execute if data storage string:internal queue[0] run data modify storage string:in ignore set from storage string:in in.ignore 13 | execute if data storage string:internal queue[0] store result score $maxchars string run data get storage string:in in.maxchars 14 | execute if data storage string:internal queue[0] run function string:run/run 15 | -------------------------------------------------------------------------------- /old/strings/data/regex/functions/check.mcfunction: -------------------------------------------------------------------------------- 1 | ## Get Regex Char 2 | # Get character, than if it's a backslash see what group it is for or if its not in a group dont do other checks 3 | data modify storage regex:main cur_regex_char set from storage regex:main cur_regex[0][0] 4 | data remove storage regex:main cur_regex[0] 5 | scoreboard players add rindex regex 1 6 | #tellraw @a ["\n[@] c ",{"score":{"name":"rindex","objective":"regex"}}," -> ",{"nbt":"cur_regex_char","storage":"regex:main"}] 7 | scoreboard players set cur_regex_char regex 0 8 | execute if data storage regex:main {cur_regex_char:"."} run scoreboard players set cur_regex_char regex 3 9 | execute if data storage regex:main {cur_regex_char:"\\"} run function regex:special 10 | 11 | # String Check 12 | 13 | # Get Quantifier 14 | execute store result score count regex run scoreboard players set min regex 1 15 | execute if data storage regex:main cur_regex[0] run function regex:quantifier/get 16 | 17 | 18 | # Empty 19 | execute if score count regex matches 0 run function regex:check_empty 20 | 21 | # Check String 22 | scoreboard players set found regex 0 23 | execute unless score success regex matches -2 run function regex:check_string 24 | execute unless score success regex matches -2 if data storage regex:main points[0] run function regex:restart/check 25 | 26 | scoreboard players set success regex -2 -------------------------------------------------------------------------------- /old/strings/data/regex/functions/restart/do.mcfunction: -------------------------------------------------------------------------------- 1 | ### Jump backs to a certain point with a certain position in regex and string 2 | 3 | # Substring 4 | execute if score quantifier regex matches 1 run scoreboard players remove rindex regex 1 5 | 6 | data merge storage substring:in {start:0,length:0,string:""} 7 | data modify storage substring:in string set from storage regex:main in.string 8 | execute store result storage substring:in start int 1 run scoreboard players get start_string regex 9 | function substring:do/start 10 | data modify storage regex:main cur_in set from storage substring:out string 11 | 12 | data merge storage substring:in {start:0,length:0,string:""} 13 | data modify storage substring:in string set from storage regex:main int_regex 14 | execute store result storage substring:in start int 1 run scoreboard players get rindex regex 15 | function substring:do/start 16 | data modify storage regex:main cur_regex set from storage substring:out string 17 | 18 | execute if score quantifier regex matches 1 run function regex:quantifier/decrease 19 | execute if score quantifier regex matches 1 run scoreboard players remove rindex regex 1 20 | 21 | # Try again 22 | #tellraw @a ["r: ind -> ",{"score":{"name":"start_string","objective":"regex"}},"; rind -> ",{"score":{"name":"rindex","objective":"regex"}}] 23 | function regex:check 24 | 25 | scoreboard players set quantifier regex -1 -------------------------------------------------------------------------------- /old/applications/data/application_name/functions/internal/next_char.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage simplify:main char set from storage simplify:main in[0] 2 | data remove storage simplify:main in[0] 3 | execute if data storage simplify:main {char:"0"} run data modify storage simplify:main char set value "o" 4 | execute if data storage simplify:main {char:"1"} run data modify storage simplify:main char set value "i" 5 | execute if data storage simplify:main {char:"3"} run data modify storage simplify:main char set value "e" 6 | execute if data storage simplify:main {char:"4"} run data modify storage simplify:main char set value "a" 7 | execute if data storage simplify:main {char:"5"} run data modify storage simplify:main char set value "s" 8 | execute if data storage simplify:main {char:"7"} run data modify storage simplify:main char set value "t" 9 | execute if data storage simplify:main {char:"_"} run data modify storage case:io in set from storage simplify:main in[0] 10 | execute if data storage simplify:main {char:"_"} run function case:call/to_upper 11 | execute if data storage simplify:main {char:"_"} run data modify storage simplify:main in[0] set from storage case:io out 12 | execute if data storage simplify:main {char:"_"} run data remove storage simplify:main char 13 | execute unless data storage simplify:main char if data storage simplify:main in[0] run function application_name:internal/next_char -------------------------------------------------------------------------------- /old/applications/data/application_name/functions/internal/number_check.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage simplify:main char set from storage simplify:main temp[0] 2 | data remove storage simplify:main temp[0] 3 | execute if data storage simplify:main {char:"0"} run data remove storage simplify:main char 4 | execute if data storage simplify:main {char:"1"} run data remove storage simplify:main char 5 | execute if data storage simplify:main {char:"2"} run data remove storage simplify:main char 6 | execute if data storage simplify:main {char:"3"} run data remove storage simplify:main char 7 | execute if data storage simplify:main {char:"4"} run data remove storage simplify:main char 8 | execute if data storage simplify:main {char:"5"} run data remove storage simplify:main char 9 | execute if data storage simplify:main {char:"6"} run data remove storage simplify:main char 10 | execute if data storage simplify:main {char:"7"} run data remove storage simplify:main char 11 | execute if data storage simplify:main {char:"8"} run data remove storage simplify:main char 12 | execute if data storage simplify:main {char:"9"} run data remove storage simplify:main char 13 | execute unless data storage simplify:main char unless data storage simplify:main temp[0] run function application_name:internal/end_name 14 | execute unless data storage simplify:main char if data storage simplify:main temp[0] run function application_name:internal/number_check 15 | -------------------------------------------------------------------------------- /old/applications/data/application_unix/functions/load.mcfunction: -------------------------------------------------------------------------------- 1 | #Sets up scores 2 | 3 | scoreboard objectives add application_unix dummy 4 | 5 | scoreboard players set $cMinute application_unix 60 6 | scoreboard players set $cHour application_unix 3600 7 | scoreboard players set $cDay application_unix 86400 8 | scoreboard players set $cYear application_unix 31536000 9 | scoreboard players set $cYearb application_unix 31622400 10 | scoreboard players set $334 application_unix 334 11 | scoreboard players set $304 application_unix 304 12 | scoreboard players set $273 application_unix 273 13 | scoreboard players set $243 application_unix 243 14 | scoreboard players set $212 application_unix 212 15 | scoreboard players set $181 application_unix 181 16 | scoreboard players set $151 application_unix 151 17 | scoreboard players set $120 application_unix 120 18 | scoreboard players set $90 application_unix 90 19 | scoreboard players set $59 application_unix 59 20 | scoreboard players set $31 application_unix 31 21 | scoreboard players set $7 application_unix 7 22 | scoreboard players set $4 application_unix 4 23 | scoreboard players set $1 application_unix 1 24 | 25 | forceload add 0 0 26 | kill @e[type=minecraft:armor_stand,tag=application_unix] 27 | summon minecraft:armor_stand 0 0 0 {Marker:1b,Invisible:1b,Tags:["weekday","application_unix"]} 28 | summon minecraft:armor_stand 0 0 0 {Marker:1b,Invisible:1b,Tags:["month","application_unix"]} -------------------------------------------------------------------------------- /old/parser/data/parser/functions/num/dec.mcfunction: -------------------------------------------------------------------------------- 1 | #shifts decimal point over x times, where x is the dec value (-1) from the input array 2 | execute if data storage parse:num {dec:1} store result storage parse:num temp double 0.1 run data get storage parse:num temp 3 | execute if data storage parse:num {dec:2} store result storage parse:num temp double 0.01 run data get storage parse:num temp 4 | execute if data storage parse:num {dec:3} store result storage parse:num temp double 0.001 run data get storage parse:num temp 5 | execute if data storage parse:num {dec:4} store result storage parse:num temp double 0.0001 run data get storage parse:num temp 6 | execute if data storage parse:num {dec:5} store result storage parse:num temp double 0.00001 run data get storage parse:num temp 7 | execute if data storage parse:num {dec:6} store result storage parse:num temp double 0.000001 run data get storage parse:num temp 8 | execute if data storage parse:num {dec:7} store result storage parse:num temp double 0.0000001 run data get storage parse:num temp 9 | execute if data storage parse:num {dec:8} store result storage parse:num temp double 0.00000001 run data get storage parse:num temp 10 | execute if data storage parse:num {dec:9} store result storage parse:num temp double 0.000000001 run data get storage parse:num temp 11 | execute if data storage parse:num {dec:10} store result storage parse:num temp double 0.0000000001 run data get storage parse:num temp -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/cont/copy_chars.mcfunction: -------------------------------------------------------------------------------- 1 | #shifting current char to check register 2 | data modify storage parse:list check set from storage parse:list in[0] 3 | data remove storage parse:list in[0] 4 | 5 | #quote counting 6 | execute if data storage parse:list {check:'"'} run function parser:copy/array/quote_toggle 7 | 8 | #escape char handling 9 | execute if data storage parse:list {check:"\\"} run function parser:array/cont/escaped_char 10 | 11 | #array bracket counting 12 | execute if score array_quote_count= parse.main matches 0 if data storage parse:list {Value:{ArrayType:"array"}} if data storage parse:list {check:"["} run scoreboard players add array_bracket_count= parse.main 1 13 | execute if score array_quote_count= parse.main matches 0 if data storage parse:list {Value:{ArrayType:"array"}} if data storage parse:list {check:"]"} run scoreboard players remove array_bracket_count= parse.main 1 14 | 15 | #object bracket counting 16 | execute if score array_quote_count= parse.main matches 0 if data storage parse:list {Value:{ArrayType:"object"}} if data storage parse:list {check:"{"} run scoreboard players add array_bracket_count= parse.main 1 17 | execute if score array_quote_count= parse.main matches 0 if data storage parse:list {Value:{ArrayType:"object"}} if data storage parse:list {check:"}"} run scoreboard players remove array_bracket_count= parse.main 1 18 | 19 | #transfers char 20 | function parser:array/cont/transfer_char -------------------------------------------------------------------------------- /old/parser/data/parser/functions/extra/nac/char_to_num.mcfunction: -------------------------------------------------------------------------------- 1 | execute if data storage parse:main {check:"-"} run data modify storage parse:main temp.array append value -1 2 | execute if data storage parse:main {check:"0"} run data modify storage parse:main temp.array append value 0 3 | execute if data storage parse:main {check:"1"} run data modify storage parse:main temp.array append value 1 4 | execute if data storage parse:main {check:"2"} run data modify storage parse:main temp.array append value 2 5 | execute if data storage parse:main {check:"3"} run data modify storage parse:main temp.array append value 3 6 | execute if data storage parse:main {check:"4"} run data modify storage parse:main temp.array append value 4 7 | execute if data storage parse:main {check:"5"} run data modify storage parse:main temp.array append value 5 8 | execute if data storage parse:main {check:"6"} run data modify storage parse:main temp.array append value 6 9 | execute if data storage parse:main {check:"7"} run data modify storage parse:main temp.array append value 7 10 | execute if data storage parse:main {check:"8"} run data modify storage parse:main temp.array append value 8 11 | execute if data storage parse:main {check:"9"} run data modify storage parse:main temp.array append value 9 12 | 13 | execute if data storage parse:main {check:"."} run scoreboard players set dec= parse.main 0 14 | execute if score dec= parse.main matches 0.. run scoreboard players add dec= parse.main 1 -------------------------------------------------------------------------------- /old/parser/README.md: -------------------------------------------------------------------------------- 1 | ## Module - Parser 2 | #### Basic Instructions 3 | 1. `/data modify storage parse:io in set value ["{",'"',"a",'"',":",'"',"b",'"',"}"]` 4 | 2. `/function parser:call` 5 | 3. `/data get storage parse:io out` to read the output 6 | 7 | #### Numbers 8 | 1. numbers longer than 9 digits are displayed in a specific way, for example the number `-3234567.8901` would be displayed as `{pol:-1,num:[3, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1],dec:4,base:10}` and if it is not in an array it's type would be `"long_number"` 9 | 2. the format for long numbers is `{pol:1/-1,num:[],dec:0,base:10}` (the same that is used for [this utility](https://github.com/gibbsly/mc-floating-point-arithmetic)) 10 | - `pol` is `-1` if the number is negitive, and `1` if it is positive 11 | - `num` is the digits in order 12 | - `dec` is the position of the decimal point from the right 13 | 14 | #### Other info 15 | - Integrated with this module is a base(x) converter, instructions for its use can be found [here](https://github.com/gibbsly/fantastic-palm-tree) 16 | - The output of this is formatted in name/value pairs inside of an output array, the notation is `{Value:[],Type:"",Extra:[],Name:[]}` Minecraft itself orders the data like this, I do not have any control over how the data is ordered inside of the pair itself. 17 | - escape characters are avalible, you are going to want to escape any qotes (`"`) within the name or value entires. To enter a backslash (`\`) into a char array you need to use 2, so `"\\"`. 18 | -------------------------------------------------------------------------------- /old/applications/data/application_name/functions/internal/simplify_recursive.mcfunction: -------------------------------------------------------------------------------- 1 | # Number Trail Check 2 | data modify storage simplify:main temp set from storage simplify:main in 3 | function application_name:internal/number_check 4 | 5 | # Get Next Char 6 | function application_name:internal/next_char 7 | data modify storage simplify:main out append from storage simplify:main char 8 | 9 | # Get Case 10 | data modify storage case:io in set from storage simplify:main char 11 | function case:call/get_case 12 | 13 | # End Word 14 | execute if data storage case:io {out:1} if score $lower string.simplify matches 2.. run function application_name:internal/end_word 15 | execute if data storage case:io {out:0} if score $upper string.simplify matches 2.. run function application_name:internal/end_word 16 | 17 | # Count Case 18 | execute if data storage case:io {out:-1} run scoreboard players reset $lower string.simplify 19 | execute if data storage case:io {out:-1} run scoreboard players reset $upper string.simplify 20 | execute if data storage case:io {out:0} run scoreboard players reset $upper string.simplify 21 | execute if data storage case:io {out:0} run scoreboard players add $lower string.simplify 1 22 | execute if data storage case:io {out:1} run scoreboard players reset $lower string.simplify 23 | execute if data storage case:io {out:1} run scoreboard players add $upper string.simplify 1 24 | 25 | # Count Length 26 | scoreboard players add $length string.simplify 1 27 | 28 | # Recursive 29 | execute if data storage simplify:main in[0] run function application_name:internal/simplify_recursive -------------------------------------------------------------------------------- /old/strings/data/string/functions/run/read.mcfunction: -------------------------------------------------------------------------------- 1 | # Queue Exists 2 | execute unless score $searching string matches -1 run data modify storage string:internal queue append from storage string:in in 3 | 4 | # No Queue 5 | execute if score $searching string matches -1 run data modify storage string:in string set from storage string:in in.string 6 | execute if score $searching string matches -1 run data modify storage string:in callback.command set from storage string:in in.callback.command 7 | execute if score $searching string matches -1 run data modify storage string:in callback.id set from storage string:in in.callback.id 8 | execute if score $searching string matches -1 run data modify storage string:in callback.error set from storage string:in in.callback.error 9 | execute if score $searching string matches -1 run data modify storage string:in async.iterations set from storage string:in in.async.iterations 10 | execute if score $searching string matches -1 run data modify storage string:in async.parallel set from storage string:in in.async.parallel 11 | execute if score $searching string matches -1 run data modify storage string:in ignore set from storage string:in in.ignore 12 | execute if score $searching string matches -1 store result score $maxchars string run data get storage string:in in.maxchars 13 | execute if score $searching string matches -1 run data modify storage string:in callio set value 0 14 | execute if score $searching string matches -1 run data modify storage string:in callio set from storage string:in in.callio 15 | execute if score $searching string matches -1 run function string:run/run 16 | -------------------------------------------------------------------------------- /old/parser/data/parser/functions/array/number/write_nums.mcfunction: -------------------------------------------------------------------------------- 1 | #writing umber to value array 2 | execute if data storage parse:list {check:"-"} run data modify storage parse:list temp_val append value -1 3 | execute if data storage parse:list {check:"0"} run data modify storage parse:list temp_val append value 0 4 | execute if data storage parse:list {check:"1"} run data modify storage parse:list temp_val append value 1 5 | execute if data storage parse:list {check:"2"} run data modify storage parse:list temp_val append value 2 6 | execute if data storage parse:list {check:"3"} run data modify storage parse:list temp_val append value 3 7 | execute if data storage parse:list {check:"4"} run data modify storage parse:list temp_val append value 4 8 | execute if data storage parse:list {check:"5"} run data modify storage parse:list temp_val append value 5 9 | execute if data storage parse:list {check:"6"} run data modify storage parse:list temp_val append value 6 10 | execute if data storage parse:list {check:"7"} run data modify storage parse:list temp_val append value 7 11 | execute if data storage parse:list {check:"8"} run data modify storage parse:list temp_val append value 8 12 | execute if data storage parse:list {check:"9"} run data modify storage parse:list temp_val append value 9 13 | 14 | #decimal counting 15 | execute if data storage parse:list {check:"."} run scoreboard players set dec= parse.main 0 16 | execute if score dec= parse.main matches 0.. run scoreboard players add dec= parse.main 1 17 | 18 | #shifting next value in and looping 19 | execute if data storage parse:list in[0] run function parser:array/number/next_num -------------------------------------------------------------------------------- /old/examples/data/example/functions/4_multi.mcfunction: -------------------------------------------------------------------------------- 1 | execute unless score $callback string matches 0.. run tellraw @a ["\n"] 2 | # Several strings with same or different callback ids. Strings are put into a queue until they can be handelled 3 | data modify storage string:io queue append value {string:"abc",callback:{command:"function example:4_multi",id:1}} 4 | execute unless score $callback string matches 0.. run tellraw @a ["[#04] Input: ",{"storage":"string:io","nbt":"queue[-1].string","interpret":false}] 5 | data modify storage string:io queue append value {string:"abcde",callback:{command:"function example:4_multi",id:1}} 6 | execute unless score $callback string matches 0.. run tellraw @a ["[#04] Input: ",{"storage":"string:io","nbt":"queue[-1].string","interpret":false}] 7 | data modify storage string:io queue append value {string:"abcdefgh",callback:{command:"function example:4_multi",id:1}} 8 | execute unless score $callback string matches 0.. run tellraw @a ["[#04] Input: ",{"storage":"string:io","nbt":"queue[-1].string","interpret":false}] 9 | data modify storage string:io queue append value {string:"123",callback:{command:"function example:4_multi",id:2}} 10 | execute unless score $callback string matches 0.. run tellraw @a ["[#04] Input: ",{"storage":"string:io","nbt":"queue[-1].string","interpret":false}] 11 | function string:call 12 | 13 | # Output if in Callback 14 | execute if score $callback string matches 1 run tellraw @a ["[#04] Output #A: ",{"nbt":"out","storage":"string:io","interpret":false}] 15 | execute if score $callback string matches 2 run tellraw @a ["[#04] Output #B: ",{"nbt":"out","storage":"string:io","interpret":false}] -------------------------------------------------------------------------------- /old/strings/data/regex/functions/restart/check.mcfunction: -------------------------------------------------------------------------------- 1 | ### Checks if a jump back can happen, or if it's done 2 | # Get last point 3 | execute store result score start_string regex run data get storage regex:main points[-1].string 4 | execute store result score rindex regex run data get storage regex:main points[-1].regex 5 | execute store result score quantifier regex run data get storage regex:main points[-1].quantifier 6 | execute store result score qmax regex run data get storage regex:main points[-1].qmax 7 | execute store result score qmin regex run data get storage regex:main points[-1].qmin 8 | data modify storage regex:main cur_out set from storage regex:main points[-1].out 9 | data modify storage regex:main cur_out_ind set from storage regex:main points[-1].out_ind 10 | data remove storage regex:main points[-1] 11 | 12 | # Done / Restart 13 | scoreboard players operation index regex = start_string regex 14 | scoreboard players add start_string regex 1 15 | execute if score start_string regex >= length regex if data storage regex:main points[0] run function regex:restart/check 16 | #execute if score start_string regex < length regex if score quantifier regex matches 0 run tellraw @a "rc -> r" 17 | execute if score start_string regex < length regex if score quantifier regex matches 0 run function regex:restart/point 18 | execute if score start_string regex < length regex if score quantifier regex matches 0 run function regex:restart/do 19 | 20 | #execute if score start_string regex < length regex if score quantifier regex matches 1 run tellraw @a "rc -> qr" 21 | execute if score start_string regex < length regex if score quantifier regex matches 1 run function regex:restart/do 22 | -------------------------------------------------------------------------------- /old/examples/data/example/functions/_all.mcfunction: -------------------------------------------------------------------------------- 1 | ## Does all tests/examples 2 | scoreboard players add $helper string 1 3 | 4 | execute if score $helper string matches 0 run schedule function example:_helper 1t 5 | 6 | execute if score $helper string matches 2 run function example:2_callback 7 | execute if score $helper string matches 2 run function example:3_callback2 8 | execute if score $helper string matches 2 run function example:4_multi 9 | execute if score $helper string matches 2 run function example:5_skull 10 | execute if score $helper string matches 2 run function example:6_all 11 | execute if score $helper string matches 2 run schedule function example:_helper 1t 12 | 13 | execute if score $helper string matches 5 run function example:8_substr_string 14 | execute if score $helper string matches 5 run function example:9_substr_advanced 15 | execute if score $helper string matches 5 run function example:10_quote_test 16 | execute if score $helper string matches 5 run schedule function example:_helper 1t 17 | 18 | 19 | execute if score $helper string matches 8 run function example:12_name 20 | execute if score $helper string matches 8 run function example:13_decode64 21 | execute if score $helper string matches 8 run function example:14_get_unix_time 22 | execute if score $helper string matches 8 run replaceitem entity @a weapon.mainhand minecraft:writable_book{pages:["Page1","Page2","Page3"]} 23 | execute if score $helper string matches 8 run function example:15_from_book 24 | execute if score $helper string matches 8 run replaceitem entity @a weapon.mainhand minecraft:air 25 | execute if score $helper string matches 8 run function example:16_simplify_name 26 | execute if score $helper string matches 8 run function example:17_async 27 | execute if score $helper string matches 8 run function example:18_parallel 28 | execute if score $helper string matches 8 run schedule function example:_helper 1t 29 | 30 | -------------------------------------------------------------------------------- /old/base64/data/base64/functions/out/read_bits.mcfunction: -------------------------------------------------------------------------------- 1 | #converting bits to byte 2 | execute if data storage base64:main bits[0] run function base64:out/next_bit 3 | execute if data storage base64:main {temp:1b} run scoreboard players add byte= base64.num 128 4 | data modify storage base64:main temp set value 0b 5 | 6 | execute if data storage base64:main bits[0] run function base64:out/next_bit 7 | execute if data storage base64:main {temp:1b} run scoreboard players add byte= base64.num 64 8 | data modify storage base64:main temp set value 0b 9 | 10 | execute if data storage base64:main bits[0] run function base64:out/next_bit 11 | execute if data storage base64:main {temp:1b} run scoreboard players add byte= base64.num 32 12 | data modify storage base64:main temp set value 0b 13 | 14 | execute if data storage base64:main bits[0] run function base64:out/next_bit 15 | execute if data storage base64:main {temp:1b} run scoreboard players add byte= base64.num 16 16 | data modify storage base64:main temp set value 0b 17 | 18 | execute if data storage base64:main bits[0] run function base64:out/next_bit 19 | execute if data storage base64:main {temp:1b} run scoreboard players add byte= base64.num 8 20 | data modify storage base64:main temp set value 0b 21 | 22 | execute if data storage base64:main bits[0] run function base64:out/next_bit 23 | execute if data storage base64:main {temp:1b} run scoreboard players add byte= base64.num 4 24 | data modify storage base64:main temp set value 0b 25 | 26 | execute if data storage base64:main bits[0] run function base64:out/next_bit 27 | execute if data storage base64:main {temp:1b} run scoreboard players add byte= base64.num 2 28 | data modify storage base64:main temp set value 0b 29 | 30 | execute if data storage base64:main bits[0] run function base64:out/next_bit 31 | execute if data storage base64:main {temp:1b} run scoreboard players add byte= base64.num 1 32 | data modify storage base64:main temp set value 0b -------------------------------------------------------------------------------- /old/strings/data/string/functions/helper/build.mcfunction: -------------------------------------------------------------------------------- 1 | # Command Blocks 2 | setblock ~ ~ ~ minecraft:command_block[facing=north]{Command:"function string:run/start",TrackOutput:0b} destroy 3 | setblock ~ ~ ~-1 minecraft:chain_command_block[facing=north]{auto:1b,Command:"help me"} destroy 4 | setblock ~ ~ ~-2 minecraft:chain_command_block[facing=north]{auto:1b,Command:"tag 00000000-0073-9653-0000-000000000000 list",CustomName:'""'} destroy 5 | setblock ~ ~ ~-3 minecraft:chain_command_block[facing=north]{auto:1b,Command:"function string:run/compare_build",TrackOutput:0b} destroy 6 | setblock ~ ~ ~-4 minecraft:chain_command_block[facing=north]{auto:1b,Command:"enchant 00000000-0073-9653-0000-000000000001 minecraft:aqua_affinity",CustomName:'""'} destroy 7 | setblock ~ ~ ~-5 minecraft:chain_command_block[facing=north]{auto:1b,Command:"enchant 00000000-0073-9653-0000-000000000002 minecraft:aqua_affinity",CustomName:'""'} destroy 8 | setblock ~ ~ ~-6 minecraft:chain_command_block[facing=east]{auto:1b,Command:"function string:run/compare_prepare",TrackOutput:0b} destroy 9 | setblock ~1 ~ ~-6 minecraft:chain_command_block[facing=south]{auto:1b,Command:"execute store result score $count string run tag 00000000-0073-9653-0000-000000000000 list",CustomName:'""'} destroy 10 | setblock ~1 ~ ~-5 minecraft:chain_command_block[facing=south]{auto:1b,Command:"function string:run/compare_prepare2",TrackOutput:0b} destroy 11 | setblock ~1 ~ ~-4 minecraft:chain_command_block[facing=south]{auto:1b,Command:"enchant 00000000-0073-9653-0000-000000000003 minecraft:aqua_affinity",CustomName:'""'} destroy 12 | setblock ~1 ~ ~-3 minecraft:chain_command_block[facing=south]{auto:1b,Command:"enchant 00000000-0073-9653-0000-000000000002 minecraft:aqua_affinity",CustomName:'""'} destroy 13 | setblock ~1 ~ ~-2 minecraft:chain_command_block[facing=south]{auto:1b,Command:"help me"} destroy 14 | setblock ~1 ~ ~-1 minecraft:chain_command_block[facing=west]{auto:1b,Command:"function string:run/search_maybe",TrackOutput:0b} destroy 15 | 16 | # Other 17 | setblock ~ ~1 ~ minecraft:oak_sign -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/values/cap.mcfunction: -------------------------------------------------------------------------------- 1 | #char checks A-Z 2 | execute if data storage base64:in {temp:"A"} run function base64:in/bits/0 3 | execute if data storage base64:in {temp:"B"} run function base64:in/bits/1 4 | execute if data storage base64:in {temp:"C"} run function base64:in/bits/2 5 | execute if data storage base64:in {temp:"D"} run function base64:in/bits/3 6 | execute if data storage base64:in {temp:"E"} run function base64:in/bits/4 7 | execute if data storage base64:in {temp:"F"} run function base64:in/bits/5 8 | execute if data storage base64:in {temp:"G"} run function base64:in/bits/6 9 | execute if data storage base64:in {temp:"H"} run function base64:in/bits/7 10 | execute if data storage base64:in {temp:"I"} run function base64:in/bits/8 11 | execute if data storage base64:in {temp:"J"} run function base64:in/bits/9 12 | execute if data storage base64:in {temp:"K"} run function base64:in/bits/10 13 | execute if data storage base64:in {temp:"L"} run function base64:in/bits/11 14 | execute if data storage base64:in {temp:"M"} run function base64:in/bits/12 15 | execute if data storage base64:in {temp:"N"} run function base64:in/bits/13 16 | execute if data storage base64:in {temp:"O"} run function base64:in/bits/14 17 | execute if data storage base64:in {temp:"P"} run function base64:in/bits/15 18 | execute if data storage base64:in {temp:"Q"} run function base64:in/bits/16 19 | execute if data storage base64:in {temp:"R"} run function base64:in/bits/17 20 | execute if data storage base64:in {temp:"S"} run function base64:in/bits/18 21 | execute if data storage base64:in {temp:"T"} run function base64:in/bits/19 22 | execute if data storage base64:in {temp:"U"} run function base64:in/bits/20 23 | execute if data storage base64:in {temp:"V"} run function base64:in/bits/21 24 | execute if data storage base64:in {temp:"W"} run function base64:in/bits/22 25 | execute if data storage base64:in {temp:"X"} run function base64:in/bits/23 26 | execute if data storage base64:in {temp:"Y"} run function base64:in/bits/24 27 | execute if data storage base64:in {temp:"Z"} run function base64:in/bits/25 -------------------------------------------------------------------------------- /old/base64/data/base64/functions/in/values/lc.mcfunction: -------------------------------------------------------------------------------- 1 | #char checks a-z 2 | execute if data storage base64:in {temp:"a"} run function base64:in/bits/26 3 | execute if data storage base64:in {temp:"b"} run function base64:in/bits/27 4 | execute if data storage base64:in {temp:"c"} run function base64:in/bits/28 5 | execute if data storage base64:in {temp:"d"} run function base64:in/bits/29 6 | execute if data storage base64:in {temp:"e"} run function base64:in/bits/30 7 | execute if data storage base64:in {temp:"f"} run function base64:in/bits/31 8 | execute if data storage base64:in {temp:"g"} run function base64:in/bits/32 9 | execute if data storage base64:in {temp:"h"} run function base64:in/bits/33 10 | execute if data storage base64:in {temp:"i"} run function base64:in/bits/34 11 | execute if data storage base64:in {temp:"j"} run function base64:in/bits/35 12 | execute if data storage base64:in {temp:"k"} run function base64:in/bits/36 13 | execute if data storage base64:in {temp:"l"} run function base64:in/bits/37 14 | execute if data storage base64:in {temp:"m"} run function base64:in/bits/38 15 | execute if data storage base64:in {temp:"n"} run function base64:in/bits/39 16 | execute if data storage base64:in {temp:"o"} run function base64:in/bits/40 17 | execute if data storage base64:in {temp:"p"} run function base64:in/bits/41 18 | execute if data storage base64:in {temp:"q"} run function base64:in/bits/42 19 | execute if data storage base64:in {temp:"r"} run function base64:in/bits/43 20 | execute if data storage base64:in {temp:"s"} run function base64:in/bits/44 21 | execute if data storage base64:in {temp:"t"} run function base64:in/bits/45 22 | execute if data storage base64:in {temp:"u"} run function base64:in/bits/46 23 | execute if data storage base64:in {temp:"v"} run function base64:in/bits/47 24 | execute if data storage base64:in {temp:"w"} run function base64:in/bits/48 25 | execute if data storage base64:in {temp:"x"} run function base64:in/bits/49 26 | execute if data storage base64:in {temp:"y"} run function base64:in/bits/50 27 | execute if data storage base64:in {temp:"z"} run function base64:in/bits/51 -------------------------------------------------------------------------------- /old/applications/data/application_cape/functions/internal/clear.mcfunction: -------------------------------------------------------------------------------- 1 | execute unless score 1mil cape_check.res matches 0 run scoreboard players reset 1mil cape_check.res 2 | execute unless score realms cape_check.res matches 0 run scoreboard players reset realms cape_check.res 3 | execute unless score turtle cape_check.res matches 0 run scoreboard players reset turtle cape_check.res 4 | execute unless score translator cape_check.res matches 0 run scoreboard players reset translator cape_check.res 5 | execute unless score scrolls cape_check.res matches 0 run scoreboard players reset scrolls cape_check.res 6 | execute unless score prismarine cape_check.res matches 0 run scoreboard players reset prismarine cape_check.res 7 | execute unless score mrmessiah cape_check.res matches 0 run scoreboard players reset mrmessiah cape_check.res 8 | execute unless score mojira cape_check.res matches 0 run scoreboard players reset mojira cape_check.res 9 | execute unless score mojangclassic cape_check.res matches 0 run scoreboard players reset mojangclassic cape_check.res 10 | execute unless score mojang cape_check.res matches 0 run scoreboard players reset mojang cape_check.res 11 | execute unless score julianclark cape_check.res matches 0 run scoreboard players reset julianclark cape_check.res 12 | execute unless score dannybstyle cape_check.res matches 0 run scoreboard players reset dannybstyle cape_check.res 13 | execute unless score cobalt cape_check.res matches 0 run scoreboard players reset cobalt cape_check.res 14 | execute unless score chinesetranslator cape_check.res matches 0 run scoreboard players reset chinesetranslator cape_check.res 15 | execute unless score cheapsh0t cape_check.res matches 0 run scoreboard players reset cheapsh0t cape_check.res 16 | execute unless score m11 cape_check.res matches 0 run scoreboard players reset m11 cape_check.res 17 | execute unless score m12 cape_check.res matches 0 run scoreboard players reset m12 cape_check.res 18 | execute unless score m13 cape_check.res matches 0 run scoreboard players reset m13 cape_check.res 19 | execute unless score m15 cape_check.res matches 0 run scoreboard players reset m15 cape_check.res 20 | execute unless score m16 cape_check.res matches 0 run scoreboard players reset m16 cape_check.res -------------------------------------------------------------------------------- /old/strings/data/case/functions/call/to_lower.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage case:io out set from storage case:io in 2 | execute if data storage case:io {in:"A"} run data modify storage case:io out set value "a" 3 | execute if data storage case:io {in:"B"} run data modify storage case:io out set value "b" 4 | execute if data storage case:io {in:"C"} run data modify storage case:io out set value "c" 5 | execute if data storage case:io {in:"D"} run data modify storage case:io out set value "d" 6 | execute if data storage case:io {in:"E"} run data modify storage case:io out set value "e" 7 | execute if data storage case:io {in:"F"} run data modify storage case:io out set value "f" 8 | execute if data storage case:io {in:"G"} run data modify storage case:io out set value "g" 9 | execute if data storage case:io {in:"H"} run data modify storage case:io out set value "h" 10 | execute if data storage case:io {in:"i"} run data modify storage case:io out set value "i" 11 | execute if data storage case:io {in:"J"} run data modify storage case:io out set value "j" 12 | execute if data storage case:io {in:"K"} run data modify storage case:io out set value "k" 13 | execute if data storage case:io {in:"L"} run data modify storage case:io out set value "l" 14 | execute if data storage case:io {in:"M"} run data modify storage case:io out set value "m" 15 | execute if data storage case:io {in:"N"} run data modify storage case:io out set value "n" 16 | execute if data storage case:io {in:"O"} run data modify storage case:io out set value "o" 17 | execute if data storage case:io {in:"P"} run data modify storage case:io out set value "p" 18 | execute if data storage case:io {in:"Q"} run data modify storage case:io out set value "q" 19 | execute if data storage case:io {in:"R"} run data modify storage case:io out set value "r" 20 | execute if data storage case:io {in:"S"} run data modify storage case:io out set value "s" 21 | execute if data storage case:io {in:"T"} run data modify storage case:io out set value "t" 22 | execute if data storage case:io {in:"U"} run data modify storage case:io out set value "u" 23 | execute if data storage case:io {in:"V"} run data modify storage case:io out set value "v" 24 | execute if data storage case:io {in:"W"} run data modify storage case:io out set value "w" 25 | execute if data storage case:io {in:"X"} run data modify storage case:io out set value "x" 26 | execute if data storage case:io {in:"Y"} run data modify storage case:io out set value "y" 27 | execute if data storage case:io {in:"Z"} run data modify storage case:io out set value "z" -------------------------------------------------------------------------------- /old/strings/data/case/functions/call/to_upper.mcfunction: -------------------------------------------------------------------------------- 1 | data modify storage case:io out set from storage case:io in 2 | execute if data storage case:io {in:"a"} run data modify storage case:io out set value "A" 3 | execute if data storage case:io {in:"b"} run data modify storage case:io out set value "B" 4 | execute if data storage case:io {in:"c"} run data modify storage case:io out set value "C" 5 | execute if data storage case:io {in:"d"} run data modify storage case:io out set value "D" 6 | execute if data storage case:io {in:"e"} run data modify storage case:io out set value "E" 7 | execute if data storage case:io {in:"f"} run data modify storage case:io out set value "F" 8 | execute if data storage case:io {in:"g"} run data modify storage case:io out set value "G" 9 | execute if data storage case:io {in:"h"} run data modify storage case:io out set value "H" 10 | execute if data storage case:io {in:"i"} run data modify storage case:io out set value "I" 11 | execute if data storage case:io {in:"j"} run data modify storage case:io out set value "J" 12 | execute if data storage case:io {in:"k"} run data modify storage case:io out set value "K" 13 | execute if data storage case:io {in:"l"} run data modify storage case:io out set value "L" 14 | execute if data storage case:io {in:"m"} run data modify storage case:io out set value "M" 15 | execute if data storage case:io {in:"n"} run data modify storage case:io out set value "N" 16 | execute if data storage case:io {in:"o"} run data modify storage case:io out set value "O" 17 | execute if data storage case:io {in:"p"} run data modify storage case:io out set value "P" 18 | execute if data storage case:io {in:"q"} run data modify storage case:io out set value "Q" 19 | execute if data storage case:io {in:"r"} run data modify storage case:io out set value "R" 20 | execute if data storage case:io {in:"s"} run data modify storage case:io out set value "S" 21 | execute if data storage case:io {in:"t"} run data modify storage case:io out set value "T" 22 | execute if data storage case:io {in:"u"} run data modify storage case:io out set value "U" 23 | execute if data storage case:io {in:"v"} run data modify storage case:io out set value "V" 24 | execute if data storage case:io {in:"w"} run data modify storage case:io out set value "W" 25 | execute if data storage case:io {in:"x"} run data modify storage case:io out set value "X" 26 | execute if data storage case:io {in:"y"} run data modify storage case:io out set value "Y" 27 | execute if data storage case:io {in:"z"} run data modify storage case:io out set value "Z" --------------------------------------------------------------------------------