【问题标题】:Execute command if player has bow with certain tag如果玩家有带有特定标签的弓,则执行命令
【发布时间】:2020-12-15 17:24:09
【问题描述】:

我有这些命令,并且我希望它仅在玩家拥有带有“爆炸”标签的弓时才爆炸箭头。

这里是命令(由 AntVenom 提供)

"*" Means that all blocks under it have that property

[Repeat,*Unconditional,*Always Active]
/execute at @e[type=Arrow] ~ ~ ~ run /scoreboard players set @e[c=1,r=0,type=Arrow] inGround 1 {inGround:1b}
[*Chain]
/execute at @e[type=Arrow] ~ ~ ~ run /particle lava ~ ~ ~ .5 .5 .5 .5 30 .5

/execute at @e[type=Arrow,score_inGround_min=1] ~ ~ ~ run /summon PrimedTnt ~ ~1 ~ {Fuse:0}

/kill @e[type=Arrow,score_inGround_min=1]

我可以使用https://mcstacker.net/,但我不知道该放什么。 有什么帮助吗? 我不得不提出这个问题

【问题讨论】:

    标签: tags command minecraft execute


    【解决方案1】:

    尝试以@a[nbt={SelectedItem:{id=“bow”,tag:{explode:1b}}}] 的方式执行运行打个招呼

    要给自己鞠躬,请给@s bow {explode:1b}

    【讨论】:

      猜你喜欢
      • 2021-02-04
      • 2018-07-14
      • 1970-01-01
      • 1970-01-01
      • 2013-07-30
      • 1970-01-01
      • 2021-07-08
      • 2021-12-28
      • 1970-01-01
      相关资源
      最近更新 更多