Jump to content

Creating new dimension?


DELTA_12

Recommended Posts

CJ, you are trying to be helpful, but new dimensions unfortunately aren't simple enough to just look up (at least not to me).

Delta, if you are serious about making this mod, you will want to look up wuppy's tutorial on dimensions.

All of wuppy's tutorials are listed here:

http://wuppy29.blogspot.com/2012/10/forge-modding-142.html

and if you scroll down into the text tutorials, there is a heading called "Dimension". Start with the first tutorial and follow it through all 7 tutorials to the end. The tutorial itself doesn't take too long since there is a lot of copy-paste.

Once you finish that, there are 2 more headings under dimension: dimension customization and other. Look at dimension customization because he shows you a couple neat tricks to use, then go to other and look at updating to 1.5.1. His dimension tutorial is old so if you can't figure out how to fix the outdated methods and names he uses, it's a good place to start.

 

This is the most up to date tutorial I've been able to find, and since it isn't a short process it will probably stay that way. Dimensions don't look too easy to me at the moment, so be aware that it takes patience and you can do it. :)

Read my thoughts on my summer mod work and tell me what you think!

http://www.minecraftforge.net/forum/index.php/topic,8396.0.html

 

I absolutely love her when she smiles

Link to comment
Share on other sites

I did a dimension myself back in 1.4.6; I can help you if you like.

I actually could use some help. I'm not really sure about several things. I think I just solved my own problem regarding block id's greater than 255, but I am having trouble in other areas.

 

How should I go about preventing any mob spawns in my new dimension? I have tried using:

provider.setAllowedSpawnTypes(false, false);

in several places and that doesn't seem to change anything, but it is the only thing I can find to indicate whether a mob spawns. I am not using any custom biomes and would prefer to do my changes to the world instead of the biomes.

 

Also, Do you know of a way to set a light level that is constant through day and night, or even just a way to set the skyblock light level? I'm sure I can figure out how to texture my sky how I want etc, but I'm having trouble with the light level.

 

If you remember any of this from when you made your dimension, thanks would be given freely. :D

Read my thoughts on my summer mod work and tell me what you think!

http://www.minecraftforge.net/forum/index.php/topic,8396.0.html

 

I absolutely love her when she smiles

Link to comment
Share on other sites

For stopping vanilla spawns in my dimension I just used

 

       this.spawnableMonsterList.clear();
        this.spawnableCreatureList.clear();
        this.spawnableWaterCreatureList.clear();
        this.spawnableCaveCreatureList.clear();
        this.spawnableMonsterList.add(new SpawnListEntry(EntityDemon.class, 5, 1, 1));

 

in my biome class that I'm using for the dimension

unless you're using vanilla biomes, in which case it's beyond me

 

regardless

 

http://www.minecraftforum.net/topic/1797143-forge-dimension-tutorial-for-152-with-custom-trees/

 

Is a great tutorial for dimensions

It's the one I used to make my dimension

It's only for a single biome and it's a little confusing, but it's up to date

 

they're currently working on adding more than 1 biome as a tutorial as well

Link to comment
Share on other sites

His update to 1.5.1 post helps a lot, or in the class where you have the error, open up the class that yours extends (ie, for your custom teleporter class, open up the vanilla Teleporter class) and compare the vanilla methods to yours and change yours to match the vanilla one where you have errors. Or just copy them over. They do the same thing.

 

Ooh, that looks helpful.

Yeah, I'm using all the vanilla biomes. My world generates *almost* identically to the normal world. Though in some places, sections of the world are mirrored. It's really strange.

Read my thoughts on my summer mod work and tell me what you think!

http://www.minecraftforge.net/forum/index.php/topic,8396.0.html

 

I absolutely love her when she smiles

Link to comment
Share on other sites

Go to your portal block class. Look at your onEntityCollidedWithBlock method. In there is a bunch of code that is used to teleport the player to your dimension. If you want to have the player be teleported via a different activity, move all the code from that method into a new method. In your instance, you probably want to override onBlockActivated and put the code in there.

 

