#(mrcrash) define a cuboid depending of the player yaw
43 messages · Page 1 of 1 (latest)
(mrcrash) define a cuboid depending of the player yaw
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
!t location.forward_flat
Returns the location in front of this location based on yaw but not pitch. Optionally specify a number of blocks to go forward.
math
LocationTag
!t location.to_cuboid
Returns a cuboid from this location to the specified location.
areas
CuboidTag
I think that should work?
Nope i already try it
Studying rn I'll test in a bit (if i remember) if someone doesn't get to you first c:
Feel free to ask if you need any more help, otherwise -
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@late garnet
work ty
Thread closed as resolved.
Thread was manually reopened by @late garnet.
Thread is now a Help/Support thread. A helper will check your thread when available.
Up
Finally <context.location.to_cuboid[<context.location.forward_flat[4]>]> isn't working ^^
In the debug i'm on the green wool and i break the red wool
I can't understand why each foreach loop is air material ?
If you meant for forward_flat to be based off of the players look direction.. you would need to infact base it off the player not context.location
Indeed it would be more logical, but how can I calculate the number of blocks to destroy if I use the player's position when the player is not glued to the broken block?
!t location.with_yaw
Returns a copy of the location with a changed yaw value.
identity
LocationTag
To copy the players yaw onto the location
I don't get how to use it properly
context.location.with_yaw[<player.yaw>]
oh using player.yaw ok
<player.location.yaw>*
like:
<context.location.to_cuboid[<context.location.forward_flat[4].with_yaw[<player.location.yaw>]>]> ?
( actually not working )
no
You need to apply the yaw before .forward_flat
because forward_flat is based off of it
awesome
thank's 😉