Started by
Le_thibi
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, I would like to create a portal that generates naturally like the ultra breaches in the pixelmon mod. Unfortunately I can't do it, so here is the reason for this message. Do you have any idea how to do this? Thanks in advance to anyone who took the time to read this.
You could make a structure of the portal, then save it using structure blocks
If you don't know how to use those you could look up a tutorial on how to make structures with MCreator, or even just custom structures in Minecraft.
You could also place the portal blocks themselves with /setblock (as in the actual portal that teleports you to your dimension) if you want a custom portal shape.
I don't want to have a structure strictly speaking (like the nether portal) but really a portal that can appear and then disappear.
A portal like that would be an Entity, that would have no-gravity and be invulnerable that when collided with places the player into the specified dimension or a dimension, also are these one way or lead to a boss battle and also if you want it to warp back to where they entered you will need to add 5 variables for each player (3 for coordinates, 1 for dimension id and one to check if they are in the dimension) also if death is escape but you want the player to survive, when they die teleport them to where they entered the dimension and set their health to 1 hp
Ok I think I understand I'll try and if I can't I'll come back for more precision. anyway thank you for your help.