So, for my first ever foray into the world of Java, I decided to make a minecraft mod. It's going to be following the specs detailed in the
Minecarts Mk. II thread on the official forums, since I was lacking inspiration and prefer the ideas there over the existing minecart mods. I'm nearing the end of my first day working in Java, and things are going swimmingly. I currently have one completely custom railroad rail type, complete with tooltips, that does not curve and will hook up to existing rail pieces. Due to the nature of the piece (it is a direction-oriented booster/brake) is uses the 0x0-0x7 and 0x9-0x12 flags in the data bit to store the orientation of the piece, both horizontally and vertically, and it uses flag 0x8 to store whether or not it has a redstone current at the moment. (Note that both of these variables are stored together in a single 0 when the data is viewed in a hex editor, and the redstone flag must be filtered out using a bitwise operator before the other variable may be accessed). (Also note that I plan to change it so that the redstone flag is 0xf and the other flags are 0x0-0x11)
Anyway, the block currently renders in both the on and off state, and assumes the correct positions for a piece of rail. It even has that redstone dust, as well. However, I have yet to add minecart physics to it, so, at this point, a minecart will hit it and simply stop.
I've already added all the necessary setup for the other two rail pieces (a full stop brake and a slowdown brake. The slowdown brake has been removed from the spec, but I know what I have to do for that one), so all that I need to do is clone my current class, modify a few things visually, and add the clones in under different ids.
Anyway, enough with the programming bullshit you guys probably don't care about, and on to the pic I wanted to share. I have plans to separate out the actual redstone "bulb" from the rail, and render it the same way a spider's eye is rendered, so that it can be lit without making the whole track piece glow. (And so that, if you're unfortunate enough to look up at the track from below, all you see is the casing for the so-called bulb.) Actually, I also have plans to setup all rail pieces to render the same way items are rendered, so that they aren't just a completely flat plane. (Though, I'm going to cheat and actually set mine up with three layers. First will be the railroad ties, second will be the rails, and third will be the bulb. To keep that from taking waay too much space on the texture image, I'll be breaking them out into their own texture image, complete with the same handling found in items so that if you have a high-rez texture pack, you can port the image for the mod)
I guess I lied about being done with the programming stuff, huh?