840196733mw
/testfor @p {Inventory:[{Slot:0b,id:minecraft:stone_sword,Damage:0s,Count:1b}]}这是说在1号位有没有一把石剑
/testfor @p {Inventory:[{Slot:1b,id:minecraft:ston,Damage:0s,Count:1b}]}             这是说2号为有没有一个石头的


重点来了,我想要满足这两个条件才输出信号,请问有可能吗?不要跟我说红石门,一高频火把就坑爹,还有就是能不能满足这两个条件就帮计分板加一分

pca006132
http://www.mcbbs.net/thread-405819-1-1.html这个可能帮到你

chyx
小白勇者 发表于 2015-4-1 15:48
您好,使用与门并不一定需要红石火把,若您想使用逻辑门以外的方式达到您的目的可以使用记分板,然而这种方法 ...

直接
/testfor @p {Inventory:[{Slot:0b,id:minecraft:stone_sword,Damage:0s,Count:1b},{Slot:1b,id:minecraft:ston,Damage:0s,Count:1b}]}
不行么?

840196733mw
chyx 发表于 2015-4-1 23:50
直接
/testfor @p {Inventory:[{Slot:0b,id:minecraft:stone_sword,Damage:0s,Count:1b},{Slot:1b,id:min ...

。。。。。如果指令过长了呢?

840196733mw
chyx 发表于 2015-4-1 23:50
直接
/testfor @p {Inventory:[{Slot:0b,id:minecraft:stone_sword,Damage:0s,Count:1b},{Slot:1b,id:min ...

比如这样


/testfor @p {Inventory:[{Slot:1b,id:minecraft:ston,Damage:0s,Count:9b}],[{Slot:1b,id:minecraft:ston,Damage:0s,Count:10b}],[{Slot:1b,id:minecraft:ston,Damage:0s,Count:11b}],[{Slot:1b,id:minecraft:ston,Damage:0s,Count:18b}],[{Slot:1b,id:minecraft:ston,Damage:0s,Count:19b}],[{Slot:1b,id:minecraft:ston,Damage:0s,Count:20b}],[{Slot:1b,id:minecraft:ston,Damage:0s,Count:27b}],[{Slot:1b,id:minecraft:ston,Damage:0s,Count:28b}],[{Slot:1b,id:minecraft:ston,Damage:0s,Count:29b}]}





chyx

你的格式错了

840196733mw

e 刚刚发现

chyx

那就给我最佳吧

840196733mw
chyx 发表于 2015-4-2 18:11
那就给我最佳吧

/testfor @p {Inventory:[{Slot:1b,id:minecraft:ston,Damage:0s,Count:9b},{Slot:1b,id:minecraft:ston,Damage:0s,Count:10b},{Slot:1b,id:minecraft:ston,Damage:0s,Count:11b},{Slot:1b,id:minecraft:ston,Damage:0s,Count:18b},{Slot:1b,id:minecraft:ston,Damage:0s,Count:19b},{Slot:1b,id:minecraft:ston,Damage:0s,Count:20b},{Slot:1b,id:minecraft:ston,Damage:0s,Count:27b},{Slot:1b,id:minecraft:ston,Damage:0s,Count:28b},{Slot:1b,id:minecraft:ston,Damage:0s,Count:29b}]}还是不行,帮忙看一看

chyx
840196733mw 发表于 2015-4-3 13:05
/testfor @p {Inventory:[{Slot:1b,id:minecraft:ston,Damage:0s,Count:9b},{Slot:1b,id:minecraft:ston, ...

minecraft:ston错了 而且Slot1不能又是9个又是10个又是11个。。。

chyx
小白勇者 发表于 2015-4-3 14:39
您好,您应该将命令修改为:
/testfor @p {Inventory:[{Slot:0b,id:minecraft:stone,Damage:0s,Count:9b},{ ...

。。。
白捡的爱心

840196733mw
chyx 发表于 2015-4-3 23:21
。。。
白捡的爱心

我也在纠结

第一页 上一页 下一页 最后一页