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

No explosion

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

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

    CavinMiana Active Member

    Joined:
    Aug 26, 2015
    Posts:
    101
    Minecraft User:
    CavinMiana
    Hello,

    How would I make a the block not explode but still damage someone. I made a plugin where if you throw a snowball it blows up and explodes the terrain but now I wanna make it where it does not explode the terrain but it still damages someone. This is what I got right now:
    PHP:
    $explosion = new Explosion(new Postion($entity->x,($entity->-1), $entity->z$entity->getLevel()), 5);
    // This is the code when the tnt breaks the ground I want to know how to not make or break the ground :)
    Thx for helping :)
  2. MCPEPIG
    Offline

    MCPEPIG Notable Member

    Joined:
    Jun 22, 2014
    Posts:
    349
    Minecraft User:
    MCPEPIG
    $explosion->explodeB();
  3. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    I still don't get the difference between Explosion::explodeA() and Explosion::explodeB().
  4. CavinMiana
    Offline

    CavinMiana Active Member

    Joined:
    Aug 26, 2015
    Posts:
    101
    Minecraft User:
    CavinMiana
    Thx!
  5. MCPEPIG
    Offline

    MCPEPIG Notable Member

    Joined:
    Jun 22, 2014
    Posts:
    349
    Minecraft User:
    MCPEPIG
    explodeA() damages terrain. explodeB() doesn't.
  6. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    How are you so sure? Did you test it? Because I never tested it.
  7. MCPEPIG
    Offline

    MCPEPIG Notable Member

    Joined:
    Jun 22, 2014
    Posts:
    349
    Minecraft User:
    MCPEPIG
    I have never used explodeA() but I've used explodeB()
  8. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    PEMapModder likes this.
  9. CavinMiana
    Offline

    CavinMiana Active Member

    Joined:
    Aug 26, 2015
    Posts:
    101
    Minecraft User:
    CavinMiana
    Do you use
    PHP:
    $explosion = new Explosion(new Postion($entity->x,($entity->-1), $entity->z$entity->getLevel()), 5);// This is the code when the tnt breaks the ground I want to know how to not make or break the ground :)
    With the $explosion->explodeB()?
  10. MCPEPIG
    Offline

    MCPEPIG Notable Member

    Joined:
    Jun 22, 2014
    Posts:
    349
    Minecraft User:
    MCPEPIG
    Yeah. Btw an entity is a position. ;)
    PHP:
    $explosion = new Explosion($entity5);
    $explosion->explodeB();
  11. CavinMiana
    Offline

    CavinMiana Active Member

    Joined:
    Aug 26, 2015
    Posts:
    101
    Minecraft User:
    CavinMiana
    Thx! And we're you the one from BearGames. Remember me Cavin.
Thread Status:
Not open for further replies.

Share This Page

Advertisement