1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice
Wynncraft, the Minecraft MMORPG. Play it now on your Minecraft client at (IP): play.wynncraft.com. No mods required! Click here for more info...
Dismiss Notice
Have some great ideas for Wynncraft? Join the official CT (content team) and help us make quests, builds, cinematics and much more!

World [67 Supporters | ~86% Agrees! ] Mage Teleport Location Should Be Calculated Through 1.13 Ray-casting

Discussion in 'General Suggestions' started by Runaiic, Dec 16, 2018.

?

yaya?

  1. yay

    68 vote(s)
    86.1%
  2. non

    5 vote(s)
    6.3%
  3. wat

    6 vote(s)
    7.6%
  1. Behem07h

    Behem07h Skilled Adventurer

    Messages:
    22
    Likes Received:
    20
    Trophy Points:
    30
    Just as a FYI, raycasting has existed way before 1.13. I believe it existed as old as 1.8 (armorstand raycasting), although it wasnt usually as accurate as 1.13’s raycasting using the relative directions since there needed to be a set of command blocks for each direction. By 1.9 it already became much more efficient too, since there were the 3 types of command blocks added.
     
    Runaiic likes this.
  2. Stormarend

    Stormarend In need of Shoutbox

    Messages:
    1,190
    Likes Received:
    1,749
    Trophy Points:
    153
    Minecraft:
    Nah because people have already voted it so then it would be counted as +0.5 support even if the person who chose that option didn't intend it to.
     
  3. Bluescreen

    Bluescreen Also known as boatscreen

    Messages:
    1,942
    Likes Received:
    2,427
    Trophy Points:
    130
    Guild:
    Minecraft:
    Great idea, I mostly play mage so
    I GET STUCK A LOT
    Thanks, random holes. Thanks, COTL trees.

    Also that art is magnificent
     
  4. Runaiic

    Runaiic Well-Known Adventurer

    Messages:
    65
    Likes Received:
    73
    Trophy Points:
    51
    Ok then
    thank you
     
  5. Runaiic

    Runaiic Well-Known Adventurer

    Messages:
    65
    Likes Received:
    73
    Trophy Points:
    51
    BUMP! This suggestion is nearing 70 supporters!
     
  6. GlacierHero

    GlacierHero Doppelganger of him VIP+

    Messages:
    65
    Likes Received:
    31
    Trophy Points:
    49
    Minecraft:
    So it is something like this, which existed for a long time. I believe the developers are actually using this code to simplify stuff.

    This is the code for ray-casting FYI: (haven't checked, might be wrong, don't kill me)

    Code:
    private Location getTargetBlock(LivingEntity entity, double range){
        Location eLoc = entity.getEyeLocation();
        Vector dir = eLoc.getDirection();
    
        return eLoc.addVector(dir.multiply(range).normalize());
    }