Replacing a block and keeping its facing state.

Started by KingBugz on

Topic category: Help with modding (Java Edition)

Last seen on 05:06, 6. Jul 2023
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

Last seen on 05:06, 6. Jul 2023
Joined Sep 2018
Points:

User statistics:

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

Awesome, that's good to hear :)

Thanks for the reply!

Last seen on 05:06, 6. Jul 2023
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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

Last seen on 05:06, 6. Jul 2023
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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

Last seen on 16:54, 29. May 2020
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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

Last seen on 02:05, 14. Apr 2022
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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?