개인 자료란 (JE)

  서버 커뮤니티

Profile 콜드0323 대표칭호 없음
Profile

이해도 입문자 
게임버전 (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파일 내용 전부 올렸습니다.

2개의 댓글

콜드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
@콜드0323

댓글에 올리면 들여쓰기가 모두 깨져 괄호간의 관계가 구분되지 않습니다. 본문에 올리지 않는다면 적어도 pastebin을 사용할것이 권장됩니다.

뉴스 및 창작물
/files/thumbnails/268/789/003/262x150.crop.jpg?20240515192032

레드스톤

벌레먹은 돌 빠르게 제거하는 법

GlassesFilm

2024-05-15

0

/files/thumbnails/797/788/003/262x150.crop.jpg?20240515090924

건축

마인크래프트로 구현한 카르카손 보드게임

Warak

2024-05-15

1

/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

Windows Borderless 모드에서 악성코드 발견

학교가기싫다

2024-05-08

1

/files/thumbnails/384/778/003/262x150.crop.jpg?20240512002324

업데이트

마인크래프트 자바 에디션 스냅샷 24w18a

학교가기싫다

2024-05-06

0

/files/thumbnails/855/781/003/262x150.crop.jpg?20240505141129

레드스톤

레이저 클리너

GlassesFilm

2024-05-05

1