How to prevent structures from replacing existing blocks?

Started by WenXin2 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to prevent structures from replacing existing blocks?

Currently, I have created a procedure that will place a structure when the block is right-clicked, but it will replace any existing blocks that were there. I'm also using the structure void block, so air replacing blocks isn't the problem.

Is there a way to prevent a block in the structure from replacing other blocks? Or to prevent the structure placement entirely if there is no room for the structure?

There is no way to do this…
Wed, 12/18/2019 - 12:46

There is no way to do this with new structure system, but will be partially possible once we add condition mod element with manual checking.

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That will be nice!
Wed, 12/18/2019 - 14:50

That will be nice!

Joined Oct 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know. I already using it…
Wed, 12/18/2019 - 15:13

I know. I already using it. Use structure void in your structures.

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm already using the…
Wed, 12/18/2019 - 16:31

I'm already using the structure void. What I meant is that blocks like grass and stone can be replaced by the custom blocks when it shouldn't.

Joined Oct 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think you can do it if you…
Wed, 12/18/2019 - 17:09

I think you can do it if you place a block onto place where is structure void. That will do when structure gets loaded this:

If there is block if it will keep him. If not it will place custom one