Topic category: Help with Minecraft modding (Java Edition)
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.
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.
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.
huh... no clue what you can do then. I always make forge mods and not neoforge, so maybe it just works differently and with neoforge it goes "hippity hoppity you ain't spawning structures on my property".
I see many people have created similar topics but it seems the answer is still not answered.
Welp, thanks for your help anyways. I already tried doing similar systems in Forge in the past but still had the same issue. Maybe it is something related to the structure properties, idk. 🤷♀️