If player is on the block 1, he will be teleport to block 2? For example, when player is on black_carpet, he will be teleport to white_carpet? (Minecraft 1.14.4)
Not exactly what you're looking for but it might point you in the right direction
- I have this command that I found while googling (Not 100% sure how it actually works). This is a type of 'Test For' that works in 1.14
'/execute as @a[x=20,y=56,z=29,distance=..1] at @s run say I'm in location!'
This checks to see if a player is at a particular location (If you want a 'near location' you would change 'distance=..1' to something like 'distance=..5') & if so then diplays 'I'm in Location'.
To teleport if a player is at location I would guess you would need to change the 'say I'm in location' to a 'TP x y z' command
not sure if there's a way to 'test for player on black carpet' though
How to create this command:
If player is on the block 1, he will be teleport to block 2? For example, when player is on black_carpet, he will be teleport to white_carpet? (Minecraft 1.14.4)
Not exactly what you're looking for but it might point you in the right direction
- I have this command that I found while googling (Not 100% sure how it actually works). This is a type of 'Test For' that works in 1.14
This checks to see if a player is at a particular location (If you want a 'near location' you would change 'distance=..1' to something like 'distance=..5') & if so then diplays 'I'm in Location'.
To teleport if a player is at location I would guess you would need to change the 'say I'm in location' to a 'TP x y z' command
not sure if there's a way to 'test for player on black carpet' though