Infinite Ore

Discussion in 'Archived: Plugin Requests' started by Xyphien, Feb 28, 2013.

  1. Offline

    Xyphien

    Plugin category: Fun or RP

    Suggested name: Infinite Ore

    What I want: "I only want a single block. An example of this would be mining in skyrim, runescape, wow. You have one ore you can mine on the top level. And once you mine it, it will have a set time limit to mine it again."

    Ideas for commands: /IO [ore name] [seconds to re-mine it]

    Ideas for permissions: If you could make it so naturally only OPs can do it, that'd be amazing, as it's a simple plugin

    When I'd like it by: As soon as someone can, If you can do it within two months, that'd be even better!


    So I am making a server that will be un diggable to keep ore down, and have specific areas to mine. now I want to make it so you will have one ore, and once you mine it, it will not break, but you get the ore in your inventory. I searched up "Bukkit Infinite ore" into google, as well as some closely related things, and could not find this.

    If someone could make this it'd be very helpful!

    I don't see how it could be that hard of a mod. Simply make it so the op will right click the specified ore, and do the command /io coal for example and it would make the blog have infinite coal ore.

    "I only want a single block. An example of this would be mining in skyrim, runescape, wow. You have one ore you can mine on the top level. And once you mine it, it will have a set time limit to mine it again."
     
  2. I might be able to make this let me just be clear about this.
    You want a plugin that will make ores be infinite, like if a player breaks it, it will reapear but give them what they mined. I might be able to implement /io coal but I'm not sure. Will it be okay if I just have all ores infinite, or just below the surface?
     
  3. Offline

    Xyphien

    have it so you will right click the ore (For example if you wanted to make infinite iron) you would right click it with an empty hand to select the block, and then type /io iron to make it infinite. Of course you could do /io iron on any block to keep the plugin simple and faster to make. Not all ores infinite, just the ones you select.
     
  4. Offline

    jorisk322

    But couldn't players then just kill their cat and put it on their mouse --> infinite ore?
     
  5. Offline

    Xyphien

    adding a depletion system, having a configurable option so you can only mine the ore ever x seconds. /io create iron 60 (for ore every minute)
     
  6. Offline

    Mitch_

    Use world efit, maybe have a ore world get the item id's select 2 points and do //set (or id's) and you can have it so only coal and iron are on top layers ect.
     
  7. Offline

    Xyphien

    I only want a single block. An example of this would be mining in skyrim, runescape, wow. You have one ore you can mine on the top level. And once you mine it, it will have a set time limit to mine it again.
     
  8. Offline

    jorisk322

    I was thinking of the same, but you should have mentioned that in your first post, because people could misunderstand you and create a plugin you're not going to use.
     
  9. Offline

    Xyphien

    Yeah, I'm sorry about that. Thought I gave enough details but I added the whole quote to the post :)
     
  10. Offline

    Mitch_

    You should have used the sticky layout it makes it clearer
     
  11. Offline

    Xyphien

    Finished it :)
     
  12. Offline

    Mitch_

    ty
     
  13. Offline

    Xyphien

    Thank you, I was obviously to lazy to take the time to look at the stickied post :) Didn't see it honestly, but it does help out the post a lot. So thank you for that.

    I hope someone starts it soon though :)
     
  14. Offline

    Mitch_

    Yh, me too! It would be cool.
     
  15. Offline

    Xyphien

    Hey, are you still willing to create this for us?
     
  16. Offline

    cedeel

    What should happen when the ore is mined?
    Does it:
    - reappear instantly, but you aren't able to mine it for a while
    - disappear until it's ready to be mined again
     
  17. Offline

    Xyphien

    Either one will be great. I prefer it disappeared until it's ready to be mined again. But simply having it re-appear instantly is fine if it's easier.
     
  18. K, I think I'll make it reappear instantly, I'll take me a few days though. (I'm working on lots of projects)
     
  19. Offline

    stepheng

    I can do this in about 10 minutes if the others don't mind.
     
  20. Offline

    Mizquink

    You could just use this 1 plugin... Don't remember its name but you can set areas to regenerate the terrain to how it was.
     
  21. Offline

    stepheng

    Nevermind, I love Skyrim and this seemed too fun to pass up an opportunity to make. So I wrote the implementation that nobody volunteered to make yet. :p

    Download: <Edit by Moderator: Redacted mediafire url>
    Github: https://github.com/stephen-gardner/InfiniteOre/tree/master/src/com/github/stephengardner/infiniteore

    Ore will disappear when mined, and then re-appear after the set interval. Permission to set the respawn time is "io.set".
    "/io <seconds>" will set the respawn timer, and "/io" will clear it... if you don't want to wait for a block to respawn to set the timer, placing one where it spawns works too, but it'll set the block ID to whatever you placed there. Server shutdown respawns all blocks.

    Right-clicking on the block will say what the timer is set to, which can be turned off in the config.yml.Let me know if this is what you were looking for, and what can be improved/fixed. :)

    Edit: I should say this works on any placeable block, not just ore.
    Edit again: Fixed a bug that allowed players to place and destroy blocks to initiate multiple timers. All language can be edited in the config.yml.
     
    Last edited by a moderator: Nov 7, 2016
  22. Offline

    Xyphien

    [quote uid=90797011 name="stepheng" post=1576175]Nevermind, I love Skyrim and this seemed too fun to pass up an opportunity to make. So I wrote the implementation that nobody volunteered to make yet. :p

    Download: <Edit by Moderator: Redacted mediafire url>
    Github: https://github.com/stephen-gardner/InfiniteOre/tree/master/src/com/github/stephengardner/infiniteore

    Ore will disappear when mined, and then re-appear after the set interval. Permission to set the respawn time is "io.set".
    "/io <seconds>" will set the respawn timer, and "/io" will clear it... if you don't want to wait for a block to respawn to set the timer, placing one where it spawns works too, but it'll set the block ID to whatever you placed there. Server shutdown respawns all blocks.

    Right-clicking on the block will say what the timer is set to, which can be turned off in the config.yml.Let me know if this is what you were looking for, and what can be improved/fixed. :)

    Edit: I should say this works on any placeable block, not just ore.
    Edit again: Fixed a bug that allowed players to place and destroy blocks to initiate multiple timers. All language can be edited in the config.yml.[/quote]
    Thank you so much. I will be testing this throughout the next day as I do not have work. Sorry for the late reply. I just through it and you kept it simple just like I wanted, and I have tried it out for a short time and it seems to work perfectly. Once again, I will go into heavy testing as my server progresses and inform you throughout the next day :D
     
    Last edited by a moderator: Nov 7, 2016
  23. Offline

    stepheng

    You're very welcome, it was a really fun idea. :) I look forward to your feedback, as a lot of other people seem to just disappear after they get what they want, and the plugin just doesn't feel finished if I don't know how it turned out. :(
     
  24. Offline

    Xyphien

    I'll be keeping up with you through skype as well. I have a huge project I am working on and turning it into a giant server! So until the project gets done we won't have any actual users testing it out, just the ops of the server until it gets up.
     
  25. Offline

    Yhtomitsu

    Hey Just download your plugin works great been looking for one for a while
     
    Xyphien likes this.

Share This Page