Closed richardhendricks closed 6 years ago
@bucketking1 I have confirmed an issue with the ore finder wand.
Gregtech ores are weird, they don't "exist" in the world until they have a block update done to them. This helps prevent x-ray utilities from cheating etc. Unfortunately as a side effect, this means the orefinder wand will not find oreveins if the orevein does not touch air somewhere. I have confirmed this is true.
no response, no exposed chalcopyrite
small response, 1 exposed chalcopyrite
Response increases as more chalcopyrite is exposed.
How do the scanners work then?
Scanners probably just repeat oregen code.
They weren't using the same code, the IFU I was just doing a string compare against "gt.blockores", the scanner actually does an "instanceof GT_Block_Ores_Abstract." Trying a fix now.
@bartimaeusnek This one is beyond my ability. Best I can tell, the Detrav scanner uses network packets to send the ore data to the client. The basic orefinder doesn't support sending/receiving network data, so it only has the local data for the blocks. Unexposed GT oreblocks don't have any ore-specific metadata yet, so you don't get any information on them.
OK, I have a kludge tested, it seems to work much better. Not ideal, but good enough I think. Tested with SSP, will push branch once I test it on private server.
This explains a lot, lol.
hmm, doesn't work if a different background color is used, will need to look at that tomorrow and test on a remote server as well.
OK, code will now detect any background ore type with another background ore type
Bad news though, my changes don't work on dedicated servers. Need to spend more time to investigate implementing client/server packet passing code similar to Datrev scanner.
Set the damage from the server to notify to the client the level to activate
http://www.minecraftforge.net/forum/topic/40083-110-onupdate-and-onitemuse/
Change max damage to match finding level
PR with fix has been merged.
Player had to search 100 oreveins to find copper
-8878552644668538540 location 753 -1303