Keep in mind, this still builds your portal the same way when you enter your dimension. If you want to change the way that is built, look at the custom teleporter class you made. And cry. Then if you still want to try to change it, start working on understanding what everything does. And cry. And give up and comment out everything already done and make some silly code that does what you want.

Read my thoughts on my summer mod work and tell me what you think!

http://www.minecraftforge.net/forum/index.php/topic,8396.0.html

 

I absolutely love her when she smiles

Link to comment
Share on other sites

I did a dimension myself back in 1.4.6; I can help you if you like.

I actually could use some help. I'm not really sure about several things. I think I just solved my own problem regarding block id's greater than 255, but I am having trouble in other areas.

 

How should I go about preventing any mob spawns in my new dimension? I have tried using:

provider.setAllowedSpawnTypes(false, false);

in several places and that doesn't seem to change anything, but it is the only thing I can find to indicate whether a mob spawns. I am not using any custom biomes and would prefer to do my changes to the world instead of the biomes.

 

Also, Do you know of a way to set a light level that is constant through day and night, or even just a way to set the skyblock light level? I'm sure I can figure out how to texture my sky how I want etc, but I'm having trouble with the light level.

 

If you remember any of this from when you made your dimension, thanks would be given freely. :D

Well, I was thinking about basic dimension structure when I said that, seeing as I never added much to the dimension... and I was not really prepared for those questions. Regardless, I'll try to help you.

*looks at source* And apparently, for whatever weird reason, I also self-obfuscated... Okay. Well, this might take some work, but I'll do what I can to answer your questions.

 

First, spawn types. Do you want to prevent natural mob spawns, or all of them? All mobs, or just monsters? If it's the first choice for both, as I suspect, I would redefine getPossibleCreatures(EnumCreatureType, int, int, int) in your chunk provider to return an empty list. As for your other questions, I'll answer, but I need to do a bit of research first.

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Link to comment
Share on other sites

*looks at source* And apparently, for whatever weird reason, I also self-obfuscated...

Hahaha I like you.

Thank you tons for looking into your code for me. I like this community. :)

At the moment I am thinking of just preventing natural spawns of all mobs. I'll check your solution and get back to you. -edit- It works- and I should have noticed that method way earlier. Haha.

 

Now, I said I figured it out on my own, and I may yet do so, but did you use your chunk provider to fill the world using a custom block? Because I thought I found the solution: making a chunk using a short array instead of a byte array, but there is obviously fancy math that I need to fix for that to work because the wrong block spawned and layers of the world spawned in sideways, very far-lands-esque.

Read my thoughts on my summer mod work and tell me what you think!

http://www.minecraftforge.net/forum/index.php/topic,8396.0.html

 

I absolutely love her when she smiles

Link to comment
Share on other sites

*looks at source* And apparently, for whatever weird reason, I also self-obfuscated...

Hahaha I like you.

Thank you tons for looking into your code for me. I like this community. :)

At the moment I am thinking of just preventing natural spawns of all mobs. I'll check your solution and get back to you. -edit- It works- and I should have noticed that method way earlier. Haha.

 

Now, I said I figured it out on my own, and I may yet do so, but did you use your chunk provider to fill the world using a custom block? Because I thought I found the solution: making a chunk using a short array instead of a byte array, but there is obviously fancy math that I need to fix for that to work because the wrong block spawned and layers of the world spawned in sideways, very far-lands-esque.

I used a ChunkProvider... but it sounds like you used a custom Chunk, which I didn't do. All you should need, though, is chunk.setBlockID(x,y,z,id) where x and z are both between 0 and 15 (they are not adjusted to chunk offset.) What you got sounds sort of like you had the args in the wrong order.

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Link to comment
Share on other sites

I am using a chunk provider. Vanilla chunks have a constructor that allows them to be built using a short array instead of a byte array, which allows you to use block ids over 255 when creating the chunk. I must have just not changed enough when I tried it on mine.

Read my thoughts on my summer mod work and tell me what you think!

http://www.minecraftforge.net/forum/index.php/topic,8396.0.html

 

I absolutely love her when she smiles

Link to comment
Share on other sites

I am using a chunk provider. Vanilla chunks have a constructor that allows them to be built using a short array instead of a byte array, which allows you to use block ids over 255 when creating the chunk. I must have just not changed enough when I tried it on mine.

