Never mind, since I couldn't change the ID related to your mod, I've changed the ID related to the other that was conflicting and preventing me for doing a diamond meter and it is working well now. Thanks.
Yesterday while at work I started some work on enhancing the original textures to 64x. I got home and decided to get into it a bit further, and possibly went overboard, lol. I really got into it since it seemed kinda easy to create a variety from the same base template, for the most part.
Here's a link to a ZIP containing 7 total different varieties of textures for Diamond Meter mod. You must only install one into the Diamond Meter mod ZIP folder, replacing the old textures. All but the one set mentioned above are 128x textures. This is my first contribution to the community. I hope you guys find a set to your liking!
If the OP/Author would like to link in the OP, that would be way cool.
I hope you don't mind, I took the files you sent me, and split them up into files that you can just drop into your mods folder, and put them up on the OP. They are through bit.ly, so no profit is made on my links for those.
Why the redstone torch?
I would say replace it with a clock cause a clock has gears etc.
And i am also making an alternative 16 * 16 texture.
But still good mod, and getting into the DNS techpack is great!! Edit: here are some textures
inspired by ToadR's
I also put yours into a drop in file, and put it on the OP. Thanks!
Diamond meter is a device that, when held in your quick-bar, will indicate if there is any diamond ore near to you. Cause lets just admit it, all of us have better things to do than strip mine the bottom 10 layers of your world, looking for diamonds.
This will be my first mod for Minecraft, so enjoy, be patient if you have any issues, and of course, leave comments about how you like it, improvement suggestions, bug reports, etc.
Download
[MC 1.4.5 Forge] Diamond Meter 2.1.4: (Adf.ly) (Link Removed)
SCMowns has made a tutorial on how to install Modloader and the diamond meter mod directly into your Minecraft, as well as a demonstration of him using it. While your at it, check out some of his other videos and tutorials, its a great place to start if you want to learn how to mod Minecraft.
2.1.2 (1.4.2 Forge) (Adf.ly) (Link Removed)
-MC Version 1.4.2 Forge-Exclusive
2.1.1 (1.3.2 Forge) (Adf.ly) (Link Removed)
-Converted the mod to Forge compatible
2.1 Client (1.3.2 ModLoaderMP) (Adf.ly) (Link Removed)
2.1 Server (1.3.2 ModLoaderMP) (Adf.ly) (Link Removed)
-Updated for MC 1.3.2
-[bug fix] Fixed a small issue that throws an exception in the console, but did not affect functionality
2.0 Client (Adf.ly) (Link Removed)
2.0 Server (Adf.ly) (Link Removed) [Client]
-right clicking with diamond meter selected will reload config
-added support for retreiving server config
-added option to have sounds play for each state change (disabled by default, go into config and change playSound to true)
-[bug fix] added check to make sure config file is not trying to load a string into an integer or float
1.1.1 Client (Adf.ly) (Link Removed)
1.1.1 Server (Beta) (Adf.ly) (Link Removed)
-Updated client version number to match server version (no other changes done)
-Created a server version of the mod to be used with ModLoaderMp
1.1.0 (Client) (Adf.ly) (Link Removed)
-Added a config file to set Block ID of block to look for and distance to look
1.0.0 (Client) (Adf.ly) (Link Removed)
-First version of Diamond Meter
Installation
This mod is designed for Minecraft version 1.4.5, and requires Forge (latest 6.4.2.XXX) installed first to work.
To install, once you have installed Forge, simply copy the "DiamondMeter X.X.X.zip" file (replacing X.X.X with the version number) into the mods folder. On a windows machine, it is found at "%appdata%\.minecraft\mods\" (without quotes) by default.
Texture Packs
If you are interested in this mod, but want a different texture for the diamond meter, here are a couple custom texture packs made by fans:
Installation
You can install these textures the same way as the mod, by either putting it into your mods folder (along with the Diamond Meter mod), or copy the files directly into the mod zip, overwriting the current textures.
Downloads: Link Removed Link Removed Link Removed Link Removed Link Removed Link Removed Link Removed
These texture packs have 64x64 and 128x128 textures, and may not work properly with texture packs that are lower quality than this (pack sizes are labelled).
Crafting
Some people are probably thinking "Diamond meter? That's cheap!", but you actually need a few diamonds to construct it (11 total).
The recipe is:
Usage
To use this tool, simply have it on you while walking around in the bottom layers of the overworld. It will change colors based on how close you are to diamond ore. It is best to keep it in your quick-bar, but it will update as long as it is in your inventory. (Images below)
1 Block away (practically looking at it):
2-3 Blocks away:
4-5 Blocks away:
6-8 blocks away:
9+ Blocks away (no diamond ore close by):
Config
This mod has a config file that can be modified to get different effects. It is located in your MineCraft folder (%appdata%\.minecraft by default), and is named DiamondMeter.txt. In this file, you will see a few settings, in the format <setting>=<value>. If at any point you wish to restore the default value for a setting, delete the line for that setting, save the config file, and restart the game (or "use" the Diamond Meter to reload the config).
Please keep in mind that "Diamond Meter" was designed with the default values. The config was added to allow users to customize as they please.
The settings have these effects:
toFind (default 56): the block id to look for. distanceMax (default 8): changes the maximum distance to look for the block. Setting this too high may crash your game, so keep it within reason.
playSound (default false): tells the Diamond Meter whether or not to play a sound every time it transitions. soundVolume (default 1.0): changes the volume level of the Diamond Meter (if enabled). soundFurther (default note.bd): this is the sound that plays everytime the Diamond Meter transitions down (further away) soundCloser (default random.pop): this is the sound that plays everytime the Diamond Meter transitions up (closer)
Reviews
A bunch of people have made some helpful reviews for this mod
fullmetalDrake posted a video using the latest ModLoaderMP version (2.1), check it out here:
any chance of a server-usable mod for this? me and a few friends are trying to setup a server with a bunch of mods and its a shame this one doesnt work yet (btw, its 1.4.5 server)
any chance of a server-usable mod for this? me and a few friends are trying to setup a server with a bunch of mods and its a shame this one doesnt work yet (btw, its 1.4.5 server)
This should work on a server. I just tested it on a vanilla server with forge build 445, and it worked for me. How is it not working, do you have an error log?
I installed the new version of Diamond meter and got this error. I did a clean install of the game (erased minecraft folder) ant then installed Forge (for ver1.4.6) buildcraft (ver 3.3.0) and your mod (version 2.1.5). When I erased your mod minecraft doesn't crash. I was using the 1.4.5 version of your mod up until yesterday and I do like it.
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Failed to start game
A full error report has been saved to C:\Users\Bill Schmitt\AppData\Roaming\.minecraft\crash-reports\crash-2012-12-24_03.53.35-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash
--- BEGIN ERROR REPORT c65b74fe --------
Full report at:
C:\Users\Bill Schmitt\AppData\Roaming\.minecraft\crash-reports\crash-2012-12-24_03.53.35-client.txt
Please show that file to Mojang, NOT just this screen!
Generated 12/24/12 3:53 AM
-- System Details --
Details:
Minecraft Version: 1.4.6
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_07, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 385020600 bytes (367 MB) / 514523136 bytes (490 MB) up to 954466304 bytes (910 MB)
JVM Flags: 2 total; -Xms512m -Xmx1024m
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.25 FML v4.6.12.511 Minecraft Forge 6.5.0.471 10 mods loaded, 10 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML [Forge Mod Loader] (coremods) Unloaded->Constructed
Forge [Minecraft Forge] (coremods) Unloaded->Constructed
BuildCraft|Core [BuildCraft] (buildcraft-A-3.3.0.jar) Unloaded->Constructed
BuildCraft|Builders [BC Builders] (buildcraft-A-3.3.0.jar) Unloaded->Constructed
BuildCraft|Energy [BC Energy] (buildcraft-A-3.3.0.jar) Unloaded->Constructed
BuildCraft|Factory [BC Factory] (buildcraft-A-3.3.0.jar) Unloaded->Constructed
BuildCraft|Transport [BC Transport] (buildcraft-A-3.3.0.jar) Unloaded->Constructed
BuildCraft|Silicon [BC Silicon] (buildcraft-A-3.3.0.jar) Unloaded->Constructed
DiamondMeter [Diamond Meter] (pcchazter) Unloaded->Errored
LWJGL: 2.4.2
OpenGL: GeForce GTX 460M/PCIe/SSE2 GL version 4.2.0, NVIDIA Corporation
Is Modded: Definitely; Client brand changed to 'forge,fml'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: pcchazter.DiamondMeter.mod_DiamondMeter
at cpw.mods.fml.common.LoadController.transition(LoadController.java:117)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:484)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:161)
at net.minecraft.client.Minecraft.a(Minecraft.java:410)
at asq.a(SourceFile:56)
at net.minecraft.client.Minecraft.run(Minecraft.java:744)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: pcchazter.DiamondMeter.mod_DiamondMeter
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:179)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:57)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:414)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:478)
... 5 more
Caused by: java.lang.NullPointerException
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at net.minecraftforge.transformers.EventTransformer.transform(EventTransformer.java:29)
at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:222)
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:171)
... 32 more
--- END ERROR REPORT e1914a11 ----------
I've got this error two times while mining using meter, it occures randomly. Please fix it.
Edit: Found source. It happens when you approach diamond ore if you set detector radius at 3. At 4 it works without any problems.
Yep, just looked into it, looks like this is caused by setting the distanceMax to anything below 4. The reason:
I make a variable called distancePerLevel. This variable is used in the determination of which state the meter should be in.
int distancePerLevel = distanceMax/4;
This variable is then used to determine (based on how close the ore is) which state should be displayed.
so if you enter 3 into distanceMax, distancePerLevel = 3/4 = 0.75, and because it is an int, it defaults to 0, and causes a divide by 0 error as soon as you get close to ore.
I will add a failsafe in the next version for this, but for now, try not to make distanceMax anything below 4
I was wondering if you could add an ID part to the config file. One of my mod is having a conflicting ID with the diamond meter, and while its not a huge deal, i dont wanna have to keep flip flopping on making the diamond meter, finding diamonds, removing the mod, then adding it and cheating the meter back in everytime I go mining.
One feature I would love to see is the ability to right-click the meter on a block and re-align the meter to that type of block (much like changing the config but done in-game). Right clicking on something (crafting table perhaps??) will reset it to diamonds. Now an interface where I can add blocks to (by right clicking) then select which one I currently wish to hunt for would be wonderful, but I believe the right-click mechanism described would be a good first step.
1.4.7 version is done. I haven't added any new features, just ported it to 1.4.7. The amount of time I have to play minecraft in the past 4 months, let alone mod, has not been a lot.
Also, I have a new mod that I have had mostly finished for a while, but don't have the time to test, so if there is anyone interested in alpha/beta testing, send me a message. I will choose a group of people every now and then. The mod is titled "Ore Meter", and is a continuation of this mod.
Could you have your mod test if IndustrialCraft2 exists and use an alternate recipe using circuits? It makes more sense (if you're playing with technical mods) to have an electronic device use a circuit. If BuildCraft exists, you could also use its version of circuitry. If both exist, it should be configurable in the config file.
This way it adds a little more depth to the device when playing with other mods.
Hope you like. Either way, this is a great mod.
ok first off i have to say i love the mod its awsome 3 things need a lil tweeking
ill tell you what and then give you a reason to back it up
1 somthing that tells u wether the ore is up or down.....why i just spent literally the last like 15 mins going by the color codes and damb yes you find diamonds but the height deifferenttial is a royal pain in the **** i ruind my mines
make it compatible with other mods say a config to find say iridium or or emrald withc we all know is a royal pain to find.
color scheem need tweeking if ur not cgonn impliment direction to this mod then better implement the color so like say orage is say 8 blocks away but green is within 2 blocks of your current postition
thanks bud good luck with the mod and keep up the good work
So I run a hamachi server so my friend and I can play SMP together and I have this installed and it works.. like it comes up in my Forge on the main screen but when I go to craft it and try to pick it up out of the crafting table.. It doesn't let me select it.. like it picks up then drops back so I cannot get it.
Any help? Thank you for your contribution to the minecraft community
Just out of curiousity, which mod was it?
I hope you don't mind, I took the files you sent me, and split them up into files that you can just drop into your mods folder, and put them up on the OP. They are through bit.ly, so no profit is made on my links for those.
I also put yours into a drop in file, and put it on the OP. Thanks!
Glad you like this, but please don't quote the whole OP.
This should work on a server. I just tested it on a vanilla server with forge build 445, and it worked for me. How is it not working, do you have an error log?
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Failed to start game
A full error report has been saved to C:\Users\Bill Schmitt\AppData\Roaming\.minecraft\crash-reports\crash-2012-12-24_03.53.35-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash
--- BEGIN ERROR REPORT c65b74fe --------
Full report at:
C:\Users\Bill Schmitt\AppData\Roaming\.minecraft\crash-reports\crash-2012-12-24_03.53.35-client.txt
Please show that file to Mojang, NOT just this screen!
Generated 12/24/12 3:53 AM
-- System Details --
Details:
Minecraft Version: 1.4.6
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_07, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 385020600 bytes (367 MB) / 514523136 bytes (490 MB) up to 954466304 bytes (910 MB)
JVM Flags: 2 total; -Xms512m -Xmx1024m
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.25 FML v4.6.12.511 Minecraft Forge 6.5.0.471 10 mods loaded, 10 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML [Forge Mod Loader] (coremods) Unloaded->Constructed
Forge [Minecraft Forge] (coremods) Unloaded->Constructed
BuildCraft|Core [BuildCraft] (buildcraft-A-3.3.0.jar) Unloaded->Constructed
BuildCraft|Builders [BC Builders] (buildcraft-A-3.3.0.jar) Unloaded->Constructed
BuildCraft|Energy [BC Energy] (buildcraft-A-3.3.0.jar) Unloaded->Constructed
BuildCraft|Factory [BC Factory] (buildcraft-A-3.3.0.jar) Unloaded->Constructed
BuildCraft|Transport [BC Transport] (buildcraft-A-3.3.0.jar) Unloaded->Constructed
BuildCraft|Silicon [BC Silicon] (buildcraft-A-3.3.0.jar) Unloaded->Constructed
DiamondMeter [Diamond Meter] (pcchazter) Unloaded->Errored
LWJGL: 2.4.2
OpenGL: GeForce GTX 460M/PCIe/SSE2 GL version 4.2.0, NVIDIA Corporation
Is Modded: Definitely; Client brand changed to 'forge,fml'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: pcchazter.DiamondMeter.mod_DiamondMeter
at cpw.mods.fml.common.LoadController.transition(LoadController.java:117)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:484)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:161)
at net.minecraft.client.Minecraft.a(Minecraft.java:410)
at asq.a(SourceFile:56)
at net.minecraft.client.Minecraft.run(Minecraft.java:744)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: pcchazter.DiamondMeter.mod_DiamondMeter
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:179)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:57)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:414)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:478)
... 5 more
Caused by: java.lang.NullPointerException
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at net.minecraftforge.transformers.EventTransformer.transform(EventTransformer.java:29)
at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:222)
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:171)
... 32 more
--- END ERROR REPORT e1914a11 ----------
Yep, just looked into it, looks like this is caused by setting the distanceMax to anything below 4. The reason:
I make a variable called distancePerLevel. This variable is used in the determination of which state the meter should be in.
This variable is then used to determine (based on how close the ore is) which state should be displayed.
so if you enter 3 into distanceMax, distancePerLevel = 3/4 = 0.75, and because it is an int, it defaults to 0, and causes a divide by 0 error as soon as you get close to ore.
I will add a failsafe in the next version for this, but for now, try not to make distanceMax anything below 4
Best,
Tim
Also, I have a new mod that I have had mostly finished for a while, but don't have the time to test, so if there is anyone interested in alpha/beta testing, send me a message. I will choose a group of people every now and then. The mod is titled "Ore Meter", and is a continuation of this mod.
Could you have your mod test if IndustrialCraft2 exists and use an alternate recipe using circuits? It makes more sense (if you're playing with technical mods) to have an electronic device use a circuit. If BuildCraft exists, you could also use its version of circuitry. If both exist, it should be configurable in the config file.
This way it adds a little more depth to the device when playing with other mods.
Hope you like. Either way, this is a great mod.
ill tell you what and then give you a reason to back it up
1 somthing that tells u wether the ore is up or down.....why i just spent literally the last like 15 mins going by the color codes and damb yes you find diamonds but the height deifferenttial is a royal pain in the **** i ruind my mines
make it compatible with other mods say a config to find say iridium or or emrald withc we all know is a royal pain to find.
color scheem need tweeking if ur not cgonn impliment direction to this mod then better implement the color so like say orage is say 8 blocks away but green is within 2 blocks of your current postition
thanks bud good luck with the mod and keep up the good work
Any clue? Removing diamod meter fixes it.
So I run a hamachi server so my friend and I can play SMP together and I have this installed and it works.. like it comes up in my Forge on the main screen but when I go to craft it and try to pick it up out of the crafting table.. It doesn't let me select it.. like it picks up then drops back so I cannot get it.
Any help? Thank you for your contribution to the minecraft community