Member
Level 14
Journeyman Explorer
1

Forum Posts

1 - 6 of 6

    Torphedo
    09/24/2020 10:57 pm
    Level 14 : Journeyman Explorer
    history
    I implemented this, and it works, but it doesn't handle speed as well and even regular sprinting can outrun it, causing you to drop a block occasionally. Any ideas? The easiest solution would be to make it a 3x3 ring of armor stands around the player, which is why my original can handle a comparably large amount of speed. The barriers also don't disappear properly, which I think is because by the time the command goes into effect, the player is no longer in a place where the barrier would get erased. Just a theory, I'll do some more testing tomorrow.

    Edit: Even if this is properly implemented, barriers would still vanish behind you if you walk on them. I'll be reverting this unless anyone has a way to make this work.
    1
    Torphedo
    09/22/2020 2:57 pm
    Level 14 : Journeyman Explorer
    oh, also, there is already a line of code to handle jumping and one for going downwards by breaking the one under you in creative.
    1
    Torphedo
    08/11/2020 8:21 pm
    Level 14 : Journeyman Explorer
    I had resolved it, but this looks interesting, I may try that at some point!
    2
    Torphedo
    09/24/2020 10:57 pm
    Level 14 : Journeyman Explorer
    history
    I implemented this, and it works, but it doesn't handle speed as well and even regular sprinting can outrun it, causing you to drop a block occasionally. Any ideas? The easiest solution would be to make it a 3x3 ring of armor stands around the player, which is why my original can handle a comparably large amount of speed. The barriers also don't disappear properly, which I think is because by the time the command goes into effect, the player is no longer in a place where the barrier would get erased. Just a theory, I'll do some more testing tomorrow.

    Edit: Even if this is properly implemented, barriers would still vanish behind you if you walk on them. I'll be reverting this unless anyone has a way to make this work.
    1
    Torphedo
    06/05/2020 9:27 pm
    Level 14 : Journeyman Explorer
    Sorry, I got stuff sorted out. It was a question about player tags, but I got it. I finished and posted the datapack mentioned
    2
    Torphedo
    06/05/2020 5:32 pm
    Level 14 : Journeyman Explorer
    I was referring to the /tag command. However, the function tag here looks really promising!

    https://minecraft.gamepedia.com/Tag
    1
    Torphedo
    06/06/2020 12:30 am
    Level 14 : Journeyman Explorer
    The BarrierFly code, currently using scoreboards:

    # cleanup
    execute at @p run fill ~2 ~-1 ~2 ~-2 ~-1 ~2 minecraft:air replace minecraft:barrier
    execute at @p run fill ~2 ~-1 ~2 ~2 ~-1 ~-2 minecraft:air replace minecraft:barrier
    execute at @p run fill ~-2 ~ ~-2 ~2 ~ ~2 minecraft:air replace minecraft:barrier
    execute at @p run fill ~-2 ~-2 ~-2 ~2 ~-2 ~2 minecraft:air replace minecraft:barrier
    execute at @p run fill ~-2 ~-1 ~-2 ~-2 ~-1 ~2 minecraft:air replace minecraft:barrier
    execute at @p run fill ~-2 ~-1 ~-2 ~2 ~-1 ~-2 minecraft:air replace minecraft:barrier
    # platform
    execute if score @p BarrierFly matches 1 run execute at @p run fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:barrier replace air
    1

1 - 6 of 6

Welcome