Delete all diamond ores?

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

  1. Offline


    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


    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


    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



    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


    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


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


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


    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


    Massive troll :D
    MrBluebear3 likes this.
  10. Offline


    Lol, yup.
  11. Offline


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


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


    Yeah there is :3

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


    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


    Or ChunkLoadEvent for previous worlds :p
  16. Offline


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


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


    @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