#(mrcrash) define a cuboid depending of the player yaw

43 messages · Page 1 of 1 (latest)

late garnet
#

Hi,

I need to define a cuboid depending of the player yaw

I would like it to start where the player clicks (context.location) and go up to 3 blocks in a straight line depending on the player's direction

tall fractalBOT
#

(mrcrash) define a cuboid depending of the player yaw

tall fractalBOT
#

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.

errant dew
#

!t location.forward_flat

crystal sigilBOT
errant dew
#

!t location.to_cuboid

crystal sigilBOT
errant dew
#

I think that should work?

late garnet
#

Nope i already try it

errant dew
#

Studying rn I'll test in a bit (if i remember) if someone doesn't get to you first c:

late garnet
#

Oh mb that seem to work

#

let me try

faint imp
#

Feel free to ask if you need any more help, otherwise -

drifting caveBOT
#
Thread Closing Reminder

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

late garnet
#

work ty

drifting caveBOT
#
Resolved

Thread closed as resolved.

drifting caveBOT
#
Thread Reopened

Thread was manually reopened by @late garnet.

#
Changed to Help/Support

Thread is now a Help/Support thread. A helper will check your thread when available.

late garnet
#

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 ?

limber owl
#

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

late garnet
#

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?

limber owl
#

!t location.with_yaw

crystal sigilBOT
limber owl
#

To copy the players yaw onto the location

late garnet
#

I don't get how to use it properly

limber owl
#

context.location.with_yaw[<player.yaw>]

late garnet
#

oh using player.yaw ok

errant dew
#

<player.location.yaw>*

late garnet
#

like:
<context.location.to_cuboid[<context.location.forward_flat[4].with_yaw[<player.location.yaw>]>]> ?

#

( actually not working )

errant dew
#

no

#

You need to apply the yaw before .forward_flat

#

because forward_flat is based off of it

late garnet
#

Okay i understand

#

Yeah that work perfectly !

errant dew
#

awesome

late garnet
#

thank's 😉