# Handle /trigger bc_ui actions (no chat confirmation popups)
execute if score @s bc_ui matches 1000..3999 run scoreboard players operation @s bc_ui_last = @s bc_ui

execute if score @s bc_ui matches 9000 run function bordercraft:ui/menu
execute if score @s bc_ui matches 9100 run function bordercraft:ui/set_all
execute if score @s bc_ui matches 9101 run function bordercraft:ui/set_missing
execute if score @s bc_ui matches 9102 run function bordercraft:ui/set_obtained

# Filtered paging (use triggers to avoid click confirmation popups)
execute if score @s bc_ui matches 9201 run function bordercraft:ui/items/prev_filtered
execute if score @s bc_ui matches 9202 run function bordercraft:ui/items/next_filtered
execute if score @s bc_ui matches 9301 run function bordercraft:ui/mobs/prev_filtered
execute if score @s bc_ui matches 9302 run function bordercraft:ui/mobs/next_filtered
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1001 run function bordercraft:ui/items/page_1
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1001 run scoreboard players set @s bc_ui_page 1
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1001 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1002 run function bordercraft:ui/items/page_2
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1002 run scoreboard players set @s bc_ui_page 2
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1002 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1003 run function bordercraft:ui/items/page_3
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1003 run scoreboard players set @s bc_ui_page 3
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1003 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1004 run function bordercraft:ui/items/page_4
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1004 run scoreboard players set @s bc_ui_page 4
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1004 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1005 run function bordercraft:ui/items/page_5
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1005 run scoreboard players set @s bc_ui_page 5
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1005 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1006 run function bordercraft:ui/items/page_6
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1006 run scoreboard players set @s bc_ui_page 6
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1006 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1007 run function bordercraft:ui/items/page_7
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1007 run scoreboard players set @s bc_ui_page 7
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1007 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1008 run function bordercraft:ui/items/page_8
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1008 run scoreboard players set @s bc_ui_page 8
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1008 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1009 run function bordercraft:ui/items/page_9
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1009 run scoreboard players set @s bc_ui_page 9
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1009 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1010 run function bordercraft:ui/items/page_10
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1010 run scoreboard players set @s bc_ui_page 10
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1010 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1011 run function bordercraft:ui/items/page_11
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1011 run scoreboard players set @s bc_ui_page 11
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1011 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1012 run function bordercraft:ui/items/page_12
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1012 run scoreboard players set @s bc_ui_page 12
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1012 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1013 run function bordercraft:ui/items/page_13
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1013 run scoreboard players set @s bc_ui_page 13
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1013 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1014 run function bordercraft:ui/items/page_14
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1014 run scoreboard players set @s bc_ui_page 14
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1014 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1015 run function bordercraft:ui/items/page_15
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1015 run scoreboard players set @s bc_ui_page 15
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1015 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1016 run function bordercraft:ui/items/page_16
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1016 run scoreboard players set @s bc_ui_page 16
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1016 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1017 run function bordercraft:ui/items/page_17
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1017 run scoreboard players set @s bc_ui_page 17
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1017 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1018 run function bordercraft:ui/items/page_18
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1018 run scoreboard players set @s bc_ui_page 18
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1018 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1019 run function bordercraft:ui/items/page_19
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1019 run scoreboard players set @s bc_ui_page 19
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1019 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1020 run function bordercraft:ui/items/page_20
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1020 run scoreboard players set @s bc_ui_page 20
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1020 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1021 run function bordercraft:ui/items/page_21
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1021 run scoreboard players set @s bc_ui_page 21
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1021 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1022 run function bordercraft:ui/items/page_22
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1022 run scoreboard players set @s bc_ui_page 22
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1022 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1023 run function bordercraft:ui/items/page_23
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1023 run scoreboard players set @s bc_ui_page 23
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1023 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1024 run function bordercraft:ui/items/page_24
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1024 run scoreboard players set @s bc_ui_page 24
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1024 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1025 run function bordercraft:ui/items/page_25
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1025 run scoreboard players set @s bc_ui_page 25
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1025 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1026 run function bordercraft:ui/items/page_26
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1026 run scoreboard players set @s bc_ui_page 26
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1026 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1027 run function bordercraft:ui/items/page_27
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1027 run scoreboard players set @s bc_ui_page 27
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1027 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1028 run function bordercraft:ui/items/page_28
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1028 run scoreboard players set @s bc_ui_page 28
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1028 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1029 run function bordercraft:ui/items/page_29
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1029 run scoreboard players set @s bc_ui_page 29
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1029 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1030 run function bordercraft:ui/items/page_30
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1030 run scoreboard players set @s bc_ui_page 30
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1030 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1031 run function bordercraft:ui/items/page_31
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1031 run scoreboard players set @s bc_ui_page 31
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1031 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1032 run function bordercraft:ui/items/page_32
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1032 run scoreboard players set @s bc_ui_page 32
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1032 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1033 run function bordercraft:ui/items/page_33
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1033 run scoreboard players set @s bc_ui_page 33
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1033 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1034 run function bordercraft:ui/items/page_34
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1034 run scoreboard players set @s bc_ui_page 34
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1034 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1035 run function bordercraft:ui/items/page_35
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1035 run scoreboard players set @s bc_ui_page 35
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1035 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1036 run function bordercraft:ui/items/page_36
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1036 run scoreboard players set @s bc_ui_page 36
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1036 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1037 run function bordercraft:ui/items/page_37
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1037 run scoreboard players set @s bc_ui_page 37
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1037 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1038 run function bordercraft:ui/items/page_38
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1038 run scoreboard players set @s bc_ui_page 38
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1038 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1039 run function bordercraft:ui/items/page_39
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1039 run scoreboard players set @s bc_ui_page 39
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1039 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1040 run function bordercraft:ui/items/page_40
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1040 run scoreboard players set @s bc_ui_page 40
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1040 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1041 run function bordercraft:ui/items/page_41
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1041 run scoreboard players set @s bc_ui_page 41
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1041 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1042 run function bordercraft:ui/items/page_42
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1042 run scoreboard players set @s bc_ui_page 42
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1042 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1043 run function bordercraft:ui/items/page_43
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1043 run scoreboard players set @s bc_ui_page 43
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1043 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1044 run function bordercraft:ui/items/page_44
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1044 run scoreboard players set @s bc_ui_page 44
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1044 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1045 run function bordercraft:ui/items/page_45
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1045 run scoreboard players set @s bc_ui_page 45
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1045 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1046 run function bordercraft:ui/items/page_46
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1046 run scoreboard players set @s bc_ui_page 46
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1046 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1047 run function bordercraft:ui/items/page_47
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1047 run scoreboard players set @s bc_ui_page 47
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1047 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1048 run function bordercraft:ui/items/page_48
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1048 run scoreboard players set @s bc_ui_page 48
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1048 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1049 run function bordercraft:ui/items/page_49
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1049 run scoreboard players set @s bc_ui_page 49
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1049 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1050 run function bordercraft:ui/items/page_50
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1050 run scoreboard players set @s bc_ui_page 50
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1050 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1051 run function bordercraft:ui/items/page_51
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1051 run scoreboard players set @s bc_ui_page 51
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1051 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1052 run function bordercraft:ui/items/page_52
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1052 run scoreboard players set @s bc_ui_page 52
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1052 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1053 run function bordercraft:ui/items/page_53
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1053 run scoreboard players set @s bc_ui_page 53
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1053 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1054 run function bordercraft:ui/items/page_54
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1054 run scoreboard players set @s bc_ui_page 54
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1054 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1055 run function bordercraft:ui/items/page_55
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1055 run scoreboard players set @s bc_ui_page 55
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1055 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1056 run function bordercraft:ui/items/page_56
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1056 run scoreboard players set @s bc_ui_page 56
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1056 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1057 run function bordercraft:ui/items/page_57
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1057 run scoreboard players set @s bc_ui_page 57
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1057 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1058 run function bordercraft:ui/items/page_58
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1058 run scoreboard players set @s bc_ui_page 58
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1058 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1059 run function bordercraft:ui/items/page_59
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1059 run scoreboard players set @s bc_ui_page 59
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1059 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1060 run function bordercraft:ui/items/page_60
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1060 run scoreboard players set @s bc_ui_page 60
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1060 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1061 run function bordercraft:ui/items/page_61
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1061 run scoreboard players set @s bc_ui_page 61
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1061 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1062 run function bordercraft:ui/items/page_62
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1062 run scoreboard players set @s bc_ui_page 62
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1062 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1063 run function bordercraft:ui/items/page_63
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1063 run scoreboard players set @s bc_ui_page 63
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1063 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1064 run function bordercraft:ui/items/page_64
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1064 run scoreboard players set @s bc_ui_page 64
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1064 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1065 run function bordercraft:ui/items/page_65
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1065 run scoreboard players set @s bc_ui_page 65
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1065 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1066 run function bordercraft:ui/items/page_66
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1066 run scoreboard players set @s bc_ui_page 66
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1066 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1067 run function bordercraft:ui/items/page_67
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1067 run scoreboard players set @s bc_ui_page 67
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1067 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 1068 run function bordercraft:ui/items/page_68
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1068 run scoreboard players set @s bc_ui_page 68
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 1068 run function bordercraft:ui/items/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 2001 run function bordercraft:ui/mobs/page_1
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 2001 run scoreboard players set @s bc_ui_page 1
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 2001 run function bordercraft:ui/mobs/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 2002 run function bordercraft:ui/mobs/page_2
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 2002 run scoreboard players set @s bc_ui_page 2
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 2002 run function bordercraft:ui/mobs/filtered_render
execute if score @s bc_ui_filter matches 0 if score @s bc_ui matches 2003 run function bordercraft:ui/mobs/page_3
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 2003 run scoreboard players set @s bc_ui_page 3
execute unless score @s bc_ui_filter matches 0 if score @s bc_ui matches 2003 run function bordercraft:ui/mobs/filtered_render
execute if score @s bc_ui matches 3001 run function bordercraft:ui/structures/page_1
scoreboard players set @s bc_ui 0
