Solved Save Bed direction(south/west...) then set a block to that bed with same direction

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Uzumaki

Well-Known Member
Feb 20, 2017
310
10
18
33
How i can Save Bed direction(south/west...) then set a block to that bed with same direction
 
Last edited:
How i want to spawn a bed

1.png


How it spawns

Untitled.png



or other direction

code

code_language.skript:
set block at {loc} to bed_block
 
This maybe works:
code_language.skript:
#When setting the {loc} variable to the location of block, you must check the pitch and yaw of that block:
set {loc}'s event-block's pitch
set {loc}'s event-block's yaw
#Then, set the block:
set block at {loc} to bed_block
 
Last edited:
Status
Not open for further replies.