Replacing a block and keeping its facing state.

Started by KingBugz on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Sep 2018
Points:
851

User statistics:

  • Modifications: 1
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 79
Replacing a block and keeping its facing state.

Title says it all,

I would like to know how to remove a block, and replacing it with a new block while keeping the previous block's facing state.

You will be able to do this…
Tue, 12/10/2019 - 08:53

You will be able to do this in 2019.5 using get and set procedure blocks.

Active 2 years ago
Joined Sep 2018
Points:
851

User statistics:

  • Modifications: 1
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 79
Awesome, that's good to hear…
Fri, 12/13/2019 - 05:15

Awesome, that's good to hear :)

Thanks for the reply!

Active 2 years ago
Joined Sep 2018
Points:
851

User statistics:

  • Modifications: 1
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 79
So how would I go about…
Tue, 12/17/2019 - 03:29

So how would I go about doing that?

I understand how to get the block's facing state, but not how to apply that to a new block that is being placed after removing the block.

One option is if stamement…
Tue, 12/17/2019 - 08:35

One option is if stamement. For example:

 

if block direction is DOWN

   place new block

   rotate it DOWN

elseif block direction is SOUTH

   place new block

   rotate it SOUTH

 

and so on

Active 2 years ago
Joined Sep 2018
Points:
851

User statistics:

  • Modifications: 1
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 79
Thank you very much, I got…
Wed, 12/18/2019 - 06:11

Thank you very much, I got it to work like a charm, and now I have a LOT of back tracking and procedure updating to do lol

Active 5 years ago
Joined May 2018
Points:
719

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
How did you get it to work?…
Sun, 04/26/2020 - 22:50

How did you get it to work? I've done the exact same thing

Active 3 years ago
Joined Aug 2019
Points:
682

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
This is an old  thread but…
Sat, 02/06/2021 - 21:20

This is an old  thread but recently in  version 2020.5 is this what the keep state checkmark on the "Replace Block" code block does?