Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I basically want to create a mod for Minecraft that does the following:

if(a sand block is next to lava block) {
   change the sand block to a glass block
}

Is it possible to create a mod like this without editing multiple Java classes?

share|improve this question
add comment

2 Answers 2

Something that a lot of people don't understand is that it is possible to make ANY mod. And also, you need to modify java classes at one point. There is no way around either of these simple facts.

So, yes. Yes you can. :)

share|improve this answer
add comment

That depends. To do specifically what you are describing, you will probably need to create a mod for a new block type. Here's a tutorial on doing so -- it's not terribly complex and you primarily just need to create one additional source file (for the block itself). The code for the block itself may be more involved, however. You can see an example of this kind of cellular automaton block mod on YouTube here.

You can, of course, just build the simulation you want using redstone circuits. It might be a bit involved, and it won't function exactly the way you want (toggling block types), but it's doable without a mod.

share|improve this answer
    
"Might be a bit involved"... :) –  Ilmari Karonen Nov 4 '11 at 23:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.