3224365087
如题,能不能让一个东西丢出去,然后被捡起来就会让捡起来的人一个负面BUFF。我的版本是1.12.2

xmdhs
/scoreboard players tag @a add stone {Inventory:{id:"minecraft:stone"}}

/execute @a[tag=stone] ~ ~ ~ say 石头

/scoreboard players tag @a remove stone

不知道可不可以


3224365087
xmdhs 发表于 2019-8-15 15:01
/scoreboard players tag @a add stone {Inventory:{id:"minecraft:stone"}}

/execute @a[tag=stone] ~ ~  ...

试过了....不行

SPGoding
给这个物品加一个自定义 tag,例如:
/give @s minecraft:stone 1 0 {shouldGiveDebuff:1b}
然后把这个物品丢到地上。


然后顺序高频执行以下命令:
/scoreboard players tag @a add debuffed {Inventory:[{tag:{shouldGiveDebuff:1b}}]}
/effect give @a[tag=debuffed] xxx
/scoreboard players tag @a remove debuffed


当玩家捡起这个物品后,就会被 effect 命令给予 debuff。

3224365087
SPGoding 发表于 2019-8-15 15:14
给这个物品加一个自定义 tag,例如:
/give @s minecraft:stone 1 0 {shouldGiveDebuff:1b}
然后把这个物品 ...

能不能让第一个拥有的人不受到这个的BUFF

3224365087
SPGoding 发表于 2019-8-15 15:32
我比较懒不想做(
如果第一个拥有的人是确定的人的话,直接
/scoreboard players tag  add owner

我不确定人名......