Connect Structures To The Ground

Started by braelin777 on

Topic category: Help with modding (Java Edition)

Last seen on 01:30, 29. Nov 2023
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Connect Structures To The Ground

Hello all! I’ll make this short and sweet. Is there any possible way to get structures to “build themselves” or “connect” to the ground like vanilla ones? Here’s an example: 

https://ibb.co/WFbqh3d 

 

Last seen on 07:36, 16. Apr 2024
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I just did this for my mod…
Wed, 03/01/2023 - 17:03

I just did this for my mod permafrost biome, with packed ice under the structures.

The main procedure:

https://ibb.co/LN8W9xq 

The second block which replaces this block is there to remove the block that generates this procedure. 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 procedure.

 

This procedure doesn't seem to work with on structure generated so I would recommend adding blocks in the structure that generate the procedure, but then the locks still wouldn't tick so I personally fix this by having a block that spawns the structure when neighbor blocks change and have a block (self made so you can turn it off during development).

If you have more questions about this you can ask.

Last seen on 07:36, 16. Apr 2024
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
some adjustments to my reply…
Wed, 03/01/2023 - 17:16

some adjustments to my reply 

the block that spawns the structure is spawned is like a structure and has the other block spawning above it with one air block.

the selfmade block above it needs to be a gravity block (that is what I meant with what you can turn of)

 the procedure is called with the tricker when block added

in the sentences "The second block  .... number local variable." with the second block I meant procedure block.

 

Last seen on 01:30, 29. Nov 2023
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ill try this and let u know…
Fri, 03/03/2023 - 00:25

ill try this and let u know how it goes!

Last seen on 01:30, 29. Nov 2023
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i did it a little…
Fri, 03/03/2023 - 06:39

i did it a little differently, but i used your way as a concept, so thanks!!