Hi, I want to create a script that allows players to place carpets without a support block, i.e. floating in the air. For this I would use <player.cursor_on> and then I would have to find out somehow on which side of the block the player's cursor points to , wherethe carpet should be placed. Where do I get the information so that the carpet is placed correctly on the side that the player is looking at?
#(moepius) How to get which block face the player is looking at (north,south,...)?
8 messages · Page 1 of 1 (latest)
(moepius) How to get which block face the player is looking at (north,south,...)?
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.
yes, I played around a bit. This does what I need: /ex modifyblock green_carpet <player.cursor_on.add[<player.eye_location.ray_trace.direction.vector.xyz>]>
full script if anaybidy needs sth. like this: https://paste.denizenscript.com/View/123709
Content of Denizen Script Paste #123709: carpetplacer... pasted 2024/06/13 10:12:24 UTC-07:00, Paste length: 677 characters across 14 lines, Content: carpetplacer: type: world