Teleporting entities to the end

Started by Birutologo on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Teleporting entities to the end

I'm trying to make a trident (projectile) that when it hits an entity, it teleports them to the end dimension, so far I could teleport myself to the end, but not an entity.
Here's what I know so far:

-It is targeting the right entities, I made a similar procedure that made the entities glow and it worked

-I tried using the switch dimensions block but it didn't work

-I tried placing an end portal and teleporting the entity to it, to then remove the end portal annd placce bacck whatever block was there, but that also didn't work.