Jump to content

Generating a part of a structure underground


Vintagebob

Recommended Posts

Hi everyone,

i need help (again). How i can generate the buttom part of a structure under the ground? I think with the offsetY parameter, but it doesn't work!

Here is the code:

[
  {
    "op": "add",
    "path": "/structures/-",
    "value": {
	code: "omniummoddungeon1",
	chance: 1,
	schematics: ["dungeon1"],
	replacewithblocklayers: ["soil-normal-normal", "soil-low-normal"],
	offsetY: -84
    },
    "file": "game:worldgen/structures.json"
  },
]

It generates all on the surface, and then i have bunch of 84-block tall mountains all over the world.

Pls. can somebody help me, Thank you :)

Link to comment
Share on other sites

  • 3 weeks later...

Well you replacewithblocklayers is only going to place it at the surface.

Maybe try:
 

[
  {
    "op": "add",
    "path": "/structures/-",
    "value": {
	code: "omniummoddungeon1",
	chance: 1,
	schematics: ["dungeon1"],
	placement: "underground",
	offsetY: -84
    },
    "file": "game:worldgen/structures.json"
  },
]

 

Link to comment
Share on other sites

  • 9 months later...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.