超长的json
{
"kind": "categoryToolbox",
"contents": [
{
"kind": "category",
"name": "%{BKY_CATLOGIC}",
"colour": "%{BKY_LOGIC_HUE}",
"contents": [
{
"kind": "block",
"type": "controls_if"
},
{
"kind": "block",
"type": "logic_compare"
},
{
"kind": "block",
"type": "logic_operation"
},
{
"kind": "block",
"type": "logic_negate"
},
{
"kind": "block",
"type": "logic_boolean"
},
{
"kind": "block",
"type": "logic_null"
},
{
"kind": "block",
"type": "logic_ternary"
}
]
},
{
"kind": "category",
"name": "%{BKY_CATLOOPS}",
"colour": "%{BKY_LOOPS_HUE}",
"contents": [
{
"kind": "block",
"type": "controls_repeat_ext",
"values": {
"TIMES": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 10
}
}
}
},
{
"kind": "block",
"type": "controls_whileUntil"
},
{
"kind": "block",
"type": "controls_for",
"values": {
"FROM": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 1
}
},
"TO": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 10
}
},
"BY": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 1
}
}
}
},
{
"kind": "block",
"type": "controls_forEach"
},
{
"kind": "block",
"type": "controls_flow_statements"
}
]
},
{
"kind": "category",
"name": "%{BKY_CATMATH}",
"colour": "%{BKY_MATH_HUE}",
"contents": [
{
"kind": "block",
"type": "math_number",
"fields": {
"NUM": 123
}
},
{
"kind": "block",
"type": "math_arithmetic",
"values": {
"A": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 1
}
},
"B": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 1
}
}
}
},
{
"kind": "block",
"type": "math_single",
"values": {
"NUM": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 9
}
}
}
},
{
"kind": "block",
"type": "math_trig",
"values": {
"NUM": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 45
}
}
}
},
{
"kind": "block",
"type": "math_constant"
},
{
"kind": "block",
"type": "math_number_property",
"values": {
"NUMBER_TO_CHECK": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 0
}
}
}
},
{
"kind": "block",
"type": "math_round",
"values": {
"NUM": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 3.1
}
}
}
},
{
"kind": "block",
"type": "math_on_list"
},
{
"kind": "block",
"type": "math_modulo",
"values": {
"DIVIDEND": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 64
}
},
"DIVISOR": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 10
}
}
}
},
{
"kind": "block",
"type": "math_constrain",
"values": {
"VALUE": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 50
}
},
"LOW": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 1
}
},
"HIGH": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 100
}
}
}
},
{
"kind": "block",
"type": "math_random_int",
"values": {
"FROM": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 1
}
},
"TO": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 100
}
}
}
},
{
"kind": "block",
"type": "math_random_float"
},
{
"kind": "block",
"type": "math_atan2",
"values": {
"X": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 1
}
},
"Y": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 1
}
}
}
}
]
},
{
"kind": "category",
"name": "%{BKY_CATTEXT}",
"colour": "%{BKY_TEXTS_HUE}",
"contents": [
{
"kind": "block",
"type": "text"
},
{
"kind": "block",
"type": "text_join"
},
{
"kind": "block",
"type": "text_append",
"values": {
"TEXT": {
"kind": "shadow",
"type": "text"
}
}
},
{
"kind": "block",
"type": "text_length",
"values": {
"VALUE": {
"kind": "shadow",
"type": "text",
"fields": {
"TEXT": "abc"
}
}
}
},
{
"kind": "block",
"type": "text_isEmpty",
"values": {
"VALUE": {
"kind": "shadow",
"type": "text",
"fields": {
"TEXT": ""
}
}
}
},
{
"kind": "block",
"type": "text_indexOf",
"values": {
"VALUE": {
"kind": "block",
"type": "variables_get",
"fields": {
"VAR": "{textVariable}"
}
},
"FIND": {
"kind": "shadow",
"type": "text",
"fields": {
"TEXT": "abc"
}
}
}
},
{
"kind": "block",
"type": "text_charAt",
"values": {
"VALUE": {
"kind": "block",
"type": "variables_get",
"fields": {
"VAR": "{textVariable}"
}
}
}
},
{
"kind": "block",
"type": "text_getSubstring",
"values": {
"STRING": {
"kind": "block",
"type": "variables_get",
"fields": {
"VAR": "{textVariable}"
}
}
}
},
{
"kind": "block",
"type": "text_changeCase",
"values": {
"TEXT": {
"kind": "shadow",
"type": "text",
"fields": {
"TEXT": "abc"
}
}
}
},
{
"kind": "block",
"type": "text_trim",
"values": {
"TEXT": {
"kind": "shadow",
"type": "text",
"fields": {
"TEXT": "abc"
}
}
}
},
{
"kind": "block",
"type": "text_print",
"values": {
"TEXT": {
"kind": "shadow",
"type": "text",
"fields": {
"TEXT": "abc"
}
}
}
},
{
"kind": "block",
"type": "text_prompt_ext",
"values": {
"TEXT": {
"kind": "shadow",
"type": "text",
"fields": {
"TEXT": "abc"
}
}
}
}
]
},
{
"kind": "category",
"name": "%{BKY_CATLISTS}",
"colour": "%{BKY_LISTS_HUE}",
"contents": [
{
"kind": "block",
"type": "lists_create_with",
"mutations": {
"items": 0
}
},
{
"kind": "block",
"type": "lists_create_with"
},
{
"kind": "block",
"type": "lists_repeat",
"values": {
"NUM": {
"kind": "shadow",
"type": "math_number",
"fields": {
"NUM": 5
}
}
}
},
{
"kind": "block",
"type": "lists_length"
},
{
"kind": "block",
"type": "lists_isEmpty"
},
{
"kind": "block",
"type": "lists_indexOf",
"values": {
"VALUE": {
"kind": "block",
"type": "variables_get",
"fields": {
"VAR": "{listVariable}"
}
}
}
},
{
"kind": "block",
"type": "lists_getIndex",
"values": {
"VALUE": {
"kind": "block",
"type": "variables_get",
"fields": {
"VAR": "{listVariable}"
}
}
}
},
{
"kind": "block",
"type": "lists_setIndex",
"values": {
"LIST": {
"kind": "block",
"type": "variables_get",
"fields": {
"VAR": "{listVariable}"
}
}
}
},
{
"kind": "block",
"type": "lists_getSublist",
"values": {
"LIST": {
"kind": "block",
"type": "variables_get",
"fields": {
"VAR": "{listVariable}"
}
}
}
},
{
"kind": "block",
"type": "lists_split",
"values": {
"DELIM": {
"kind": "shadow",
"type": "text",
"fields": {
"TEXT": ","
}
}
}
},
{
"kind": "block",
"type": "lists_sort"
}
]
},
{
"kind": "sep"
},
{
"kind": "category",
"name": "%{BKY_CATVARIABLES}",
"colour": "%{BKY_VARIABLES_HUE}",
"custom": "VARIABLE"
},
{
"kind": "category",
"name": "%{BKY_CATFUNCTIONS}",
"colour": "%{BKY_PROCEDURES_HUE}",
"custom": "PROCEDURE"
}
]
}