[INACTIVE][FIX] LapisRedstone v1.0.7 - Get Lapis Ore from your redstone! [406]

Discussion in 'Inactive/Unsupported Plugins' started by Nodren, Jan 20, 2011.

  1. Offline

    Nodren

    LapisRedstone - Get Lapis Ore from your redstone
    Version: v1.0.7

    IF YOUR UPGRADING FROM 1.0.3 OR LOWER, MAKE SURE YOU DELETE THE PLUGIN THEN EXTRACT THE NEW ONE!


    Quick Links:
    So you spawned your map before the latest update, or Lapis is just to rare for your liking, this plugin will resolve that for you! Install this plugin and when mining redstone, you can receive a random number(configurable) of lapis along side your redstone, perfect for any world that is lacking lapis ore!


    Features:
    • Drops a customizable amount of lapis ore when mining redstone
    Changelog:
    Version 1.0.7
    • Updated for compatibility with latest Bukkit
    Version 1.0.6
    • Small fix with dropping lapis
    Version 1.0.5
    • Lapis drops more naturally instead of in a clump
    Version 1.0.4

    • Fixed configuration bug, had to add proper caps to jar file. see note above about upgrading
    Version 1.0.3

    • Moved config to appropriate location
    Version 1.0.2

    • Fixed bug where this wasn't playing nicely with other plugins.
    Version 1.0.1

    • Fixed bug with loading config
    Version 1.0

    • Initial Version
     
  2. Offline

    al4nw31

    Nice...
    I needed this.
    Lapis is wayyyy too rare.
    Thank you!
     
  3. Offline

    SeeD419

  4. Offline

    arthoz

    Thanks, a part from not reading the config files and just using 2-4, it works fine on my build 115.
     
  5. Offline

    Nodren

    it shouldnt affect a block not breaking. it only monitors the event and doesnt change it, perhaps something else is causing that issue?
    --- merged: Jan 21, 2011 9:24 PM ---
    thanks for catching that, I updated and fixed it
     
  6. Offline

    SeeD419

    It was XD

    I was testing this with the Skills plugin also. Might want to note that it doesn't play nice with skills. It basically creates a glitch for infinite lapis.
     
  7. Offline

    Nodren

    Ill look into it thanks for finding that out!
     
  8. Offline

    Nodren

    I fixed this bug, thank you for reporting it!

    updated, moved config to appropriate location.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  9. Offline

    AndyPandy89

  10. Offline

    grinch843

    Great Plugin, works great.

    Got a suggestion, what about adding lightstone dust to the mix since we don't have access to the netther yet in smp.

    Grinch843.....
    --- merged: Jan 24, 2011 3:47 PM ---
    Better yet, add the ability to change the "source" block in case someone wants to use something beside's redstone, ie gold, diamond, coal etc. I'd limit it to ore blocks only, don't want to make it to easy :).....

    Grinch843....
     
  11. Offline

    Nodren

    I think lightstone is a different problem, this is aimed to solve the problem of not accessing a material that isnt meant to be rare online but just isn't available because the map was generated already. I may look into making a plugin to solve the lightstone problem, but then the question is raised, what about soulsand or nether rack? given there are a few new types of materials we get from hell it may almost make sense to have something like the biome terrain mod generate a hell biome inside the normal world instead of it's own world
     
  12. Offline

    grinch843

    Hmm, forgot about the rest of the stuff in the nethers. A separate plug-in for these items would be a good idea for a temp fix until we have access. Stone could give out nether rack, gravel gives out soulsand and coal gives out lightstone dust. I was just gonna put down some chests and fill them with lightstone myself for my users, but with a plug-in like this at least they would need to work a little for the stuff....

    Grinch843....
     
  13. Offline

    Gorfob

    This does not seem to be working on my server.

    EDIT: I am actually functionally retarded. Helps if you put the plugin in the actuall plugin directory.
     
  14. Offline

    SeeD419

    Github is down for maintenance, right when I go to do an update :(

    Shucks, I wanted to re-test with skills plugin
    --- merged: Jan 25, 2011 8:24 AM ---
    Jan 25, 2011 2:21:45 AM org.bukkit.plugin.SimplePluginManager loadPlugins
    SEVERE: Could not load plugins\lapisredstone.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:83)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:117)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:82)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:43)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
    at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:81)
    ... 8 more
    Caused by: java.lang.NullPointerException
    at org.bukkit.util.config.ConfigurationNode.getProperty(ConfigurationNode.java:32)
    at org.bukkit.util.config.ConfigurationNode.getInt(ConfigurationNode.java:108)
    at com.echo28.bukkit.lapisredstone.LapisRedstone.<init>(LapisRedstone.java:44)
    ... 13 more
     
  15. Offline

    Nodren

    sounds like you didn't drop the LapisRedstone folder(from the zip) into your plugin directory.
     
  16. Offline

    barghest

    Hello sir. I really enjoy the idea for this plugin, but I love lapis rock's current rarity. It definitely makes things more interesting. It's exciting to find a lapis rock at this point.

    What I'd like, though, is a version of this plugin that simply causes lapis ore block destruction to drop "4-9 lapis dye" the way the wiki says it should - the way it apparently actually does in single-player since 1.2_02. Can I beg you for this? ;)
     
  17. Offline

    Nodren

    if SMP isn't dropping the right amount this sounds like a bug in bukkit, i recommend reporting that. as for my plugin, you can configure how much lapis is dropped.
     
  18. Offline

    portstevo

    This plugin gets the same error (as posted by SeeD419) as your vanish plugin in that it is looking for "lapisredstone" folder but your zip includes "LapisRedstone".

    Please update :)

    Also noticed that when you are using WorldEdit's superpick you only get redstone.
     
  19. Offline

    barghest

    It's a vanilla bug and they know about it :) I'm sort of suggesting really slightly modifying your plugin (changing the affected block from redstone ore to lapis ore, and putting a specific drop count range in there based on vanilla's behavior) in order to sort of work around this ... glitch? Issue... whatever.

    It's not that it should be done this way or anything. I like your plugin just the way it is and don't mean to ask you to change it. I just thought... this code could be changed very slightly to 100% accurately emulate vanilla SP behavior, which happens to be a thing that interests me enough to request it.

    I meant to ask for a 'fork' with a couple lines changed, not for you to change the whole thing's operation just for me. I'm no punk. :p
     
  20. Offline

    Nodren

    ahh wasn't aware that bug existed.
     
  21. Offline

    barghest

    It took me a little bit of googling and reading to track it down. Reports were conflicting, some people were saying it drops 4-9, others were complaining it dropped 1, but apparently it narrows down to simply playing multiplayer versus not playing multiplayer. In singleplayer, the 1.2_02 update seemingly included a fix for lapis drops, but the server is still at 1.2_01 - my hypothesis is simply that Notch forgot he made a bugfix, so he didn't update the server when he updated the client for the Amazon cloud update. And of course CraftBukkit's based on the current server version, so there you have it.
     
  22. Offline

    Nodren

    fixed the config problems, make sure you delete the plugin jar file before extracting the new version
     
  23. Offline

    Nodren

    updated with a minor change
    --- merged: Feb 3, 2011 7:19 PM ---
    updated with a small fix for dropping lapis
     
  24. Offline

    King of Koopas

    I like the idea, however is it possible to make a plugin that releases more then 1 lapis from lapis blocks? This would tie everyone in till Notch fixes the big himself.
     
  25. Offline

    Nodren

    yeah that's possible, i'll probably include that in my next version
     
  26. Offline

    GDorn

    See ExcessLapis.
     
  27. Offline

    King of Koopas

    I"ll see if it still works
     
  28. Offline

    GDorn

    Sorry, I spoke to soon. I didn't realize it was discontinued and broken in more recent Bukkit builds.
     
  29. Offline

    King of Koopas

    Yup just tested it an it's broken, so I'll wait till this one is updated with the feature. When it is updated, can you include a setting disable or enable either feature? Like let's say I want it to drop from redstone, but continue to drop one for lapis blocks.
     
  30. Offline

    GDorn

    I forked the project on github and added spawning of extra lapis (as well as a % chance of extra spawning happening, configurable in the config.yml). Also, not to step on any toes, I submitted a pull request to get this into the original plugin, if Nodren would like it.

    You can get my build here: https://github.com/georgedorn/minecraft-bukkit-lapisredstone/raw/master/dist/LapisRedstone_1.0.8.zip

    Or you can grab the .jar and examine the config.yml here: https://github.com/georgedorn/minecraft-bukkit-lapisredstone/tree/master/dist
     

Share This Page