1
/testfor help
I'm making a map in which you click an item and it spawns a structure. I have it to where you can only spawn it in one space. I was thinking i could use /testfor to detect if you are on one of the two places you can spawn it.
Whenever I try to do it using this command testfor @a[x=-45,y=4,z=1021] and I put a comparater the comparater is always active. Any tips?
Whenever I try to do it using this command testfor @a[x=-45,y=4,z=1021] and I put a comparater the comparater is always active. Any tips?
6
The comparator updates every time you power the command block.
This means that you should hook up that command to a clock in order to make the status update...
Or press the most left button twice (repeat) and the most right button once (Always active)... this tests 20 times a second and is an alternative to a redstone clock. It might get laggy though.
You can also check coords in F3 to see if the comparator is working...
This means that you should hook up that command to a clock in order to make the status update...
Or press the most left button twice (repeat) and the most right button once (Always active)... this tests 20 times a second and is an alternative to a redstone clock. It might get laggy though.
You can also check coords in F3 to see if the comparator is working...
They've already done that.
So if you type /testfor @a[x=X,y=Y,z=Z,r=R] where X, Y, Z and R are variables the comparator stays on? Hmm... Silly question but have you checked that the comparator is in comparison mode? I can't think of anything else it could be.
testfor @a[x=-45,y=4,z=1021,r=100]
That's the exact copy and pasted command I use. There's the setup I have.

That's the exact copy and pasted command I use. There's the setup I have.
You need to specify a radius, r or a volume, dx, dy and dz.
Whenever I try to add a radius it always stays on. (I'm using an always active repeating command block)
