콜드0323
대표칭호 없음
이해도 | 입문자 |
---|---|
게임버전 (JE) | 관련없음 |
게임버전 (BE) | 1.20.x |
스크립트 애드온 | { "format_version": "1.20.10", "minecraft:block": { "description": { "identifier": "cp:strawberry_crop", "menu_category": { "category": "none" }, "properties": { "cp:growth_stage": [0, 1, 2, 3, 4, 5, 6] } }, "components": { "minecraft:flammable": true, "minecraft:geometry": "geometry.crop", "minecraft:light_dampening": 0, "minecraft:collision_box": false, "minecraft:placement_filter": { "conditions": [ { "allowed_faces": ["up"], "block_filter": ["minecraft:farmland"] } ] }, "minecraft:random_ticking": { "on_tick": { "event": "cp:grow", "condition": "q.block_property('cp:growth_stage') < 6" } }, "minecraft:queued_ticking": { "interval_range": [10, 10], "looping": true, "on_tick": { "event": "cp:destroy", "condition": "q.block_neighbor_has_any_tag(1,0,0,'water') || q.block_neighbor_has_any_tag(-1,0,0,'water') || q.block_neighbor_has_any_tag(0,0,1,'water') || q.block_neighbor_has_any_tag(0,0 |
마인크래프트 be 에서
[Json][error]-block_definitions | /storage/emulated/0/Android/data/com.mojang.minecraftpe/files/games/com.mojang/minecraftWorlds/cFDEZNS3BQA=/behavior_packs/test 2c BP | blocks/strawberry_crop.json | upgrade blocks/strawberry_crop.json | failed to parse file into a json document: Missing a comma or '}' after an object member.
라는 오류가 나타나서 json파일이 잘못됐나?찾아볼려고 검사기 돌리고 챗gtp돌려봤는데도,정상이라고 나타나는데,마크에 실행하기만하면 안됩니다.파일을 다빼고,이거 외에 다른 애드온도 다없애고 재시작해봐도 안됩니다..도와주세요..
댓글에 문제의 json파일 내용 전부 올렸습니다.
콜드0323
2023.07.31{
"format_version": "1.20.10",
"minecraft:block": {
"description": {
"identifier": "cp:strawberry_crop",
"menu_category": {
"category": "none"
},
"properties": {
"cp:growth_stage": [0, 1, 2, 3, 4, 5, 6]
}
},
"components": {
"minecraft:flammable": true,
"minecraft:geometry": "geometry.crop",
"minecraft:light_dampening": 0,
"minecraft:collision_box": false,
"minecraft:placement_filter": {
"conditions": [
{
"allowed_faces": ["up"],
"block_filter": ["minecraft:farmland"]
}
]
},
"minecraft:random_ticking": {
"on_tick": {
"event": "cp:grow",
"condition": "q.block_property('cp:growth_stage') < 6"
}
},
"minecraft:queued_ticking": {
"interval_range": [10, 10],
"looping": true,
"on_tick": {
"event": "cp:destroy",
"condition": "q.block_neighbor_has_any_tag(1,0,0,'water') || q.block_neighbor_has_any_tag(-1,0,0,'water') || q.block_neighbor_has_any_tag(0,0,1,'water') || q.block_neighbor_has_any_tag(0,0,-1,'water') || q.block_neighbor_has_any_tag(0,1,0,'water')"
}
},
"minecraft:on_interact": {
"event": "cp:fertilize",
"condition": "q.is_item_name_any('slot.weapon.mainhand', 'minecraft:bone_meal') && q.block_property('cp:growth_stage') < 6"
}
},
"events": {
"cp:destroy": {
"run_command": {
"command": "setblock ~~~ air destroy"
}
},
"cp:grow": {
"set_block_property": {
"cp:growth_stage": "q.block_property('cp:growth_stage') + 1"
}
},
"cp:fertilize": {
"decrement_stack": {},
"run_command": {
"command": ["particle minecraft:crop_growth_emitter ~~~", "playsound item.bone_meal.use @a ~~~"]
},
"set_block_property": {
"cp:growth_stage": "q.block_property('cp:growth_stage') + Math.random(1, 6 - q.block_property('cp:growth_stage'))"
}
}
},
"permutations": [
{
"condition": "q.block_property('cp:growth_stage') == 0",
"components": {
"minecraft:material_instances": {
"*": {
"texture": "strawberry_crop_growth_stage_0",
"render_method": "alpha_test",
"face_dimming": false,
"ambient_occlusion": false
}
},
"minecraft:selection_box": {
"origin": [-8, 0, -8],
"size": [16, 2, 16]
}
}
},
{
"condition": "q.block_property('cp:growth_stage') == 1",
"components": {
"minecraft:material_instances": {
"*": {
"texture": "strawberry_crop_growth_stage_1",
"render_method": "alpha_test",
"face_dimming": false,
"ambient_occlusion": false
}
},
"minecraft:selection_box": {
"origin": [-8, 0, -8],
"size": [16, 4, 16]
}
}
},
{
"condition": "q.block_property('cp:growth_stage') == 2",
"components": {
"minecraft:material_instances": {
"*": {
"texture": "strawberry_crop_growth_stage_2",
"render_method": "alpha_test",
"face_dimming": false,
"ambient_occlusion": false
}
},
"minecraft:selection_box": {
"origin": [-8, 0, -8],
"size": [16, 6, 16]
}
}
},
{
"condition": "q.block_property('cp:growth_stage') == 3",
"components": {
"minecraft:material_instances": {
"*": {
"texture": "strawberry_crop_growth_stage_3",
"render_method": "alpha_test",
"face_dimming": false,
"ambient_occlusion": false
}
},
"minecraft:selection_box": {
"origin": [-8, 0, -8],
"size": [16, 8, 16]
}
}
},
{
"condition": "q.block_property('cp:growth_stage') == 4",
"components": {
"minecraft:material_instances": {
"*": {
"texture": "strawberry_crop_growth_stage_4",
"render_method": "alpha_test",
"face_dimming": false,
"ambient_occlusion": false
}
},
"minecraft:selection_box": {
"origin": [-8, 0, -8],
"size": [16, 10, 16]
}
}
},
{
"condition": "q.block_property('cp:growth_stage') == 5",
"components": {
"minecraft:material_instances": {
"*": {
"texture": "strawberry_crop_growth_stage_5",
"render_method": "alpha_test",
"face_dimming": false,
"ambient_occlusion": false
}
},
"minecraft:selection_box": {
"origin": [-8, 0, -8],
"size": [16, 12, 16]
}
}
},
{
"condition": "q.block_property('cp:growth_stage') == 6",
"components": {
"minecraft:material_instances": {
"*": {
"texture": "strawberry_crop_growth_stage_6",
"render_method": "alpha_test",
"face_dimming": false,
"ambient_occlusion": false
}
},
"minecraft:selection_box": {
"origin": [-8, 0, -8],
"size": [16, 14, 16]
},
"minecraft:loot": "loot_tables/blocks/strawberry_loot.json"
}
}
]
}
코코냐
2023.07.31댓글에 올리면 들여쓰기가 모두 깨져 괄호간의 관계가 구분되지 않습니다. 본문에 올리지 않는다면 적어도 pastebin을 사용할것이 권장됩니다.