[INACTIVE][MECH] MineralScanner 1.21- Directional scanning for minerals [RB 531+]

Discussion in 'Inactive/Unsupported Plugins' started by lostaris, Feb 21, 2011.

  1. Offline

    lostaris

    Works in minecraft 1.3 crafbukkit builds (419+)
    Now with group manager permissions support

    At a glance:
    • Scans when right clicking on a block when you have a compass in hand
    • Scans for coal, iron ore, gold ore, diamond ore, redstone ore and lapis lazuli ore (configurable)
    • Types beep in chat if there is the above in the direction you are facing
    Features:
    When a player has a compass in their hand and right clicks on a block it will scan blocks in that direction. It scans horizontally 3 blocks away at head and foot height, and 2 blocks away one block above the players head and below their feet. If there is at least one block of coal, iron ore, gold ore, diamond ore, redstone ore and lapis lazuli ore in a cone in the direction the player is facing it will type BEEP in chat. It will not type anything if none of these is found.
    Alternatively players can type /scan to get the same results.

    Usage:
    Right click while holding a compass (item is configurable) to scan in the direction you are facing, or type /scan.
    [​IMG]
    These are the areas that will be scanned at head and foot height.
    For example: if you stand on the white block and point in the general direction of the yellow blocks, it will scan the yellow blocks. If you are pointing in the general are of the blue blocks it will scan the blue blocks.
    Note: the blocks with the torches on them are not scanned at one below feet level or at one above head height.

    /scan reload will reload the config.

    Set up:
    Put the MineralScanner folder in your plugins directory.
    In the Config.properties scanItem is the item id of the item you wish to use to scan with on right click.
    blocks is a list of the block ids you wish to scan for separated by commas.

    Permissions:
    Uses group manager.
    Nodes available:
    MineralScanner.scan - allows the user to do scans
    MineralScanner.reload - allows the user to reload the config

    ToDo:
    Add option to play a beep sound instead of to chat.
    Configuration on what blocks to look for.

    MineralScanner v1.2 requires build 400+
    http://www.mdn.fm/files/270853_wbbry/MineralScanner V1-21.zip

    for previous builds
    http://www.mdn.fm/files/264123_9much/MineralScanner old.jar


    Changelog:
    27/2 - v1.21
    • Fixed NULL error
    27/2 - v1.2
    • Added group manager permissions support
    24/2 - v1.1
    • Added configuration
    • Added ability to set what item to scan with on right click
    • Added configurable list of blocks to scan for
    • Added reload command
    22/2 - v1.0
    • release
     
    Psychotonikum, Parideis and Guest like this.
  2. Offline

    Silvo

    could this conflict with plugins that alter compass behavior, like MyHome, when compass shows at your set home coordinates?
    Trying out doesn't hurt ^^
     
  3. Offline

    lostaris

    It doesn't conflict with MyHome, but it will conflict with any plugin that also does something when right clicking while holding a compass.
     
  4. Offline

    Nukeofwf

    BIG issue i have here.
    running build #403 jenkins.
    when i activate my mineral scanner, instead of a beep or nothing, when moving chat spams 'facing <blocktype>' like air, stone, etc. etc. issues with how it returns data? just thought you should know.

    edit: corrected bukkitversion.
    edit again: updated cb #415, still no dice.
     
  5. Offline

    lostaris

    Fixed. Stupid site didnt update the file to download properly.
     
  6. Offline

    arishoham

    Works great! except would it be possible to change what item you use? it conflicts with world edit, so if possible can you use a watch?
     
  7. Offline

    lostaris

    This sort of thing will come when I put in some configuration in the next couple of days.
     
  8. Offline

    rolli01

    when i have the compass in my hand and typoe /scan or right click mit compass, nothing happens at all ?? what could be wrong ?
     
  9. Offline

    lostaris

    Nothing happens if there is no coal, iron ore, gold ore, diamond ore, redstone ore and lapis lazuli ore. Try placing a block of one of these and test from all 8 directions, if it still wont type beep, or only from some directions let me know.
    --- merged: Feb 24, 2011 6:53 AM ---
    Added a configurable list of blocks to look for.
    Added the ability to change which item you scan with.
    Added a reload config command.
     
  10. Offline

    Plyz

    Permission support, and this is gonna go on my server ;)
     
  11. Offline

    lostaris

    Done using group manager :)
     
  12. Offline

    MCMaG.jp

    Can you explain how this is works?
    Why here is BEEP?
    [​IMG]
     
  13. Offline

    Plyz

    Now we just need permission 2.0-2.1 support ! hurra :)
     
  14. Offline

    lostaris

    In this picture its probably above the torch you can see. If not please test by placing a ore block on the ground and test that it properly beeps in all 8 directions around the block (4 sides and 4 diagonals).

    Added picture to help show what areas are getting scanned.


    permissions 2.0 wont work past build #449 and 2.1 is kinda buggy still, Im also not really wanting to support something the guy who made it isnt supporting any more.
    Give group manager a go, it uses the same permission file :)
    --- merged: Feb 27, 2011 1:31 AM ---
    Updated link to point to the correct file.
     
  15. Offline

    Soul Reaper

  16. Offline

    TheMap

    This is what I get when I try to run it. Running recommended build CB. Permissions 2.0 with Groupmanager. I have everything default and I removed the last 2 blocks from the scanner.

    Code:
    [SEVERE] null (Is it up to date?)
    java.lang.NullPointerException
    at com.lostaris.bukkit.MineralScanner.MineralScanner.setBlocks(MineralScanner.java:188)
    at com.lostaris.bukkit.MineralScanner.MineralScanner.onEnable(MineralScanner.java:56)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:426)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:79)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:60)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  17. Offline

    lostaris

    Post a link to your config.properties please.
    --- merged: Feb 27, 2011 6:48 AM ---
    Fixed
     
  18. Offline

    koneko

    Greetings! I can't wait to get this plugin working for my friends and I. However, due to the other plugins installed for necessity (e.g. WorldEdit as req'd for other server protections) I have plugins fighting for the use of the compass!

    I was wondering if there is any way to change what item is used to 'scan'? Obviously, I'd prefer to just use the compass, but given the fact it's a set area just in front of you when using it, would it be reasonable to try using something else, even a watch?

    Because of this issue, right-clicking the compass does not work for me, however typing '/scan' does get BEEP responses (however annoying it is to type it again and again lol).

    Thanks for the hard work!
     
  19. Offline

    lostaris

    You can change what item it uses, change the scanItem to the itemid of what you want to use.
     
  20. Offline

    koneko

    @lostaris Really? Haha.. I didn't notice this before. I'll be sure to take another look and give it a try. :) Thanks!
     
  21. Offline

    gazius

    Would it be possible to set this up so that after several uses it would consume whatever you're using to search?
     
  22. Offline

    lostaris

    Like you described no, too much overhead on recording how many times its been used.
    But costing items/iConomy cash on each scan is much more doable.
     
  23. Offline

    snopey1

    I don't know if this happened for anyone else, but it did kind of make me laugh, the default item for scan was the clock, not the compass, for me at-least.

    suggestion though, could u make it possible to use one or the other at once. What I mean is, let me set it up so that the compass scans for one thing and the clock scans for other things. since the compass is rather easy to get needing only 4 iron ingots and 1 red stone I would like it to only BEEP for coal, and Red stone. and have the clock scan for iron ore, diamonds, and gold. since getting 4 gold usually takes more time to get. (for me anyways -.-)

    thanks for the plug in [​IMG]
    but now there is no more "just one more block" moments... but now there is a lot of "just 4 more blocks..." [​IMG]
     
    jugglerrob likes this.
  24. Offline

    Owl

    I'm not sure why, but I seem to sometimes have to face the opposite direction of a mineral, or at a right angle to the mineral to get a beep. Any idea why this might be? Bukkit version 458. I think.
     
  25. Offline

    lostaris

    @Owl
    Uggh I was hoping this wouldn't happen. There seems to be a very very rare bug where some people get directions that it scans mixed up and only on certain servers. Send me a pm on which directions dont work properly and what directions it scans instead and I can do a custom jar for you.
     
  26. Offline

    koneko

    Uh oh - having the 'backwards' issue as well. I can be standing right in front of some ore and I get nothing. If I flip around and point downwards, then scan, it beeps. =/ it doesn't seem to be happening all the time, however, but rather seems to "glitch," sometimes reverting to normal based on my experiment below.

    EDIT:

    Coal is around me in a wall. As I face west, it is above me, to my top left, and to my direct left.
    X X -
    X 0 -
    - | -

    Most often... these were consistent:

    Facing West w/ coal at left @ level = nothing
    Facing East @ level = nothing
    Facing East down = BEEP
    Facing South to coal @ level (in front of me) = BEEP
    Facing North away from coal = nothing
    Facing Up to coal = nothing
    Facing Down under coal = nothing
     
  27. Offline

    lostaris

    @koneko @Owl
    Before I do anything further does this happen just for you, or everybody on your server? If its just you there isnt a whole lot I can do, but if its your entire server then its a simple fix.

    On my test server I had issues like this too, to fix for me would mean anyone else would not be able to scan properly, but on the main server I use it would work just fine for everybody including me. I have also noticed that for everyone who has had issues has had issues in different directions. I really have no idea why its like this for some people.
     
  28. Offline

    Owl

    @lostaris

    Ah, only for me as far as I know, but I've been the only person to try the scanner out. I'll get back to you when I find out if it's server wide or not.

    EDIT: Ahh, it seems to have fixed itself when I updated to the March 3rd build of Bukkit. Thanks for the help anyways~
     
  29. Offline

    koneko

    Thanks for the reply. I had noticed briefly that someone else mentioned it and, honestly, we haven't really used it yet. My bf had been excited at the idea of a mineral detector of sorts since Notch mentioned he might integrate it himself so I snagged your lovely plugin as a surprise. Thus far, however, I've only been recently testing it and have been the only one to try it. I'll inform the others we play with to test it out a bit, to see if there's a consistency.

    My tests have only been a few thus far, but it seems to be haphazard. Typically it seems to be OK spotting minerals. Other times, I dig and dig.. then there's nothing. I try scanning around me - nothing. I back up - nothing. It's like it never existed. I'll explore around me, then get a BEEP again. Sometimes I find it, sometimes not. When I see open-faced minerals I try to always test the scan, but sometimes, like with my earlier coal example, it'll see it.. then not see it. After swapping directions and trying multiple scans, it seems to right itself. It's very odd.

    Would it have anything to do with standing fully on a block or partially over a couple?

    EDIT:
    I've re-read through your descriptions and reviewed the picture for explanation of where it scans, but I'm getting a little confused. From how I see it, it sounds like it scans out in a cone with an empty center. For example, blocks directly in front of you are scanned head and foot level. Next level out/away are scanned the next level up or down from head/foot level. However, based on this, I would not expect the scanner to scan the head/foot levels two blocks away from me. Are these levels not scanned?

    Also, the one direction we're seeing issues with is West. It's not 100% consistent and we've only just begun testing, but it seems to happen most that way. I'll keep you updated.

    I'm happy to help test things, but it's difficult to know what to look for other than BEEPs. Hehe.. You'd be welcome to come test sometime, too, if you like.

    Thanks again!
     
  30. can you please make, that you are able to set more items,but for each item a other mineral scanner.
    example:
    clock for gold,cole
    compass for Diamond

    that would be nice :D
     

Share This Page