custom trees floating... how do i prevent this?

Started by Yrense on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Aug 2020
Points:
604

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
custom trees floating... how do i prevent this?

im making custom trees which are essentialy custom structures and when they generate, they sometimes are on a ledge and just floating... it really breaks the environment and if there's a way to fix it, i would love to know!

Active 4 years ago
Joined Jun 2020
Points:
630

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
Usign "Restricts to block…
Sun, 08/16/2020 - 06:04

Usign "Restricts to block type" and using blocks that are placed on the ground(dirt, grass_block, stone...) helps to prevent this I think

Active 4 years ago
Joined Aug 2020
Points:
604

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
well i already use that…
Sun, 08/16/2020 - 20:25

well i already use that function, but they still spawn half on land and half in the air. ill show you a picture of a good generation VS a bad one...

​​https://image.noelshack.com/fichiers/2020/33/7/1597609423-tree1.jpg good generation

 

https://image.noelshack.com/fichiers/2020/33/7/1597609428-tree2.jpg bad generation

Active 4 years ago
Joined Jun 2020
Points:
630

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
Have you tried the new…
Wed, 08/19/2020 - 04:13

Have you tried the new option of 2020.4 that is "Additional generation conditions" maybe checking that none of the blocks below in a radius is the type air as a condition might fix it 

Active 4 years ago
Joined Aug 2020
Points:
604

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
ill try something like that..
Wed, 08/19/2020 - 20:39

ill try something like that..

Active 2 years ago
Joined Jul 2020
Points:
649

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 84
I second Sancho's "checking…
Wed, 08/19/2020 - 23:26

I second Sancho's "checking for blocks in radius" fix.

I believe the problem behind this is that the structure is so large x and z wise, it is probably hitting only one original block when trying to spawn and stretching out sideways from there, not realizing that all the other blocks beneath it are air.

Active 4 years ago
Joined Aug 2020
Points:
604

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
i mean, i know what the fix…
Thu, 08/20/2020 - 21:25

i mean, i know what the fix is... i just need to find a way to implement it... i tried for an hour yesterday and just gave up o-o

Active 2 years ago
Joined Jul 2020
Points:
649

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 84
Which part are you having…
Mon, 08/24/2020 - 22:04

Which part are you having trouble with?

Active 6 months ago
Joined Jul 2020
Points:
619

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
I'm having the same issues…
Sun, 03/14/2021 - 09:23

I'm having the same issues with my custom tree but I don't understand what I would do with the "check type of block below" procedure template. Do i have it check for grass or air? Then what do I put in the "do" section for after it checks the blocks?

Active 2 years ago
Joined Apr 2021
Points:
760

User statistics:

  • Modifications: 1
  • Forum topics: 14
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 292
Check for solid blocks.
Mon, 06/28/2021 - 06:42

Check for solid blocks.

Active 2 weeks ago
Joined May 2021
Points:
707

User statistics:

  • Modifications: 2
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 171
You need to spawn structures…
Mon, 06/28/2021 - 08:06

You need to spawn structures through procedures/code to get them to not be cut off and not floating. The code has to fire off before the world generation. I have entire custom villages with five 48x48x48 tiles generation fine. Also have dungeons that work just like rogue dungeons. 

1.16.5

Active 2 years ago
Joined Jun 2018
Points:
760

User statistics:

  • Modifications: 2
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 39
I am having the same problem…
Tue, 10/19/2021 - 20:16

I am having the same problem. the huge oaks that i made are in the air or stuck in the ground.