Structure Check Block (Procedure I made to help some people!)

Started by AOCAWOL on

Topic category: Advanced modding

Joined Oct 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Structure Check Block (Procedure I made to help some people!)

Hi! I wanted to give ya'll a very helpful procedure I made, I recommend using this if you have custom trees in your mod because Mcreator usually makes them float for some reason so here is a way to prevent that!

https://www.mediafire.com/file/7g5san29frbsffn/StructureCheckBlockProce…

There is a download for it, it's called the "Structure Check Block"

(Note: for this to work you need to create the block itself first and place it under your tree structure DO NOT insert the procedure until after you already have exported your structure)

I didn't include its texture cuz that up for you to decide cuz' mine had my logo on it so that'd be weird. Anyway here is how to use it:


Replace the Redstone Block in the procedure with your "Structure Check Block" (Put this procedure in your Structure Check Block's Tick Update and set the tick rate on the block to like 10 or less)

Then replace the Log block with your mod's log. 


Here is what the procedure will actually do:

the structure check block will look for if there is air or water below it. If there is then it will replace itself with the log that is above it and also places itself below so that this process keeps repeating until your log is fully in the ground and no longer floating! This works great because instead of making multiple procedures you can simply just copy and paste the procedure and change the Log to whatever log you need and it'll check for different logs above it. You could also change this procedure up any way you'd like of course to fit your needs so it doesn't just work for tree gen.


Anyway I hope this helps someone trying to make biomes and stuff and gets upset when their tree is floating (happens a lot in my mod)

The issue with floating…
Sun, 06/23/2019 - 08:38

The issue with floating trees with be solved in MCreator 1.9.0, but until it is released, this is a nice procedure :)

Joined Oct 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But does your floating tree…
Sun, 06/23/2019 - 18:11

But does your floating tree issue fix only work on the "schematic tree" option in the Biome Element? This isn't really for that. In my mod I use actual structure elements so that I can have varients and I simply force it to spawn on grass and in the biome. This procedure is more for that but can also work for the biome element one as well I guess.

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is this the one I gave you…
Mon, 06/24/2019 - 15:30

Is this the one I gave you on curseforge?

Joined Oct 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No but it did give me the…
Mon, 06/24/2019 - 15:36

No but it did give me the idea that this was possible. The concept was there but the procedure had to actually be very different in order to actually work.

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok! What was wrong with what…
Mon, 06/24/2019 - 15:37

Ok! What was wrong with what I gave you?

Joined Oct 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It didn't check for enough…
Mon, 06/24/2019 - 20:36

It didn't check for enough parameters and would infinitly keep going. 

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ah, Ok! Thanks :D This has…
Tue, 06/25/2019 - 05:47

Ah, Ok! Thanks :D

This has definitely helped improve my procedure coding :)