Gerardufoin's Avatar
Member
Level 4
Apprentice Engineer
0

Forum Posts

1 - 2 of 2

    Gerardufoin
    09/22/2014 5:09 pm
    Level 4 : Apprentice Engineer
    Gerardufoin's Avatar
    Don't worry, I understand perfectly taht the range is obviously the easiest way for someone that doesn't know a lot about command blocks, thus your answer is the right one if he has to do it himself.

    Was just suggesting this in the case you were going on his server to help him, I wasn't criticising your proposition
    1
    Gerardufoin
    09/21/2014 10:30 pm
    Level 4 : Apprentice Engineer
    Gerardufoin's Avatar
    For better accuracy, it would perhaps be better to use the dx/dy/dz arguments of the testfor command instead of the range.
    With the range, the player will be detected when he's in front of the portal, not inside (you can also resolve this problem by reducing the range and moving up the searchpoint, but it's not that good if the portal has to be bigger than 3x3)

    Something along the line of

    /testfor @p[x=lower_corner_x,y=lower_corner_y,z=lower_corner_z,dx=2,dy=2]

    would work great for a 3x3 portal, only detecting the player when he's inside it. (Note that the dx has to be replaced by dz depending on the portal's direction)

    But well, if the accuracy is not an issue, then range is good too
    1

1 - 2 of 2

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome