[UNSOLVED] "Place structure at" block doesn't work when my structure generates.

Started by akisephila on

Topic category: Help with modding (Java Edition)

Last seen on 07:56, 15. Nov 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[UNSOLVED] "Place structure at" block doesn't work when my structure generates.

I'm making a mod that has expansive, procedurally generated structures. When a dungeon entrance generates, it's supposed to place a stairway structure underneath itself, place another stairway structure underneath that one, and then place hallways leading into rooms.

However, it does not even generate the stairway.

Please help.
Here's the procedure I'm using which is meant to generate the stairway.
Procedure used to generate the stairway under the entrance.

Last seen on 07:56, 15. Nov 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
BUmp.
Tue, 07/13/2021 - 23:59

BUmp.

Last seen on 07:56, 15. Nov 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Bump
Wed, 07/14/2021 - 10:14

Bump

Last seen on 02:40, 4. Jan 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh I did not know we couldn…
Thu, 07/15/2021 - 03:48

Oh I did not know we couldn't bump, sorry if you saw any bumps i made

I mean, I feel like bump is…
Thu, 07/15/2021 - 06:29

I mean, I feel like bump is okay, but for example after a month or sth, just to bring topic back to life. Making bump in the same day is just spam and useless, since usually you get answers for topics about ~1-3 days after publishing them.

Last seen on 23:13, 18. Dec 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can make a living entity…
Sat, 03/05/2022 - 16:09

You can make a living entity (make sure to disable ai, collision box and possibly spawn egg as well) before attaching a procedure to it go into a world with the mod loaded and create a structure file containing the entity. then save the structure do this for however many different rooms you would have. 

Then for these entities create a procedure on their tick update which first despawns the entity and then places the desired structure as well as summons the other entities (which will then place their own structures) it needs to.

Now put the structure file containing the first entity as the file for your generated structure and then whenever the chunk containing the structure is loaded it will instantly spawn the structure.

Feel free to ask if something is unclear.

+1 Bashh, I use the same…
Sat, 03/05/2022 - 18:47

+1 Bashh, I use the same method and it works perfectly. If I could add anything more from myself, it is also good to condition their structure spawning to player being in range of, let's say, 100-160 blocks, so it has less chance to cut the structure if all chunks are not loaded yet.