我在做东西的时候遇到个问题
在function里打了这三条命令
复制代码复制代码复制代码顺序是从上到下,那个@e[tag=sword]是个史莱姆,这个function是放命令方块里开着循环,生成史莱姆之后没有aec生成,这是为什么?
(这个function在游戏里可以用,计分板swordA已经创建了而且分数也在变)
在function里打了这三条命令
- execute as @e[tag=sword] at @s unless entity @a[scores={swordA=1..2}] run scoreboard players set @r[distance=..10] swordA 1
- execute as @a[scores={swordA=1}] facing entity @e[limit=1,tag=sword] eyes run summon area_effect_cloud ^3 ^ ^ {Duration:9999999}
- execute as @a[scores={swordA=1}] run scoreboard players set @s swordA 2
(这个function在游戏里可以用,计分板swordA已经创建了而且分数也在变)
设置 Age:0看看