Hi folks,
I'm just starting off modding, so I have an easy question for you all. I would like to set a block at arbitrary coordinates (say 0,80,0) to an arbitrary value. (say, block of emerald, or id 133)
I've been following the tutorials here:
http://www.minecraftforge.net/wiki/Basic_Modding
But I'm not seeing any information on how to set a block post-world generation. I've also taken a look at the Ruins mod source code, and discovered the setBlock function there.
I'm 99% sure that setBlock shouldn't go in preInit, load, or postInit, because I'm assuming those functions are just relating to loading the mod. We need to call setBlock after the world has already been generated.
I basically just need to know how and when to call setBlock, and how to reference the current world in setBlock.
Thanks folks!!