If you could supply what you want to do when a player stands on the block, I can fill in the command for you. After that, it’s just a matter of having a redstone clock activate a command block with the command above inside of it. – A.J. Ruckman Mar 27 ’15 at 14:40
How to execute if player standing in certain location?
To make sure to affect only the correct player, you can just copy the selector from the if entity command to the tp command, making the if entity part obsolete, leaving you with the full, working command looking like this: I’m not quite sure why you go into that much detail about the position, -1040.5 is probably good enough.
How to test a block in Minecraft Bedrock?
This feature is exclusive to Bedrock Edition. Tests whether a certain block is in a specific location. Specifies the coordinates of the block to test. It must be a three-dimensional coordinates composed of , and , each of which must be a floating-point number or tilde and caret notation.
What is the result of the testforblock command?
Result Command Trigger Bedrock Edition any the arguments are not specified correctl Failed any the specified position is unloaded or ou Failed any the block at the specified position does Failed any On success Retruns the success message.
How to test for a player at specific coordinates?
You’re scanning for the nearest player, your should scan for all the players. (Search for players on coordinates 64,64 at height 10, with a radius of 5 blocks) To test if Alice is online: To count the number of players in survival mode within a 3-block radius of (0,64,0):
How to use the testfor command in Minecraft?
You would use the testfor command like so: You put @p [x,y,z,r] this considers the whole section as the identification of the player try @p [x,y,z,r]. Highly active question. Earn 10 reputation in order to answer this question. The reputation requirement helps protect this question from spam and non-answer activity.