Placing a bed

Started by scorpion981 on Mon, 09/07/2020 - 23:13

Topic category: Help with modding (Java Edition)

Last seen on 13:04, 21. Oct 2020
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Placing a bed
Mon, 09/07/2020 - 23:13

Hello! I want to create a block that place a bed at the same direction that the block face to put it in my structures. The problem is that a bed is made of 2 blocks. I can already make the bed face the right direction the problem is there i don't know how to place a bed that have the block state "part" (this blockstate define if its the head or the foot of the bed) set in "head". I try nbt tag but i think that its not the right way: https://ibb.co/z6TJDN7. There is a way to spawn a complete bed with function but i don't know how to make the function get the rotation and the position of the block that spawn the bed. 

Thanks in advance

Last seen on 23:40, 22. Oct 2020
Joined Sep 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Use commands. /setblock ~ ~ …
Tue, 09/08/2020 - 00:26

Use commands.

/setblock ~ ~ ~ red_bed [top]

I don't remember the command that good, but that's a nice example I guess :)

Last seen on 13:04, 21. Oct 2020
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
function its command and i…
Tue, 09/08/2020 - 01:32

function its command and i already say that its not working but thanks for answering

Last seen on 13:04, 21. Oct 2020
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Does anyone can help me with…
Tue, 09/08/2020 - 22:28

Does anyone can help me with that pls?

Last seen on 13:04, 21. Oct 2020
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Nevermind i will do it simply
Tue, 09/08/2020 - 23:15

Nevermind i will do it simply