如何用命令方块调出有一定侦测范围的怪物(例如,僵尸侦测玩家的范围,Name:generic.followRange,Base:50这条指令似乎不太管事,显示无效的json)
本帖最后由 小白勇者 于 2015-1-21 14:25 编辑
summon Zombie x y z {Attributes:[{Name:"generic.followRange",Base:50.0d}]}
summon Zombie x y z {Attributes:[{Name:"generic.followRange",Base:50.0d}]}
小白勇者 发表于 2015-1-20 14:47
您好,您可以使用命令/summon Zombie x y z {Attributes:[{Name:"generic.followRange",Base:50.0d}]}来在坐 ...
额,我突然发现我用的是tellraw,所以才出现这种情况的

本帖最后由 小白勇者 于 2015-1-21 15:23 编辑
tellraw @p {text:"[僵尸]",color:white,clickEvent:{action:run_command,value:"/summon Zombie 365 63 1227 {Attributes:[{Name:generic.followRange,Base:50.0d}]}"}}
tellraw @p {text:"[僵尸]",color:white,clickEvent:{action:run_command,value:"/summon Zombie 365 63 1227 {Attributes:[{Name:generic.followRange,Base:50.0d}]}"}}
小白勇者 发表于 2015-1-20 16:12
您好,您可以使用命令/tellraw @p {text:"[僵尸]",color:white,clickEvent:{action:run_command,value:"/sum ...
有没有方法让点出这个僵尸后出现“ ”的文字(清屏用)(个人表示json类似的命令真的是渣啊,完全不会)
本帖最后由 小白勇者 于 2015-1-21 15:41 编辑
tellraw @p {text:"[僵尸]",color:white,clickEvent:{action:run_command,value:"/setblock x y z redstone_block"}}
在xyz周围放tellraw @p {text:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"}和summon Zombie 365 63 1227 {Attributes:[{Name:generic.followRange,Base:50.0d}]}
tellraw @p {text:"[僵尸]",color:white,clickEvent:{action:run_command,value:"/setblock x y z redstone_block"}}
在xyz周围放tellraw @p {text:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"}和summon Zombie 365 63 1227 {Attributes:[{Name:generic.followRange,Base:50.0d}]}
小白勇者 发表于 2015-1-21 03:15
您好,您可以将命令修改为/tellraw @p {text:"[僵尸]",color:white,clickEvent:{action:run_command,value: ...
刚刚去爱心领取帖子发现八个帖子里有三个都是我的...没办法...1.7没学好又跳到1.8去了...
小白勇者 发表于 2015-1-21 03:15
您好,您可以将命令修改为/tellraw @p {text:"[僵尸]",color:white,clickEvent:{action:run_command,value: ...
请问现在有没有这样的指令,就是


本帖最后由 小白勇者 于 2015-1-21 15:40 编辑
tellraw @p {text:"[僵尸]",color:white,clickEvent:{action:run_command,value:"/setblock 389 63 1242 redstone_block"},extra:[{text:"[skeleton]",color:white,clickEvent:{action:run_command,value:"/summon Skeleton x y z"}}]}
tellraw @p {text:"[僵尸]",color:white,clickEvent:{action:run_command,value:"/setblock 389 63 1242 redstone_block"},extra:[{text:"[skeleton]",color:white,clickEvent:{action:run_command,value:"/summon Skeleton x y z"}}]}
小白勇者 发表于 2015-1-21 11:33
您好,您可以使用命令/tellraw @p {text:"[僵尸]",color:white,clickEvent:{action:run_command,value:"/set ...
非常感谢!最后一个问题,请问我可不可以用这种方法累计起来?(一直extra) (最近在做一个地图,而且许多是有关于这样类似的问题,还请见谅)
End-Enderman 发表于 2015-1-21 12:27
非常感谢!最后一个问题,请问我可不可以用这种方法累计起来?(一直extra) (最近在做一个地图,而且许多 ...
可以。您可以按照/tellraw @p {其它参数,extra:[{其它参数,extra:[{参数}]}]}的格式,以此类推编写命令。
小白勇者 发表于 2015-1-21 13:28
可以。您可以按照/tellraw @p {其它参数,extra:[{其它参数,extra:[{参数}]}]}的格式,以此类推编写命令。 ...
好吧,刚才说的话又看不见了。看来是网关超时的缘故