应该都知道1.9添加了一个新的状态效果:glowing

这个状态主要目的就是透视。

如上图就是给生物一个边框

这个边框隔墙也会显示

这个大家可能会联想到鹰眼或者聆听模式,
其实通过四个指令方块可以将鹰眼做出来:

指令如下:
  1. /fill ~ ~-1 ~ ~ ~-1 ~2 redstone_block
  2. /fill ~ ~1 ~ ~ ~1 ~2 air
复制代码

创建高频不解释。

首先需要创建一个计分板:
  1. /scoreboard objectives add isUsingEE stat.crouchOneCm
复制代码

用于判定潜行


主要部分:(按照顺序执行)
  1. scoreboard players set @e[type=!Player] isUsingEE 0
  2. /execute @a[score_isUsingEE_min=1] ~ ~ ~ scoreboard players set @e[r=10,type=!Player] isUsingEE 1
复制代码

通过时钟判断实体是否存在玩家附近(10个方块)的范围内

  1. /effect @e[score_isUsingEE_min=1,type=!Player] minecraft:glowing 1 1 true
复制代码

给符合条件实体glowing效果,让它显示边框

  1. scoreboard players reset * isUsingEE
复制代码

重置计分版,便于下次输出。

效果:

按下潜行+前进,就会隔墙显示周围十格所有实体。


OneCommand:

  1. /summon FallingSand ~ ~2 ~ {Riding:{Riding:{Riding:{Riding:{Riding:{Riding:{Riding:{Riding:{Riding:{Riding:{Riding:{Riding:{Riding:{Riding:{TileEntityData:{Command:"/fill ~2 ~-1 ~2 ~-2 ~3 ~14 minecraft:glass 0 hollow",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"/fill ~2 ~-2 ~2 ~-2 ~-2 ~14 minecraft:sponge 0",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"/fill ~1 ~-2 ~3 ~-1 ~2 ~13 air",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"/fill ~1 ~-3 ~12 ~-1 ~-1 ~12 redstone_block",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"summon FallingSand ~-1 ~3 ~11 {id:"FallingSand",Block:"iron_block",Time:1}",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"summon FallingSand ~-1 ~2 ~13 {Riding:{Riding:{TileEntityData:{Command:"/gamerule commandBlockOutput false",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"/gamerule logAdminCommands false",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},id:"FallingSand",Block:"iron_block",Time:1}",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"summon FallingSand ~0 ~1 ~11 {Riding:{TileEntityData:{Command:"summon FallingSand ~0 ~1 ~-8 {id:\\"FallingSand\\",Block:\\"redstone_block\\",Time:1}",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},id:"FallingSand",Block:"iron_block",Time:1}",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"summon FallingSand ~0 ~0 ~13 {Riding:{TileEntityData:{Command:"fill ~-2 ~3 ~1 ~2 ~3 ~-11 minecraft:sponge 0",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},id:"FallingSand",Block:"iron_block",Time:1}",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"/summon FallingSand ~-1 ~2 ~3 {Riding:{Riding:{TileEntityData:{Command:"/fill ~1 ~ ~ ~1 ~2 ~7 stone",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"/scoreboard players set @e[type=!Player] isUsingEE 0",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"/effect @e[score_isUsingEE_min=1,type=!Player] minecraft:glowing 1 1 true",id:"Control"},id:"FallingSand",Block:"command_block",Time:1}",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"/summon FallingSand ~1 ~1 ~3 {Riding:{Riding:{TileEntityData:{Command:"/fill ~-1 ~ ~ ~-1 ~2 ~7 redstone_block",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"/execute @a[score_isUsingEE_min=1] ~ ~ ~ scoreboard players set @e[r=10,type=!Player] isUsingEE 1",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"/scoreboard players reset * isUsingEE",id:"Control"},id:"FallingSand",Block:"command_block",Time:1}",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"/summon FallingSand ~-1 ~0 ~4 {Riding:{TileEntityData:{Command:"/gamerule commandBlockOutput false",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"/scoreboard objectives add isUsingEE stat.crouchOneCm",id:"Control"},id:"FallingSand",Block:"command_block",Time:1}",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"/setblock ~ ~-8 ~1 wall_sign 2 0 {Text1:"===============",Text2:"{text:\\"Click\\",color:\\"dark_red\\",clickEvent:{action:run_command,value:\\"/fill ~2 ~1 ~ ~-2 ~-3 ~13 air\\"},extra:[{text:\\" to remove\\",color:\\"black\\"}]}",Text3:"this structure",Text4:"==============="}",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"/fill ~ ~-12 ~ ~-1 ~2 ~ air",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},TileEntityData:{Command:"/fill ~-1 ~-13 ~ ~-1 ~-1 ~ redstone_block",id:"Control"},id:"FallingSand",Block:"command_block",Time:1},id:"FallingSand",Block:"redstone_block",Time:1}
复制代码


实在不想说的吐槽:
这次快照简直就是Bug版本,首先是glowing的粒子效果设为true也不会隐藏
再就是json牌子有问题
希望大家见谅,等待下一个版本就会修复[groupid=546]Command Block Logic[/groupid]