(Skill) Relative TeleportTo

Discussion in 'Suggestions' started by Gunging, Mar 13, 2019.

  1. Gunging

    Gunging New Member

    Joined:
    Mar 13, 2019
    Messages:
    2
    Likes Received:
    0
    The absolute version of this, the skill TeleportTo, already exists. It takes in a set of x, y, and z value; But that puts the target in the world co-ordinates x y z, but how about that x y z being relative to the caster of the skill? And better yet, an option to make it relative to the rotation of the caster (replace "x, y, z" for "horizontal offset, vertical offset, forward offset").

    Example:
    So suppose we teleport the target +0 units in the X, +3 units in the Y, and -3 units in the Z relative to the position of the skill-casting MythicMob:

    [Image ilustrating the concept that apparently is 'spamm or inappropiate content']
    MythicMob with a reference of X(red), Y(green), and Z(blue) axes.
    And better yet, an option to make it also relative to the rotation of the caster:
    [Image ilustrating the concept that apparently is 'spamm or inappropiate content']
    The Relative Axes have rotated with the MythicMob, making the Z axis 'forward offset,' the Y axis 'vertical offset,' and the X axis 'horizontal offset.'
    Note: It is fine to make it relative only to the caster of the skill, because if someone wanted to make it relative to the target of it, they could just use sudoskill.

    Side Note, Irrelevant to the actual topic:
    Whoever made the spam-blocking system didn't really know what he was doing. Take it from someone who puts color on text.
     
    #1
    Last edited: Mar 13, 2019
  2. Nexto

    Nexto Member

    Joined:
    Dec 3, 2017
    Messages:
    44
    Likes Received:
    4
    Vanilla minecraft already provides this option,

    - command{c="minecraft:tp <mob.uuid> ~ ~-0.4 ~"} @self

    dont see a real need of adding this mechanic.
     
    #2
  3. Gunging

    Gunging New Member

    Joined:
    Mar 13, 2019
    Messages:
    2
    Likes Received:
    0
    How would you make it relative to the rotation of the mythic mob?

    That is, forward and horizontal offsets. That's actually my trobule right now.

    Also, the command you provide teleports whoever the command is targetting to a position relative to themselves, it doesn't teleport the target to a position relative to the caster of the skill.

    The way I kinda do it right now, is this:
    Code:
    Skills:
    - command{c="minecraft:tp <target.uuid> <mob.l.x> <mob.l.y> <mob.l.z>"} @Target #Teleports target to the position of the caster of the skill.
    - command{c="minecraft:tp <target.uuid> ~ ~3 ~-3"} @Target #Teleports target to a relative position instantly afterwards
    And that '-3' for the relative Z only works as "Forward" when the mythic mob is facing exactly North, else its kinda sideways or even behind (obviously).

    Its also not about using Throw with a very high velocity or something because only the direction of throw is relative to the caster, while the position the target ends up at depends on where the target was before being thrown.

    For what I want, the target could initially be on the moon but I want him exactly 3 blocks forward and three blocks up from the caster of the skill.
     
    #3
    Last edited: Mar 13, 2019

Share This Page