So, there was a request a couple of days ago to add a new material to the game -- marble. I thought it was a lovely idea, so I did.
The beautiful texture I'm using for it was created by Deyl later on in this thread.
(I was originally using some by ExcitedPeasant, whose textures partly inspired the project. You can still find those in the original request thread.)
What this mod does: Adds a marble block to the game. (Actually, three blocks -- different colors of marble.)
So how does that work in game, exactly?
Well, marble is a new block, not a skin on any of the old ones. So your game will be the same, plus it'll have marble.
It's pretty common underground, and will appear rarely on the surface at cliff faces. You actually don't see it all that often, but when you do, there's a lot of it.
You need an iron pick or better to mine it. Beyond that, it's like stone in most ways.
There aren't any recipes or anything for it. It's for building.
Compatibility: Does it work with the current version of Minecraft? Last updated for the Nov 10th update (texture packs).
Does it work with other mods? Always check the list of files that both mods change. If there's any overlap, they won't work together. Some mods have been merged with Marble; there's a list at the bottom of this post. I also do merges upon request if they aren't too hard.
Does it work with texture packs? Well, it does use the terrain.png file, so not out of the box. But you can edit the terrain.png of a texture pack to include the marble textures, and then it'll work. Just be sure they're in the right size and in the right spot.
Does it work with HD texture packs? As well as it does with any other texture pack. You have to edit the terrain.png yourself, and make sure you have textures that are big enough and in the right location. If you do that, testing shows that they do work together.
Does it work with modloader? I haven't tested it, but I don't think they affect each other.
Does it work in SMP? Unknown. If you find out, let me know.
What happens to my save files? THIS MOD CORRUPTS SAVE FILES. You can load and save a level with marble in it as long as you have the marble mod installed. If you try to load it with vanilla Minecraft, the game will crash. Don't play any worlds you're not willing to lose. Really, I recommend starting a fresh world anyway, so there's marble in it :biggrin.gif:
Support: Will you update this mod whenever a new version of Minecraft comes out? For the next few weeks, yes. Late November/early December, I expect I may be too busy to do so.
Do you mind if someone else updates or changes this mod? Nope. PM me and I'll even send you the current source code. (Old source code already released later in the thread for study).
Are you taking requests to improve this mod? If it's cool and easy to do.
Requests (in rough priority order)
- Resolve conflict with Biome Mod. [Implemented]
- Resolve conflict with Light Sensor. [Deferred]
- Resolve conflict with Redstone Torch Give Light. [Implemented]
- Resolve conflict with Paint Your Blocks. [Investigating]
- Create script to remove marble from a world. [Investigating]
- Make marble draw textures from a separate file. [Investigating]
You don't find marble very often, but when you do there's a lot of it. Sometimes you see it on exposed cliff faces on the surface.
If you build with it, it's purty.
Update Nov 12th
- Made compatible with Biome Mod
Update Nov 10th
- Rolled to new Minecraft version
Update Nov 9th
- Made marble easier to mine. A lot.
- Made the pickaxe an 'appropriate' tool for mining marble. (Yeah, that's a big piece of why it was so slow before. Oops!)
- Included Deyl's pretty textures in the default release.
- (Update applied to all variants (small & litRedstoneTorch)
UPDATE (Nov. 8th)
Marble now comes in three flavors: dark, light, and red. Dark and light may be found aboveground on cliff faces. All three may be found underground, though light is rarer underground.
Also, the texture for red marble is a stellar example of what happens when you let programmers make textures. (Somebody said filter->render->clouds? I don't think that's what ExcitedPeasant did, but it sure is what I did...)
(Also I tweaked the shape of the marble deposits a bit. But nobody cares about that.)
Back up your Minecraft.jar. Download the .zip file below, extract the files, and add them to your main Minecraft.jar. Remember to delete everything in META-INF.
As plugin to Biome Mod: http://dl.dropbox.com/u/14622891/MarbleMod/MarbleMod_BiomeCompatible.zip
- Install Biome Mod
- Install Marble Mod on top of it. (Only one class should conflict: MarbleWrapper.class. You need MarbleMod's version of this file).
- Double check the biomesettings.txt in .minecraft -- you need the line "UseDrakonaMarbleMod:true" in there.
Making a texture that can do that is part of the mod. Minecraft can't normally do that. The textures ExcitedPeasant made were so pretty in the large versions, I couldn't bear to scale them down.
The marble block is cool but what im really interested is this mod... can you change lava so it doesnt tile so ugly'ly?
The principle could be used on any block. So long as you didn't run out of space in terrain.png, you could tile an arbitrarily sized texture (well, a multiple of 16 pixels) on any block type using the same algorithm. The texture doesn't even have to be square.
Bear in mind, though, that any texture larger than 2x2 won't always tile going around corners. The marble texture is 4x4 and the effect looks somehow appropriate on marble. It might be more jarring if you wanted a big tile for something like bookshelves, though.
Is there interest in providing general support for this? I could make the algorithm generic and include it in ne.java. I can't think of an easy way to make it entirely data-driven; you'd still need to modify the code to tell it the new location of the block texture and its size.
And if you were looking at a block that already has complicated texture code -- something like grass's block sides or lava's animation -- it might need extra integration to work. But I bet I could do it for the simple textures.
But if I made something like this...
/* 87 */ public static final ne u = new ck(1, 1).c(1.5F).b(10.0F).a(i).multitile(135, 4);
Hmm... The texture isn't so nice for me, I might change it to a purer white for a 'White Cliffs of Dover' feel... Looks nice though.
Yeah, I see what you're saying.
There's only one thing to do: make TWO different marble blocks, one dark and one light. I was thinking of doing something like that anyway -- in the real world, some really pretty and interesting marble types often come from a specific location, and are rare. Maybe I could make a black one with red veins or something... hmm...