Delete all diamond ores?

Discussion in 'Archived: Plugin Requests' started by iTzMag, Dec 16, 2012.

  1. Offline

    iTzMag

    Plugin category: Mech

    Suggested name: DelBlock

    What I want: I request you, almighty coders to make a plugin
    that replaces diamond ore with stone, so people won't be
    able to gain diamonds by mining.
    Thanks in advance o:

    Ideas for commands:
    /DelBlock Help
    /DelBlock Enable
    /DelBlock Disable

    Ideas for permissions:
    - DelBlock.*

    When I'd like it by: As soon as possible c:
     
  2. Offline

    Hoolean

    To anyone who is thinking of coding this;

    1. Make a block populator
    2. Loop through all blocks in a chunk
    3. If it is diamondore, set it's type to stone :D
     
    iTzMag likes this.
  3. Offline

    iPadHD

    Simply do .... /replacenear 500000000 diamondore stone ... May cause massive amount of lag, for a couple of hours, may also crash your server! But do not close the console, and after a few hours. All ores will be deleted! :)
     
  4. Offline

    MichaelVelsion

    OMFG THANK YOU IPADHD!!!!

    I've been looking for a way to do a soft reset (just items) and that sounds like the way to do it!
     
  5. Offline

    iTzMag

    Nope, it will basicly crash my vps and will automaticly stop the server because of the cpu usage. Also people can travel to spots where the world didint generate yet, which means that they will be able to find diamonds.
     
  6. Offline

    Nickbbeezy

    Just use a plugin like Worldguard to prevent people from even breaking the diamonds in the first place.
     
  7. Offline

    iPadHD

    That would also work, or even a simple plugin ... Like essentials to block what blocks people can place or even break.
     
  8. Offline

    chasechocolate

    Although this wouldn't delete diamond ore, you could listen to BlockBreakEvent, check if the block broken is diamond ore, and set the drops to cobblestone :p
     
    CubieX likes this.
  9. Offline

    AndyMcB1

    Massive troll :D
     
    MrBluebear3 likes this.
  10. Offline

    chasechocolate

    Lol, yup.
     
  11. Offline

    AndyMcB1

    You'd HAVE to make sure to have a message, too.
    Or you'll get people reporting bugs left, right and cobblestone! ;)
     
  12. Offline

    iTzMag

    isn't there a way to disable diamond ore from spawning? ;-;
     
  13. Offline

    Hoolean

    Yeah there is :3

    Above posters were seeing if there was a lazy easy way of doing it :3
     
    ZeusAllMighty11 likes this.
  14. Offline

    ZeusAllMighty11

    Well for anyone who is still up for it:


    on chunk [(populate?)] event, iterate through the blocks and set diamond to something else
     
  15. Offline

    Hoolean

    Or ChunkLoadEvent for previous worlds :p
     
  16. Offline

    AndyMcB1

    But spawn is always loaded? Or would you just need to restart?
     
  17. Offline

    iTzMag

    Edited post, the thread lacked information [​IMG]
     
  18. Offline

    El_Minadero

    @TheGreenGamer, I've been trying to implement this for MC 1.4.7 ( i know this is an old thread)
    , but Im not sure if I should call a method i made in a class of type block populator or another class definition. I get the feeling that simply adding a block populator to iterate through these blocks wont work (im finding that my populator replaces/populates first rather than adding onto the list of populators and exexuting it last). What should I do here?
     

Share This Page