Generation of ores in negative layers

Started by eLCaleuche on

Topic category: Help with modding (Java Edition)

Last seen on 00:13, 1. Apr 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Generation of ores in negative layers

I'm using the mcreator snapshot for 1.18.2, does anyone know how I can make my minerals spawn in negative layers? or is that not possible so far?

Last seen on 16:42, 2. May 2024
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's probably a bug in the…
Fri, 03/25/2022 - 18:30

It's probably a bug in the snapshot but for now you can go into the code of the block you want to generate and change the values in the numbers, it might cause some bug though because the code might need to do a extra thing to make it generate negative but you can try 

Last seen on 01:25, 4. May 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Click on Tools Create Ore…
Fri, 03/25/2022 - 21:13
  1. Click on Tools
  2. Create Ore Pack
  3. Give name, type, color, and power factor. Whwn done click on Create Ore Pack
  4. Step #3 generates all the necesary code for the Ore Features
  5. Go to your recently created ore, change any other value if needed.
  6. At the top, click on Generated Code Viewer
  7. At the bottom, click on <YOUR _ORE_NAME>OreFeature.java
  8. At line #16, you will see something similat to the following - 
    List.of(CountPlacement.of(11), HeightRangePlacement.uniform(VerticalAnchor.absolute(1), VerticalAnchor.absolute(63))));
    

 Now that you know where it is located, save that block, lock the code and change that line in the code viewer. Change the VerticalAnchor.absolute(1) <<<=== to a negative value

List.of(CountPlacement.of(11), HeightRangePlacement.uniform(VerticalAnchor.absolute(NEGATIVE_VALUE_HERE), VerticalAnchor.absolute(63))));
Last seen on 01:25, 4. May 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make sure you do not unlock…
Fri, 03/25/2022 - 21:17

Make sure you do not unlock the code when done, if you do ... MCreator will change all values to th default ore generation (it does not allow negative values). This also works for 1.17.x, not tested on 1.16.x.

Last seen on 13:59, 29. Mar 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Won't work on 1.17/1.16,…
Mon, 03/28/2022 - 07:26

Won't work on 1.17/1.16, they don't have -x blocks, only 0->256 NOT -64->320

Last seen on 13:59, 29. Mar 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Unless your mod adds that
Mon, 03/28/2022 - 07:27

Unless your mod adds that

Last seen on 01:25, 4. May 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It works on 1.17.x, yes …
Mon, 03/28/2022 - 14:35

It works on 1.17.x, yes ... my mod added it from -511 to 1024 using MCreator (https://mcreator.net/modification/81975/new-world-height-and-depth), and posted on this site. Also for 1.18.1, but never tested on 1.16.x. Will upgrade to 1.18.2 soon.