tModLoader Modding Tutorial: World Generation

Did this thread help you?

  • Yes it did!

    Votes: 54 93.1%
  • No, it didn't.

    Votes: 4 6.9%

  • Total voters
    58
  • Poll closed .
So, how to I make the background for a biome?
I already have the biome recognition, i just need the code for the background itself.
 
Just use a TileRunner on the floating island, assuming you have the position. Check y 0-500 for cloud blocks, if you find one place it there.
 
excuse me, but would you possibly know how to generate structures? that would be a great help as the code ive used doesn't really work. I know I used to have some code that I created a big block, but I cant find it and so far, efforts have been unsuccessful.
thanks if you can help!
 
Code:
public override void Kill ()
        {
            if (NPC.downedBoss3)
            {
                OreComet();   
            }
           
       
        }
Why is this not working?
 
I was testing things out, but I ran into a bit of trouble
How do you remove the trees from a world?
Why can I mine anything I generate?
Please explain. Thank you
 
Is there anything on generating a corrupting biome (3rd alt to corruption)? That would be wonderful.

I haven't done one, but you could just remove the Corruption and place a biome there instead. The Jungle delete thing in the tutorial + a lotta world gen (that I can't really explain) should work fine.
 
Wait so I don't understand the Meteorite code..
Its outdated, use the Vanilla source code and put it into your code and adapt it into your mod, its a bit complicated so I would join the Tmodloader discord if I was you
 
Back
Top Bottom