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

Spawning item entity on Block Break

Comments in 'Plugin Development' started by jasonwynn10, Sep 16, 2016.

  1. jasonwynn10
    Offline

    jasonwynn10 Active Member

    Joined:
    Dec 20, 2015
    Posts:
    87
    Minecraft User:
    jasonwynn10
    I have started creation of an "Infinity Stone" Plugin and could use some pointers on how to make the stone drop set items when it is broken. I have the plugin on github here: https://github.com/jasonwynn10/Infinity-Stone
    All help is appreciated
  2. ImagicalGamer
    Offline

    ImagicalGamer Active Member

    Joined:
    Feb 25, 2016
    Posts:
    141
    Minecraft User:
    ImagicalGamer
    If you want to set the events drops:
    PHP:
    $event->setDrops($arrayOfItems);
    If you want to drop an item:
    PHP:
    $level->dropItem($vector3$item);
    Primus likes this.
  3. jasonwynn10
    Offline

    jasonwynn10 Active Member

    Joined:
    Dec 20, 2015
    Posts:
    87
    Minecraft User:
    jasonwynn10

Share This Page

Advertisement