Generation of ores in negative layers

Started by eLCaleuche on

Topic category: Help with Minecraft modding (Java Edition)

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?

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 

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))));
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.

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

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