Minecraft Curly Brackets错误

时间:2016-07-05 05:28:51

标签: runtime-error minecraft

我最近一直试图制作一个命令并且偶然发现了这个问题:

[15:13:07] Data tag parsing failed: Unbalanced curly brackets {}: {Time:1,Block:repeating_command_block,Data:1,TileEntityData:{Command:/execute @e[type=Item,score_ItemType_min=1,score_ItemType=1] ~ ~ ~ /execute @e[r=1,type=Item,score_ItemType_min=2] ~ ~ ~ /scoreboard players set @e[type=Item,r=0] ItemCreate 1 },Passengers:[{id:FallingSand,Time:1,Block:chain_command_block,Data:1,TileEntityData:{Command:execute @e[type=Item,score_ItemCreate_min=1] ~ ~ ~ /summon Item ~ ~ ~ {Motion:[0.0,1.0,0.0],Item:{id:clock,Count:1,tag:{HideFlags:63,Unbreakable:1,display:{Name:"Time_Machine",Lore:[Change Time By Simply Dropping This Item]},ench:[{id:51,lvl:0}]}}}}{id:FallingSand,Time:1,Block:chain_command_block,Data:2,TileEntityData:{Command:execute @e[type=Item,score_ItemCreate_min=1] ~ ~ ~ /summon FireworksRocketEntity ~ ~ ~ {LifeTime:0,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Flicker:0,Trail:1,Colors:[11743532,4312372,14602026],FadeColors:[1973019,4408131]}}}}} }}]}}

我的命令如下,经过多次检查,我不知道如何修复括号。

谢谢,希望有人可以帮助我, 芬恩(aka Pengus41)

/summon FallingSand ~1 ~1 ~ {Time:1,Block:repeating_command_block,Data:1,TileEntityData:
{Command:/execute @e[type=Item,score_ItemType_min=1,score_ItemType=1] ~ ~ ~ /execute @e[r=1,type=Item,score_ItemType_min=2] ~ ~ ~ /scoreboard players set @e[type=Item,r=0] ItemCreate 1 },Passengers:[
{id:FallingSand,Time:1,Block:chain_command_block,Data:1,TileEntityData:
{Command:execute @e[type=Item,score_ItemCreate_min=1] ~ ~ ~ /summon Item ~ ~ ~ {Motion:[0.0,1.0,0.0],Item:{id:clock,Count:1,tag:{HideFlags:63,Unbreakable:1,display:{Name:"Time_Machine",Lore:[Change Time By Simply Dropping This Item]},ench:[{id:51,lvl:0}]}}}}
{id:FallingSand,Time:1,Block:chain_command_block,Data:2,TileEntityData:
{Command:execute @e[type=Item,score_ItemCreate_min=1] ~ ~ ~ /summon FireworksRocketEntity ~ ~ ~ {LifeTime:0,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Flicker:0,Trail:1,Colors:[11743532,4312372,14602026],FadeColors:[1973019,4408131]}}}}} }}]}}

1 个答案:

答案 0 :(得分:0)

看起来你的逗号丢失了。

在使用文本编辑器选项卡缩进命令时,我会遇到任何代码:

Passengers:[
    {
        ...
    }
    {
        ...
    }
}]

Passengers是一个对象数组,有两个(或更多)对象,它们没有逗号分隔。

如果你这样改变:

Passengers:[
    {
        ...
    },
    {
        ...
    }
}]

然后它应该工作(ctrl-f并查找}{并插入逗号,必要时重复。