Need help making trees only spawn on a certain block.

Started by CharlyMan on Mon, 06/13/2022 - 23:06

Topic category: Help with modding (Java Edition)

Last seen on 01:00, 2. Jul 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Need help making trees only spawn on a certain block.
Mon, 06/13/2022 - 23:06

I've added new tree structures into my mod but they're spawning in water. I only want them to spawn on a grass block so that way they can't spawn in deserts or the ocean. I can't find out how to make an additional generation condition procedure. Can someone send me a working procedure for this so I can learn how to do these in the future. Thank you. 

Last seen on 08:23, 2. Jul 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
It's simple theres a preset…
Wed, 06/15/2022 - 01:34

It's simple theres a preset for that

follow it as it is

Last seen on 01:00, 2. Jul 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
thanks, but I'm having…
Mon, 06/20/2022 - 21:39

thanks, but I'm having another problem with it now, it thinks this means any part of the structure has to be touching the grass block meaning that the structure can now float mid air where there are ledges. Heres an image for extra information.

image of the floating tree 

Last seen on 01:00, 2. Jul 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
The image didn't seem to be…
Mon, 06/20/2022 - 21:40

The image didn't seem to be working so here's the link to it here: https://imgur.com/a/7lGDEal

Last seen on 01:00, 2. Jul 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
It also occasionally makes…
Mon, 06/20/2022 - 21:46

It also occasionally makes unwanted terrain damage

 

Last seen on 21:25, 25. Jun 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
use structure voids instead…
Tue, 06/21/2022 - 00:24

use structure voids instead of air, and add an additional spawning condition that checks if block at x, y -1, z == grass

 

Last seen on 01:00, 2. Jul 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hey, Legomatt28. I don't…
Thu, 06/23/2022 - 20:47

Hey, Legomatt28. I don't really understand what your trying to tell me because i already have a block restriction and it should be already be structure void, heres and image of the structure's settings. https://imgur.com/a/aCWpYh2

Last seen on 10:05, 2. Jul 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
When you physically built…
Fri, 06/24/2022 - 12:13

When you physically built the tree structure in a minecraft world, did you put structure void blocks in place of the air?

Last seen on 01:00, 2. Jul 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
no, but it looked like the…
Fri, 06/24/2022 - 22:26

no, but it looked like the game itself had already placed it.

even then the settings on the structure say ignore air when placing.

Last seen on 10:05, 2. Jul 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Try creating a new tree…
Fri, 06/24/2022 - 22:41

Try creating a new tree structure with structure voids :)