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

Id of blue wool? Idk... For event

Comments in 'Plugin Development' started by Valeron, Nov 11, 2015.

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

    Valeron New Member

    Joined:
    Aug 26, 2015
    Posts:
    111
    Minecraft User:
    DarkSpive
    PHP:
    public function onBlockBreakRed(BlockBreakEvent $event){
             if(
    $event->getBlock()->getId() == 35){
    Pls...!!! Need blue wool!...
    Not just id 35 wool.
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
  3. Valeron
    Offline

    Valeron New Member

    Joined:
    Aug 26, 2015
    Posts:
    111
    Minecraft User:
    DarkSpive
    Idk how to use metaKey
  4. Valeron
    Offline

    Valeron New Member

    Joined:
    Aug 26, 2015
    Posts:
    111
    Minecraft User:
    DarkSpive
  5. Valeron
    Offline

    Valeron New Member

    Joined:
    Aug 26, 2015
    Posts:
    111
    Minecraft User:
    DarkSpive
    BLUE_WOOL
    Constant does not exists
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    PHP:
    if($event->getBlock()->getId() === Block::WOOL and $event->getBlock()->getDamage() === 11){ ... }
    Taha_The_Hacker likes this.
Thread Status:
Not open for further replies.

Share This Page

Advertisement