-
[1.12.2] Get ID of World object
Alright my bad, thanks for the help. I just didn't know what you meant by :: . Last question, would world.provider.getDimension() work in theory?
-
[1.12.2] Get ID of World object
Thanks for the quick response! I'm not too familiar with lambda expressions and I like to know what I'm doing with my code. I've read though a few explanations and from what I can tell this is a Comparator Lambda, however, I still don't understand how it's used as I've never worked with them. If it's not too much ask, could you give an explanation and or usage example?
-
Durtle02 changed their profile photo
-
[1.12.2] Get ID of World object
If I have a variable of type World.class how would I get the ID of it? As far as I understand the dimension ID is not stored in the world object. What I need to check is if the dimension is the overworld or a custom dimension I have created. For example if I was to use onBlockActivated how would I get the ID of the world passed though as a parameter?
-
Creating Mirror dimension of Overworld
No so much wasting time but just having little knowledge of what I'm doing, but that's why people help, so then later I can help too.
-
Creating Mirror dimension of Overworld
Alright will do! Thanks for all the help and bearing me, I have very little clue what I'm doing and with such little preexisting resources it makes it hard to find out. I always hate asking on the forums because I feel like I'm wasting peoples time so thank you.
-
Creating Mirror dimension of Overworld
So then to test for in other world what would I run in '//Do stuff'? Like how this world.getBlockState(posNumber).getBlock() will modify in the overworld with what I have but what would it look like for the mirrorworld?
-
Creating Mirror dimension of Overworld
It's just an example. If I wanted to use detection like that with the other world. Pos is blocks location. public void blockSpread(World world, BlockPos posNumber) { if (world.getBlockState(posNumber).getBlock() != MirrorWorld.getBlockState(posNumber).getBlock()){ world.setBlockState(posNumber, MirrorWorld.getBlockState(posNumber)); } } Like this.
-
Creating Mirror dimension of Overworld
And if I wanted to use it like this public void blockSpread(World world, BlockPos posNumber){ if (world.getBlockState(posNumber).getBlock() != Blocks.AIR){ } } how would I do so?
-
Creating Mirror dimension of Overworld
Where would I go doing this? In my dimension files, correct?
-
Creating Mirror dimension of Overworld
I don't know how to explain it but they do. Also I want players to be able to get there.
-
Creating Mirror dimension of Overworld
You will need to be able to get to the dimension though.
-
Creating Mirror dimension of Overworld
So you place it and it checks the surrounding blocks. If they are different, if they are it sets them as itself and turns itself to whatever the block is at it's cords in the mirror world (using random ticks). If it's not the same, it sets itself as air and doesn't change any others. Recreating this:
-
Creating Mirror dimension of Overworld
I'm remaking an old mod and one of the blocks is regenerative of the mirror world. So it looks in mirror world, checks if blocks are same, and if not, makes it so.
-
Creating Mirror dimension of Overworld
Hi, so I'd like to create an exact copy of the overworld so I can use a block as a regenerative thing however I don't know where to start. Could I get a quick run down of how the dimension generation works, how I can copy the world seed and where the files are that specifically handle generating the overworld are in the MC source code are? Also any UPDATED tutorials you have would be cool. Thanks. Durtle02
-
Retrieve files from compiled mod. [Solved]
Hi, I had just released the first version of my mod when my raw files got corrupted. I have a working version of the mod but don't have the raw code to continue development. Is there any way I can get the code back from the compiled mod?
IPS spam blocked by CleanTalk.