Started by
Birutologo
on
Topic category: Help with Minecraft modding (Java Edition)
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.
Does anyone know how could I do this?
Edited by Birutologo on Sun, 11/23/2025 - 14:38
That is because the block only effects a player. What you can do is use the execute command in the name of target entity block, to run this.
/execute in <dimension> run tp @s <x> <y> <z>