Started by
Ellieisokay
on
Topic category: Help with Minecraft modding (Java Edition)
Trying to make it so when a player enters a dimension the nearby land is taken with them, but I'm not sure how I would do that.
just trying to get it to work, it doesn't have to be fancy.
You could probably copy a rectangular section of blocks fairly simply by using a bunch of loops:
But in order to do that, you'd need a handle to both of the dimensions you are about to access. You can get them by getting a level from its resource key:
The full code is: (You can paste this into a "Custom code snippet" block; make sure you do this before you actually teleport the player)
Where do I put this? I tried creating a custom element but it kept saying illegal start to type, tried moving it around a couple times but it wasn't working.
I figured out where to put it, but it doesn't seem to recognize X Y and Z as coordinates
Annoyingly, MCreator will only recognize "x", "y", and "z" if those appear as blocks somewhere else in the program. Try adding a no-op like "set block at x, y+1000, z to air" or something.
seems to work, thanks!