Fair enough. To be honest, I was never concerned with that; I just needed a custom dimension for a small structure (I suppose I would have been more concerned later, when I expanded on that mod, but there you are.) Does the generation work now, then?

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Link to comment
Share on other sites

Mostly? I just changed my filler block id to 255, so the dimension is created properly with that, and most of the biomes generate correctly. However, any biome that includes water, like the ocean biome or a river etc, seem to have a strange issue. If you took every 4th block and squished them all together, then the next set, then the next, etc in one chunk, that is how it would look, except mirrored. So what would be a hill (left to right) has (still left to right) a high, high-middle, low-middle, low block, then repeated. I could post a picture but I should realistically be able to figure it out myself. Or I might not and leave it because it makes cool patterns.

Read my thoughts on my summer mod work and tell me what you think!

http://www.minecraftforge.net/forum/index.php/topic,8396.0.html

 

I absolutely love her when she smiles

Link to comment
Share on other sites

Mostly? I just changed my filler block id to 255, so the dimension is created properly with that, and most of the biomes generate correctly. However, any biome that includes water, like the ocean biome or a river etc, seem to have a strange issue. If you took every 4th block and squished them all together, then the next set, then the next, etc in one chunk, that is how it would look, except mirrored. So what would be a hill (left to right) has (still left to right) a high, high-middle, low-middle, low block, then repeated. I could post a picture but I should realistically be able to figure it out myself. Or I might not and leave it because it makes cool patterns.

I'd... ask for a screenshot anyway. I'd like to see that, even if you can easily fix it.

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Link to comment
Share on other sites

Fair enough...

The error in a river.

 

jUBBMg2.png

 

Another place without the text.

 

9W7enuY.png

 

A river basin. The right side is good but the left side clearly isn't.

 

CAyQFPV.png

 

An ocean floor. Interestingly, the top portion that is clearly not broken ends at level 64. This would explain why it only happens around water: nowhere else is under level 64.

 

kBMpbp0.jpg

 

And of course an ocean generated ravine that got slightly mangled.

 

rEDdqwj.png

 

Looking again, it seems that 4 block sections are just being mirrored, giving striations to the generation.

Read my thoughts on my summer mod work and tell me what you think!

http://www.minecraftforge.net/forum/index.php/topic,8396.0.html

 

I absolutely love her when she smiles

Link to comment
Share on other sites

Fair enough...

The error in a river.

 

jUBBMg2.png

 

Another place without the text.

 

9W7enuY.png

 

A river basin. The right side is good but the left side clearly isn't.

 

CAyQFPV.png

 

An ocean floor. Interestingly, the top portion that is clearly not broken ends at level 64. This would explain why it only happens around water: nowhere else is under level 64.

 

kBMpbp0.jpg

 

And of course an ocean generated ravine that got slightly mangled.

 

rEDdqwj.png

 

Looking again, it seems that 4 block sections are just being mirrored, giving striations to the generation.

...

Odd. To say the least. Perhaps I should take a look at your generation code myself. You wouldn't happen to have a Github?

Anyway. I did some looking into your other question, and have you tried setting myWorldProvider.hasNoSky to true?

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Link to comment
Share on other sites

If you mean me, i did but it only eliminates sunlight but sky is still visible. Yeah and im asking to CHANGE that texture not just make it invisible

Oh, sorry, I was talking to redria7. We should probably move our discussion to a seperate thread :)

 

