#how do i detect the direction a player is looking at
1 messages · Page 1 of 1 (latest)
how do I do this
guess
by using the yaw expression
ill go shut up
x < b```
ðŸ˜
there's a between condition
just a simple player's yaw is between x and y is enough
its gonna work
player yaw is weird like after 180 it goes straight to -180
will it integrate the way minecraft's yaw system
or no
yeah, thats how it works
+270 degrees = -90 degrees
its just using the one with smaller magnitude
any chance you know how to toggle fn key on windows sixy layout
nope, but google probably does
im having some problem with my if statement..
essentially, it isn't detecting player yaw properly for some reason
.
if player's yaw is between 135 and 180:
wait 1 tick
make player run command "//rotate -90" as op
else if player's yaw is between -135 and -180:
send "This should be working?"
wait 4 ticks
make player run command "//rotate -90" as op
its with else ifs
they apply the same way in normal programming right
but simply it is not triggering between thowse two values
ive tried swapping them, etc and no difference is being made
- code blocks
code blocks?
- be more descriptive of your error
- debug
```code here```
yeah just switched to a 60% got no clue how to use those characters
lemme see rq
copy and paste
if player's yaw is between 135 and 180:
wait 1 tick
make player run command "//rotate -90" as op
else if player's yaw is between -135 and -180:
send "hi"
wait 4 ticks
make player run command "//rotate -90" as op
if player's yaw is between 45 and 135:
make player run command "//rotate 180" as op
if player's yaw is between -45 and 45:
make player run command "//rotate 90" as op```
i have no idea what part doesnt work
and debugging would proably help
the else if yaw -135 to -180
it doesnt send the hi msg nor rotate
I can send a quick video if u want
exactly, but is there a reason or something wrong with my condition
because I know for a fact im triggering it between -135 and -180
if theres no syntax errors not likely
maybe minecraft's f3 and skript display it differently
diude.
you're right
you're a life save
do you have any clue on cancelling a block placement
like
on block place
send "hi"
cancel block place
yeah
thats just a simple cancel event, you can always
if you want to know how something is done
do you know if its possible to use skript to paste a schematic at a certain location
like lets say i throw a snowball and hit hits block xyz, how do I paste a schematic from location xyz
skbee structures
is there a docs for that
yup
you can google "skript docs" and "skbee wiki"
for docs don't use the offical ones by SkriptLang, they dont have addon stuff. use skripthub or skunity
i see
I dont seem to find anything regarding schematic, or worldedit positiosn
anything you can say to help guide me
anyone know how to paste a schematic from certain coords? like if i have cords xyz how do I paste it at those cords
skbee structures