Need help making trees only spawn on a certain block.

Started by CharlyMan on

Topic category: Help with modding (Java Edition)

Last seen on 04:08, 14. Dec 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help making trees only spawn on a certain block.

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 11:34, 9. Oct 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 04:08, 14. Dec 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 04:08, 14. Dec 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 04:08, 14. Dec 2022
Joined May 2022
Points:

User statistics:

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

It also occasionally makes unwanted terrain damage

 

Last seen on 22:34, 11. Feb 2023
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 04:08, 14. Dec 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 00:46, 5. Jun 2023
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 04:08, 14. Dec 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 00:46, 5. Jun 2023
Joined Apr 2021
Points:

User statistics:

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

Try creating a new tree structure with structure voids :)

Last seen on 04:08, 14. Dec 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That's not the problem…
Sun, 07/17/2022 - 00:31

That's not the problem though. The problem is terrain damage.

 

Last seen on 11:34, 9. Oct 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
YOU NEED TO USE STRUCTURE…
Sun, 07/17/2022 - 02:39

YOU NEED TO USE STRUCTURE VOIDS FO THAT!!!!!!

Last seen on 11:34, 9. Oct 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
air is saved a s a block in…
Sun, 07/17/2022 - 02:39

air is saved a s a block in structures

Last seen on 11:34, 9. Oct 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
structure voids don't…
Sun, 07/17/2022 - 02:40

structure voids don't replace anything