1.如何用execute检测玩家背包中(不是某个格子)的特定物品(带有Tag)
2.如何用材质包给一个实体设置多个皮肤且可用NBT随意调用(类似CustomModelData)
3.有什么办法可以使实体向面向的方向发射弹射物(指令,不要插件)
4.如何用execute监测实体背后是否有特定方块或实体
https://wiki.biligame.com/mc/%E5%91%BD%E4%BB%A4/execute
我先说我在上面这个WIKI查到的
3.WIKI内代码:所有非玩家实体朝着各自距离最近的玩家的方向移动一格(不改变自身的朝向):复制代码
4.WIKI内代码:击杀所有后下方方块为羊毛的玩家复制代码
剩下的我还在找
我先说我在上面这个WIKI查到的
3.WIKI内代码:所有非玩家实体朝着各自距离最近的玩家的方向移动一格(不改变自身的朝向):
- execute as @e[type=!player] at @s facing entity @p feet run tp ^ ^ ^1
4.WIKI内代码:击杀所有后下方方块为羊毛的玩家
- execute as @a at @s if block ^ ^ ^-1 #wool run kill @s
剩下的我还在找
1.由于查了很多资料都是只有探测一个格子的物品的
所以我写了这一段,挨个探测快捷栏的每一个框,没试过,你看行不行复制代码
所以我写了这一段,挨个探测快捷栏的每一个框,没试过,你看行不行
- execute as @a if data entity @s Inventory[{Slot:0b}].tag.物品信息 run execute as @s if data entity @s Inventory[{Slot:1b}].tag.物品信息 run execute as @s if data entity @s Inventory[{Slot:2b}].tag.物品信息 run execute as @s if data entity @s Inventory[{Slot:3b}].tag.物品信息 run execute as @s if data entity @s Inventory[{Slot:4b}].tag.物品信息 run execute as @s if data entity @s Inventory[{Slot:5b}].tag.物品信息 run execute as @s if data entity @s Inventory[{Slot:6b}].tag.物品信息 run execute as @s if data entity @s Inventory[{Slot:7b}].tag.物品信息 run execute as @s if data entity @s Inventory[{Slot:8b}].tag.物品信息 run execute as @s if data entity @s Inventory[{Slot:9b}].tag.物品信息 run 需要让该玩家执行的命令
我来补充
1,若该物品的nbt为:{id:"minecraft:x",Count:1b,Slot:?,tag:{Tags:["1"]}}则检测背包execute as @a[nbt={Inventory:[{tag:{Tags:["1"]}}]}]
2,【PCD】Optifine 进阶技巧: 令方块在特定情况下显示特定模型
https://www.mcbbs.net/thread-1016264-1-1.html
1,若该物品的nbt为:{id:"minecraft:x",Count:1b,Slot:?,tag:{Tags:["1"]}}则检测背包execute as @a[nbt={Inventory:[{tag:{Tags:["1"]}}]}]
2,【PCD】Optifine 进阶技巧: 令方块在特定情况下显示特定模型
https://www.mcbbs.net/thread-1016264-1-1.html
幻心飞小骥 发表于 2022-6-16 16:43
https://wiki.biligame.com/mc/%E5%91%BD%E4%BB%A4/execute
我先说我在上面这个WIKI查到的
3.WIKI内代码: ...
第一个方法我知道,用过,失败了。另外检测方块的指令我会,但有没有办法检测实体呢?
kjw1314 发表于 2022-6-16 19:43
我来补充
1,若该物品的nbt为:{id:"minecraft:x",Count:1b,Slot:?,tag:{Tags:["1"]}}则检测背包execute as ...
那个材质包教程也太~~~复杂了吧,我才刚刚学会自定义物品模型,有简单一点的教程吗?
whcwdsj 发表于 2022-6-17 08:49
那个材质包教程也太~~~复杂了吧,我才刚刚学会自定义物品模型,有简单一点的教程吗? ...
暂无,这已经是最简单的了,可以直接看里面的例子不用看其他的
白狗虚虚 发表于 2022-6-17 20:32
暂无,这已经是最简单的了,可以直接看里面的例子不用看其他的
貌似没法在命令方块里直接调用,有没有具体办法?