Posted 15 November 2014 - 03:44 PM
I like command blocks very much, so, for me, 1.7 is the update of /setblock and /testforblock. But, for now, extracting information from /testforblock is extremely inconvenient. It must be activated by redstone, not by runCommand, or else it won't update redstone. The comparator gives a delay. The only answer you get is "yes" or "no".
That's why I suggest to add a function to the command block API, that reads the "Previous Output" field of a command block. That's where the real information is.
For example, imagine you have coordinates and you need to know, what block is there. And you have no idea what it can be. So, the only way to do it is to go through all possible block IDs until the command block responds "yes". With 0.1 (or, more precisely, 0.100001) delay for each. But if a human looks into that command block after the very first command, he will see this:
P.S. Please, Dan, do it! It's very small change, you know. That's all I lack for to make my PVP map!
That's why I suggest to add a function to the command block API, that reads the "Previous Output" field of a command block. That's where the real information is.
For example, imagine you have coordinates and you need to know, what block is there. And you have no idea what it can be. So, the only way to do it is to go through all possible block IDs until the command block responds "yes". With 0.1 (or, more precisely, 0.100001) delay for each. But if a human looks into that command block after the very first command, he will see this:
The block at 949,57,-1648 is Redstone Lamp (expected: tile.air.name).
So, actually, all the information is there, you just can't read it.P.S. Please, Dan, do it! It's very small change, you know. That's all I lack for to make my PVP map!
Edited on 15 November 2014 - 02:44 PM