[tutorial] Connect structures to the ground like in some vanila structures

Started by tombkingsts on

Topic category: User side tutorials

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[tutorial] Connect structures to the ground like in some vanila structures
Fri, 03/15/2024 - 08:20 (edited)

This is a tutorial to make the blocks under a structure like the woodland mansion and old village buildings in the way I made it for my mod permafrost biome.

 

The  procedure:

https://ibb.co/LN8W9xq

The second procedure block is there to remove the block that generates this procedure and replaces it with a block of choice (in this case packed ice). The local variable "position" is a number local variable.

You can change things to you're liking with which block it creates (in this case packed ice) also in this case it only replaces nonsolid blocks but there might be other blocks you want to check like snow layers won't be replaced with this version of the procedure.

 

The structure spawning :

This procedure won't be all tough because you can't use this procedure "on structure generated". I fixed this to spawn the structure with a block that has a self made gravity block(so you can turn the gravity off during development) above it. The block can then spawn the structure using a procedure. You can then use the procedure to spawn blocks underneath on all needed positions, or like I did put the procedure to spawn the blocks underneath the structure in a block with the trigger "when block added" and then put it on the positions where I want it in the structure.

 

Some examples of the result:

https://ibb.co/QbV6Qws 

https://ibb.co/y5H1NrP 

And an example of how it happens in Minecraft.

example of wat should happen

 

 

I hope I was clear if there are questions you can always ask.

 

note:

This tutorial was made for the old mcreator structures which are now integrated as features. I don't yet have a way to implement this using the new structures.

Edited by tombkingsts on Fri, 03/15/2024 - 08:20
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help me please
Mon, 01/15/2024 - 00:41

Help me please

Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Dekaco; you want to add a…
Mon, 01/15/2024 - 16:57

Dekaco; you want to add a local variable in your procedure, you must click on the '+' at the top right to add a variable. Then choose a name for your variable and choose the type: number.