Structure won't spawn while entering dimension

Started by Grifinne on

Topic category: Help with modding (Java Edition)

Last seen on 14:16, 19. Sep 2024
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Structure won't spawn while entering dimension

Hi, first sorry for making this topic. A lot of people already made similar ones but none of the proposed solutions worked for me. 

To sum up things, I basically want the player to be teleported in a custom, empty dimension. By teleporting them, they're also put in x:0, y:0, z:0. When it does, a structure should appear below them, at x:0, y:-5, z:0. However, I can't make the structure to spawn in the custom dimension. The player is teleported in the dimension, they're put in the right place, but the structure won't spawn. Depending on the solutions I've tried, the structure would either spawn in the Overworld (the dimension where the player was before teleporting), or it would just not spawn at all.

I've made it so that there are two triggers: 

  • The trigger when the player right clicks the item teleporting them (which manages the teleportation in the dimension and at the right coordinates)
  • The trigger when the player enters the dimension (which manages the spawn of the structure)

Here's a link to the procedures: https://imgur.com/a/co3CcqI

Hope this is enough information, don't hesitate to ask if you need something else for better understanding. Thank you for your time reading this.

Last seen on 21:38, 18. Sep 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
wait, what version of…
Wed, 09/18/2024 - 21:29

wait, what version of minecraft are you making this for? I know this may sound stupid but I just want to know, since the structure won't spawn in versions before 1.18. if it is before, then here's a solution:

- put that little "generate structure" block in a new procedure.
- then go into the dimension and navigate to "triggers".
- then select the drop down underneath "when player enters dimension" and select your new procedure.

this (hopefully) should work. I'm no expert in Mcreator but that trigger has worked for me before when giving the player an achievement for entering a dimension.

Last seen on 14:16, 19. Sep 2024
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi, thanks for your reply! I…
Thu, 09/19/2024 - 12:52

Hi, thanks for your reply! I'm using NeoForge 1.20.6 for my project, I've already tried this solution but it would make the structure spawn in the overworld instead of in said dimension. I think it's because the procedure makes the structure spawn right at the moment when I press the button, which makes it spawn in the overworld since there's a bit of delay before I get teleported in the other dimension. I've tried delaying the spawn of the structure a bit but it would just not spawn at all.