Multiple structure spawning help

Started by Vanblam on

Topic category: Help with MCreator software

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Multiple structure spawning help

I have 4 different types of tombstones (set as structures for the random rotation) that I want to spawn in my biome, the problem I can't seem to resolve is having all 4 spawn together in the same location in random rotations. I can do 1 just fine, but I would like to have all 4 spawn in the same clump. Does anyone know how to achieve this using the program? I've tried to use procedures to spawn more on generation but I can't get it to work. I'm guessing I would need to have an array for it to choose from?

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I figured out a work around…
Mon, 08/29/2022 - 23:56

I figured out a work around that solved this problem. I made 3 more tombstone blocks and brought them into mcreator and saved them in. I then made a block that was called "All Variants". I then changed the blockstate for that block to this.

{
  "variants": {
    "facing=north": [
					{ "model": "stormsound:block/suffering_tombstone_01" },
					{ "model": "stormsound:block/suffering_tombstone_02" },
					{ "model": "stormsound:block/suffering_tombstone_03" },
					{ "model": "stormsound:block/suffering_tombstone_04" }
	],
    "facing=east": [
					{ "model": "stormsound:block/suffering_tombstone_01" , "y": 90 },
					{ "model": "stormsound:block/suffering_tombstone_02" , "y": 90 },
					{ "model": "stormsound:block/suffering_tombstone_03" , "y": 90 },
					{ "model": "stormsound:block/suffering_tombstone_04" , "y": 90 }
    ],
    "facing=south": [
					{ "model": "stormsound:block/suffering_tombstone_01" , "y": 180 },
					{ "model": "stormsound:block/suffering_tombstone_02" , "y": 180 },
					{ "model": "stormsound:block/suffering_tombstone_03" , "y": 180 },
					{ "model": "stormsound:block/suffering_tombstone_04" , "y": 180 }
	],
    "facing=west": [
					{ "model": "stormsound:block/suffering_tombstone_01" , "y": 270 },
					{ "model": "stormsound:block/suffering_tombstone_02" , "y": 270 },
					{ "model": "stormsound:block/suffering_tombstone_03" , "y": 270 },
					{ "model": "stormsound:block/suffering_tombstone_04" , "y": 270 }
	]
  }
}

By doing this the same tombstone was placed with different variants so I could have 4 different tombstones when the structures are generated.

This was the result :)