/testfor and /tp Commands
//ads -- adsterra.com -- native banner
?>
Is there a certain command that recognizes a dropped item on a pressure plate, and then teleports the player who dropped it? I have an item I want them to craft and drop onto the pressure plate.
Best Answer
use execute command. (haven't tested commands)
/execute @e[type=item] ~ ~ ~ testforblock ~ ~ ~ stone_pressureplate
have a comparator going from command block to another (as i said, didn't test command)
/tp @p[r=3] x,y,z
Pictures about "/testfor and /tp Commands"
What is the Testfor command?
You can test for a certain target in the game using the /testfor command in Minecraft.What are the TP commands?
Minecraft Tp Command ExamplesCommandEffect/tp @a @sTeleport all players to you./tp @p @sTeleport the nearest player to you./tp @e[type=pigs] @sTeleport all pigs to you./tp @s ~ ~100 ~Teleport yourself 100 blocks in the air.1 more row•Mar 26, 2022What was the Testfor command replaced with?
The /testfor command became obsolete in Minecraft 1.13, and has been replaced by the /execute command*.Which command is used for TP in Minecraft?
You can teleport almost anywhere in Minecraft using the "/tp" command. You'll need to enable cheats in your Minecraft world before you can teleport. Once active, you can teleport to other players, dimensions, or specific coordinates.Minecraft Redstone Tutorial | How to use testfor commands in MCPE!
More answers regarding /testfor and /tp Commands
Answer 2
This can be done in one command in Minecraft 1.13
/execute at @e[type=item] if block ~ ~ ~ stone_pressureplate run tp @p[distance=..3] X Y Z
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ivan Babydov, Anete Lusina, Ivan Babydov, Blue Bird