Anyway, your problem... it doesn't look like it's possible to change the moon texture without changing it universally. Alternatively, you could draw a custom moon.

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Baba  Serege [[+27-73 590 8989]] has experience of 27 years in helping and guiding many people from all over the world. His psychic abilities may help you answer and resolve many unanswered questions. He specialize in helping women and men from all walks of life.. 1) – Bring back lost lover. even if lost for a long time. 2) – My lover is abusing alcohol, partying and cheating on me I urgently need help” 3) – Divorce or court issues. 4) – Is your love falling apart? 5) – Do you want your love to grow stronger? 6) – Is your partner losing interest in you? 7) – Do you want to catch your partner cheating on you? – We help to keep your partner faithful and loyal to you. 9) – We recover love and happiness when relationship breaks down. 10) – Making your partner loves you alone. 11) – We create loyalty and everlasting love between couples. 12) – Get a divorce settlement quickly from your ex-partner. 13) – We create everlasting love between couples. 14) – We help you look for the best suitable partner. 15) – We bring back lost lover even if lost for a long time. 16) – We strengthen bonds in all love relationship and marriages 17) – Are you an herbalist who wants to get more powers? 18) – Buy a house or car of your dream. 19) – Unfinished jobs by other doctors come to me. 20) – I help those seeking employment. 21) – Pensioners free treatment. 22) – Win business tenders and contracts. 23) – Do you need to recover your lost property? 24) – Promotion at work and better pay. 25) – Do you want to be protected from bad spirits and nightmares? 26) – Financial problems. 27) – Why you can’t keep money or lovers? 28) – Why you have a lot of enemies? 29) – Why you are fired regularly on jobs? 30) – Speed up money claim spell, delayed payments, pension and accident funds 31) – I help students pass their exams/interviews. 33) – Removal of bad luck and debts. 34) – Are struggling to sleep because of a spiritual wife or husband. 35- ) Recover stolen property
    • OLXTOTO adalah situs bandar togel online resmi terbesar dan terpercaya di Indonesia. Bergabunglah dengan OLXTOTO dan nikmati pengalaman bermain togel yang aman dan terjamin. Koleksi toto 4D dan togel toto terlengkap di OLXTOTO membuat para member memiliki pilihan taruhan yang lebih banyak. Sebagai situs togel terpercaya, OLXTOTO menjaga keamanan dan kenyamanan para membernya dengan sistem keamanan terbaik dan enkripsi data. Transaksi yang cepat, aman, dan terpercaya merupakan jaminan dari OLXTOTO. Nikmati layanan situs toto terbaik dari OLXTOTO dengan tampilan yang user-friendly dan mudah digunakan. Layanan pelanggan tersedia 24/7 untuk membantu para member. Bergabunglah dengan OLXTOTO sekarang untuk merasakan pengalaman bermain togel yang menyenangkan dan menguntungkan.
    • Baba  Serege [[+27-73 590 8989]] has experience of 27 years in helping and guiding many people from all over the world. His psychic abilities may help you answer and resolve many unanswered questions. He specialize in helping women and men from all walks of life.. 1) – Bring back lost lover. even if lost for a long time. 2) – My lover is abusing alcohol, partying and cheating on me I urgently need help” 3) – Divorce or court issues. 4) – Is your love falling apart? 5) – Do you want your love to grow stronger? 6) – Is your partner losing interest in you? 7) – Do you want to catch your partner cheating on you? – We help to keep your partner faithful and loyal to you. 9) – We recover love and happiness when relationship breaks down. 10) – Making your partner loves you alone. 11) – We create loyalty and everlasting love between couples. 12) – Get a divorce settlement quickly from your ex-partner. 13) – We create everlasting love between couples. 14) – We help you look for the best suitable partner. 15) – We bring back lost lover even if lost for a long time. 16) – We strengthen bonds in all love relationship and marriages 17) – Are you an herbalist who wants to get more powers? 18) – Buy a house or car of your dream. 19) – Unfinished jobs by other doctors come to me. 20) – I help those seeking employment. 21) – Pensioners free treatment. 22) – Win business tenders and contracts. 23) – Do you need to recover your lost property? 24) – Promotion at work and better pay. 25) – Do you want to be protected from bad spirits and nightmares? 26) – Financial problems. 27) – Why you can’t keep money or lovers? 28) – Why you have a lot of enemies? 29) – Why you are fired regularly on jobs? 30) – Speed up money claim spell, delayed payments, pension and accident funds 31) – I help students pass their exams/interviews. 33) – Removal of bad luck and debts. 34) – Are struggling to sleep because of a spiritual wife or husband. 35- ) Recover stolen property
    • BD303 merupakan salah satu situs slot mudah scatter paling populer dan digemari oleh kalangan slot online di tahun 2024 mainkan sekarang dengan kesempatan yang mudah menang jackpot jutaan rupiah.
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.