Started by
efkrdnzzz
on
Topic category: Help with modding (Java Edition)
I've made a pocket dimension which is exact replica of overworld. Only issue is that I want to save locations of blocks placed on overworld and place them in pocket dimension as well. Pocket dimension is like shadow dimension so every block is like a dark block so I dont have to worry about the block type placed in pocket dimension. I just need to figure out how can I just place blocks there
This is... technically not impossible, but would probably be very tricky. I don't think you're going to be able to mimic the terrain, (at least not with a great deal of code wizardry), but you might be able to get interdimensional block placement to work. The problem is that you need to load in two dimensions at once, which is difficult without a player's presence. Essentially, in addition to finding a way to somehow change the dimension you're targeting blocks in, you need to load that dimension by teleporting an invisible entity there.
I'm not sure how you'd actually change your code to place a block in another dimension, this would also likely require custom code.
I actually did it using simpler method.
but it only works singleplayer... (I used arraylist plugin)
The way it works is each time player puts a block it saves the location in an array and when player enters that dimension it just loops through that array putting blocks to all those coordinates in other dimension as well.
Huh, that's really clever! I use Arraylist too, but wouldn't have thought of that. Probably still not a great way to mimic terrain though, unless you could somehow access the same generation seed as the overworld.
It is possible without plugins, efkrdnzz I will find a way for you. It requires, two functions and two procedures.
I saw your original post on my forum which I solved. You asked if I could show images, yet I find images very difficult (I'm too lazy for images) I will show you in words the steps after this message. I am going to help. I made a similar pocket dimension thing. I know your pain. I stayed up to 6am from the time I woke up working on a solution (I thought allot with my brain (I have a brain (I think (Mabey))). It is surprisingly simple to make this functional (except for beds (No one likes beds)). I just wanted to let you know I am trying to help.
You know what, I will try images for a change.
How do I do images?
You just need to have the image come from somewhere else. MCreator doesn't support uploading files to comment threads, but if you upload an image elsewhere, (mediafire, imigur, a personal website, etc.), you can copy and paste the URL. As long as it's somewhere on the internet, you can link it.
I wil make a wiki page about it
I might take a while.