📜  minecraft 1.16 检查玩家是否有 5 块范围内的项目 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:02.747000             🧑  作者: Mango

代码示例1
execute if entity @a[nbt={Inventory:[{id:"minecraft:white_concrete"}]},distance=..5,limit=1] run say There are one or more players nearby with white concrete in their inventory!