teleporting players to ender pearls?

teleporting players to ender pearls? - Free stock photo of adult, affection, asian

So I'm just messing around with 1.13 command blocks, trying to figure them out. I cannot use functions as I don't have access to the world files, and also I felt more comfortable using command blocks.

Anyway, I'm trying to make ender pearls that carry you with then as they fly (like on Hypixel server), so I've placed two repat command blocks, with these commands:

execute at @e[type=minecraft:ender_pearl] run team join pearl @p

and:

team join pearl2 @e[type=minecraft:ender_pearl]

and they work fine. however, when I try to teleport the the entities together, I get nothing. I'm using this command in the final repeat command block:

execute at @e[team=pearl2] run tp @e[team=pearl] ~ ~ ~

Any help or advice on the new command system would be appreciated.



Best Answer

Something you can do is:
A repeating command block, set to unconditional, always active, and with this command:

/execute at @e[type=minecraft:ender_pearl] run tp @p ~ ~ ~

Then have a chain command block run:

/execute at @e[type=minecraft:ender_pearl] run effect give @p resistance 2 255 true

I believe it is multiplayer friendly.
Make sure to type this command: /gamerule commandBlockOutput false, unless you want to have your chat spammed with tp messages.




Pictures about "teleporting players to ender pearls?"

teleporting players to ender pearls? -
teleporting players to ender pearls? - Group of People Running on Track Field
teleporting players to ender pearls? - Group of People Playing Soccer on Green Grass Field



How do you teleport with Ender Pearls?

If you are not in Survival mode, you can switch to Survival mode using a cheat. Next, select the ender pearl in your hotbar. Position your pointer (the plus sign) in the direction that you wish to teleport. Make sure that you pointer is tilted upwards so that you can throw the ender pearl far.

Do ender pearls work across dimensions multiplayer?

Actually they do work between dimensions.

Why are ender pearls teleporting me?

If a player dies while their Ender Pearl is in the air, upon respawning, they will teleport to their destination. If the player teleports into a space one block high, they will start to take suffocation damage. Ender Pearls, if they hit a mob, will not do damage, but will aggravate neutral mobs.

Can you teleport in Minecraft without an Ender pearl?

To teleport in Minecraft, the only thing you need to teleport in Minecraft is an ender pearl. All you have to do is equip the ender pearl and right-click with it in your hand.



I put Multishot 10000 on an Ender Pearl. This is what happened...




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: cottonbro, Kelly L, Clip It Comunicación, Clip It Comunicación