Partially Floating Structures

Started by RosyWindFox on

Topic category: Help with Minecraft modding (Java Edition)

Active 5 years ago
Joined Jun 2018
Points:
707

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 19
Partially Floating Structures

It's not a super in depth problem so I'll make this quick.

I made a variety of structures but, sometimes they spawn half on land and half floating, how do I make it so they only spawn when there is land under all of it or about 90% of it.

Active 3 years ago
Joined Jul 2020
Points:
672

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 84
Just ignore all these if you…
Sat, 07/25/2020 - 18:38

Just ignore all these if you figure out a better way in 2020.4 like Klemen said

How large (x and z wise) are they? They're probably hitting only one original block when trying to spawn and stretching out sideways from there. To fix this you could either:

1. Test for more blocks in the "on structure instance generated" procedure and remove the structure if there are not enough blocks around it. (you might need to make the structure more common if you do this)

2. Do the same as "1." but fill those air blocks with dirt or something rather than destroy the structure.

2. Split your structure up and only generate the extra parts if there are blocks where it is supposed to go (also in the same procedure).

3. Include blocks underneath and around the outside of your structure.

4. A mix of the above.

Active 3 years ago
Joined Jul 2020
Points:
672

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 84
Spawn a structure the same…
Sat, 07/25/2020 - 19:47

Spawn a structure the same size with air blocks where the solid blocks were before.

Active 3 years ago
Joined Jul 2020
Points:
672

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 84
("place structure at x, y, z…
Sat, 07/25/2020 - 23:33

("place structure at x, y, z" in the "world management" procedure tab, btw)

Active 5 years ago
Joined Jun 2018
Points:
707

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 19
Thanks
Sun, 07/26/2020 - 17:49

Thanks

Active 3 years ago
Joined Jul 2020
Points:
672

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 84
No problem. :)
Mon, 07/27/2020 - 07:16

No problem. :)

Active 4 years ago
Joined Sep 2020
Points:
614

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Hi, I have the same problem,…
Sat, 09/05/2020 - 00:57

Hi, I have the same problem, I would Like a clear screenshot of the code required to fix the problem, Thanks :)

Active 3 years ago
Joined Nov 2021
Points:
530

User statistics:

  • Modifications: 1
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
If you could post the code…
Sun, 03/27/2022 - 10:34

If you could post the code with better resolution it would be appreciated :D