9

I have written a mod to produce a new ore which is working great. Then I added some more code so that veins of this ore would be randomly generated. I cannot tell if this is working as I cannot find any veins.

Is there a cheat in vanilla minecraft that could help me find a vein?

Many thanks

  • 12
    why don't you just make the "generation" code at just above ground level, to see if it works. Then generate "normally"? – Rapitor Jun 17 '14 at 13:16
15

One possible testing solution could be to edit your texture file and turn everything except for your new ore transparent. Then whenever you want to see where the ore has been placed, change skins back and forth between the transparent one and the original.

This solution isn't directly vanilla, but it is at least within the bounds if vanilla by just being a texture pack.

  • This is really smart, and editing the texture file is really quick and easy. – Rapitor Jun 17 '14 at 15:44
  • 1
    I'm pretty sure this doesn't reveal ores that are buried unless they touch air. (Though I have seen it work for blocks that touch air) – Mooing Duck Jun 17 '14 at 16:49
  • Also in upcoming versions, blocks that are not visible will not be rendered, meaning that transparent X-Ray texture packs will be useless. – David Wilkins Jun 17 '14 at 17:17
  • 1
    @DavidWilkins I didn't know this. That makes sense though. Should make the game run more efficiently as well – Cruncher Jun 17 '14 at 17:19
  • 2
    @davidwilkins does that mean that the massive land pop-in during initial world generation will be gone too? I haven't played in a while. It's unfortunate that X-ray textures will stop working, but I guess it's for the best in terms of balance. – zero298 Jun 17 '14 at 17:21
9

The simplest and most reliable way is to simply print each ore vein's coordinates to the console when it's generated, so you merely have to enter creative mode and teleport yourself to one of the veins. This way, you'll get every single vein reliably and just by adding a single line of code to the ore generation.

8

If you have access to WorldEdit, try selecting a rather large area, and use the //count command to count all blocks with the ID of your added block.

EDIT: I missed the part where it had to be Vanilla. No, there is nothing in Vanilla Minecraft which allows you to do this. You could try using something like MCEdit to search for the correct block ID. Or just go into Creative, and blow a huge hole in the ground with lots of TNT. Should speed up the search significantly. You could temporarily set the ore's hardness higher for better results, depending on how rare the ore is.

  • 1
    He said vanilla minecraft – RandomDisplayName Jun 17 '14 at 13:57
  • Right, I had missed that. Apologies. – Hugo Zink Jun 17 '14 at 14:04
  • 5
    That is a rather silly restriction though... it's already not vanilla minecraft, because he has modified it himself. In addition, since WorldEdit is server-side only it passes some definitions of 'vanilla' since the client does not need to have it installed. – Myrddin Emrys Jun 17 '14 at 14:05
  • @MyrddinEmrys exactly what I was thinking, though something like Bukkit sort-of already crosses over into non-vanilla. And it's going to be exceptionally difficult to get said mod into Bukkit without prior experience. – Hugo Zink Jun 17 '14 at 14:07
2

Just make the ore generate 1000 times per chunk! That's what I did. I then changed it back to 10 times per chunk for the actual mod release (it's in beta testing with my friends right now). If it spawns 1000 times a chunk, it'll be really easy to find.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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