Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Ore from stone plugin

Comments in 'Plugin Development' started by Juqxi, Sep 22, 2015.

Thread Status:
Not open for further replies.
  1. Juqxi
    Offline

    Juqxi New Member

    Joined:
    Sep 22, 2015
    Posts:
    6
    Minecraft User:
    Juwxi
    Hi I need help on pocketmine is any plugin with ore drop from stone ? I very need this plugin for my survival server P.S.sorry for bad English .
  2. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    move this to plugin requests topic. anyway code for this:
    PHP:
    public function onBlockBreak(BlockBreakEvent $e){
        if(
    $e->getBlock()->getId() === Block::STONE$e->setDrops([Item::get($oreId0$amount)]);
    }
  3. Juqxi
    Offline

    Juqxi New Member

    Joined:
    Sep 22, 2015
    Posts:
    6
    Minecraft User:
    Juwxi
    No any plugins? :(
  4. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    ...

    so you need someone to code for you this?
  5. Juqxi
    Offline

    Juqxi New Member

    Joined:
    Sep 22, 2015
    Posts:
    6
    Minecraft User:
    Juwxi
  6. Juqxi
    Offline

    Juqxi New Member

    Joined:
    Sep 22, 2015
    Posts:
    6
    Minecraft User:
    Juwxi
    Place add drop from stone plugin
  7. Kvetinac97
    Offline

    Kvetinac97 Active Member Plugin Developer

    Joined:
    Nov 17, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    Kvetinac97
    You can use my plugin InstantBreak. (set it in drops.yml) I don't understand if you want stone to drop ores or ores to drop stone.
    PianoPlayer38 likes this.
  8. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    if you break stone it drops ore
  9. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    He already knows that you don't need to repeat it, are you just trying to increase your post count? :p
    thebigsmileXD likes this.
  10. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
  11. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    That post doesn't even exist. :p
    Kvetinac97 likes this.
  12. Kvetinac97
    Offline

    Kvetinac97 Active Member Plugin Developer

    Joined:
    Nov 17, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    Kvetinac97
    There are two ways how get "Notable member":

    1) Spam, spam, spam... (Legoboy and CreeperFace have used it)
    PS: Those users has been banned many times for this reason
    2) Answer, think, ask, make plugins... and in less then a month, you'll be Active, in less than a half of the year, you'll be notable. (Too many users have used it, including GameCrafter, PEMapModder, CraftBukkit......)
    KubixQ, PianoPlayer38 and TheKofola12 like this.
  13. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    Everything you said is true, but some things are better left unsaid. After all, you might start a flame war, by exposing @Legoboy0215 and @Creeperface as spammers. Anyways I got notable about 9 months in :D, and yeah... That's pretty much how you go up in the ranks. BTW you need to have at least 2:3 likes to post ratio to be a "legitimate" notable member. So next time you see someone with 2000 posts and only 34 likes, you'll know they spam a lot. ;)
    Kvetinac97 likes this.
  14. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    I think this should be in the plugin requests section.
    Taha_The_Hacker likes this.
  15. CavinMiana
    Offline

    CavinMiana Active Member

    Joined:
    Aug 26, 2015
    Posts:
    101
    Minecraft User:
    CavinMiana
    I don't think you know what "Plugin Development" means. Please go the the plugin request area!
  16. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Can you just shut up? You are picking up flame, which makes the thread a lot longer filled with irrelevant posts and hence makes it even harder to trace what is happening in this thread, if one is to find something useful related to this thread.
    thebigsmileXD and jojoe77777 like this.
  17. Jelly9912
    Offline

    Jelly9912 Active Member

    Joined:
    Aug 8, 2015
    Posts:
    118
    Minecraft User:
    Jelly9912
    How to add more ores but randomly ?
  18. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Since you shot a RPG at me, I will laser-cannon you. First of all, you are doing the exact SAME thing. You are trying to increase your post count by placing off-topic posts.

    Second, you are wrong. I never got banned because of SPAMMING :p :rolleyes: Nice try though.

    Third, blame it all on Xenforo's settings and #BlameShog.

    Fourth, this thread should be locked. -_-
  19. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Actually, when the Notable Member system had been rolled out, I was already many times more than 150 likes. Therefore it is inaccurate to say I "used" it - that thing didn't even exist when I got 150 likes.
    And you get likes by doing something useful, not posting useless replies.
  20. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    What do you mean? You want to randomly give them ores?
    Try this:
    PHP:
    $ores = [Item::GOLD_OREItem::IRON_ORE/*etc.*/];
    $e->setDrops([Item::get($ores[mt_rand(0count($ores) - 1], 0mt_rand(05)]);
    // a random item in $ores for an amount of 0 to 5 drops.
    KubixQ likes this.
Thread Status:
Not open for further replies.

Share This Page

Advertisement