Player teleporting

Started by Timofey on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 months ago
Joined Mar 2025
Points:
37

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
Player teleporting

I want to realize a procedure: when player hits entity, player teleporting behind entity's back, but i cant found block that can teleport a player.

Active 4 months ago
Joined Oct 2021
Points:
535

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 52
use the procedure block in…
Wed, 03/12/2025 - 18:17

use the procedure block in the entity section "execute command / [your command] in the name of event/target entity" and put the command "teleport @s" and then then put the x, y, and z values you need to appear behind the entity. You can get the x, y, and z by using the block "x position of event/target entity" but switch the "event/target entity" with "source entity" and ajust the value by using math block until you get a result you are happy with.

Active 4 months ago
Joined Mar 2025
Points:
37

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
thank you
Wed, 03/12/2025 - 18:43

thank you