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

Awesome thing with TNT

Discussion in 'Plugins and Coding' started by HangarGeek, Aug 3, 2016.

  1. HangarGeek

    HangarGeek Member

    Joined:
    Sep 15, 2015
    Messages:
    2,718
    Likes Received:
    1,693
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    Welcome to this thread, this is a simple thing I am making. A realistic TNT (that is throwable), it is for a simple minigame, wich I am making ( ͡° ͜ʖ ͡°).
    Video:



    instead of posting "You deserver JrDev/Dev" go and spam @GingerGeek pls ;P
     
  2. sinaandaman

    sinaandaman Member

    Joined:
    Jun 6, 2016
    Messages:
    72
    Likes Received:
    35
    Trophy Points:
    18
    Gender:
    Male
    noice m8
     
  3. RynezDev

    RynezDev Member

    Joined:
    Dec 1, 2015
    Messages:
    5,292
    Likes Received:
    7
    Trophy Points:
    113
    Gender:
    Female
    Location:
    test
    Looks really good! :)
     
  4. OMGItzDoom

    OMGItzDoom Member

    Joined:
    Jul 30, 2016
    Messages:
    79
    Likes Received:
    13
    Trophy Points:
    8
    Gender:
    Male
    Occupation:
    School Kid.
    Location:
    Croatia
    Seems like a game from Mineplex, if i remember it was some name "Bomb Lobbers?" but anyways like the TnT and the other stuff which i thinks gonna come.
     
  5. Scottness

    Scottness Member

    Joined:
    Feb 6, 2016
    Messages:
    1,698
    Likes Received:
    1,476
    Trophy Points:
    113
    Gender:
    Male
    Occupation:
    Idk
    Location:
    Home
    Home Page:
    Seems legit.........



    Nice!!!
     
  6. HangarGeek

    HangarGeek Member

    Joined:
    Sep 15, 2015
    Messages:
    2,718
    Likes Received:
    1,693
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    The TNT effect is really cool, and I promise my minigame will not be like the Mineplex (shitty) stuff
    I like it too :p
    Yay
    Lel



    Do I need to adjust the falling blocks, or it is funny right it is now?
     
    OMGItzDoom likes this.
  7. RynezDev

    RynezDev Member

    Joined:
    Dec 1, 2015
    Messages:
    5,292
    Likes Received:
    7
    Trophy Points:
    113
    Gender:
    Female
    Location:
    test
    It's good.
    Don't change it
     
  8. HangarGeek

    HangarGeek Member

    Joined:
    Sep 15, 2015
    Messages:
    2,718
    Likes Received:
    1,693
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    okay :D
     
  9. Scottness

    Scottness Member

    Joined:
    Feb 6, 2016
    Messages:
    1,698
    Likes Received:
    1,476
    Trophy Points:
    113
    Gender:
    Male
    Occupation:
    Idk
    Location:
    Home
    Home Page:
    Super funny, dont change , wont there be lag ingame with so much tnt and blocks flying around
     
  10. OMGItzDoom

    OMGItzDoom Member

    Joined:
    Jul 30, 2016
    Messages:
    79
    Likes Received:
    13
    Trophy Points:
    8
    Gender:
    Male
    Occupation:
    School Kid.
    Location:
    Croatia
    Maybe just making TnT block going a bit higher

    EDIT: Dont mind "shitty" thing, i messed up quote a lil bit :D
     
  11. HangarGeek

    HangarGeek Member

    Joined:
    Sep 15, 2015
    Messages:
    2,718
    Likes Received:
    1,693
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    It's raining blocks.
    Blocks are blocks, do not worry. IT will no be like an entire desert falling.

    This is how it is right now: Vector smallerVector = playerDirection.multiply(1.0D);
    I will try adjusting it, 1.5 is more or less the same, I'll se what happens with 2.0
     
  12. Zrathex

    Zrathex Member

    Joined:
    Aug 3, 2016
    Messages:
    1,156
    Likes Received:
    762
    Trophy Points:
    113
    Gender:
    Male
    Occupation:
    Mr. Ban le rule breakers
    Location:
    MARS WITHOUT OXYGEN :|
    Home Page:
    If this was a minigame on here then I would try it \o/
     
  13. HangarGeek

    HangarGeek Member

    Joined:
    Sep 15, 2015
    Messages:
    2,718
    Likes Received:
    1,693
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    Me too \o/
     
  14. Arcane

    Arcane Member

    Joined:
    Nov 26, 2015
    Messages:
    65
    Likes Received:
    1
    Trophy Points:
    8
    Gender:
    Male
    Occupation:
    UIUX Designer
    Location:
    A small box
    Nice - I like the animation physics
    @GingerGeek
     
  15. HangarGeek

    HangarGeek Member

    Joined:
    Sep 15, 2015
    Messages:
    2,718
    Likes Received:
    1,693
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    Yay ;D

    If you're curious this is the Handler that do the "flying blocks"
    Code:
     
    //register the events first!
    @EventHandler
        public void onEnityExplode(EntityExplodeEvent e) {
            for (Block b : e.blockList()) {
                float x = (float)-5 + (float) (Math.random() * ((4 - -5 ) + 1));
                float y = (float)-6 + (float) (Math.random() * ((4 - -6 ) + 1));
                float z = (float)-5 +(float) (Math.random() * ((4 - -5 ) + 1));
                FallingBlock fb = b.getWorld().spawnFallingBlock(b.getLocation(), b.getType(), b.getData());
                fb.setDropItem(false); //no drops
                fb.setVelocity(new Vector(x,y, z));
               
                b.setType(Material.AIR); 
            }
     
  16. Arcane

    Arcane Member

    Joined:
    Nov 26, 2015
    Messages:
    65
    Likes Received:
    1
    Trophy Points:
    8
    Gender:
    Male
    Occupation:
    UIUX Designer
    Location:
    A small box
    :) thanks
     
  17. HangarGeek

    HangarGeek Member

    Joined:
    Sep 15, 2015
    Messages:
    2,718
    Likes Received:
    1,693
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    No problem :D
     
  18. 1212hawks_

    1212hawks_ Helper Staff Member Helper

    Joined:
    Jul 16, 2016
    Messages:
    1,705
    Likes Received:
    1,608
    Trophy Points:
    113
    Gender:
    Male
    Occupation:
    Listening to memes and other weird things
    Location:
    The nest of dorks
    Home Page:
    LOOKS AMAZING! This plugin should be added..
     
  19. tyled

    tyled Member

    Joined:
    Jul 28, 2016
    Messages:
    20
    Likes Received:
    2
    Trophy Points:
    3
    Gender:
    Male
    i would try this minigame \o/
     
  20. HangarGeek

    HangarGeek Member

    Joined:
    Sep 15, 2015
    Messages:
    2,718
    Likes Received:
    1,693
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    For PVP duels, this is a great detail. :)
    With @TheJeroen, we are working on a nice project, based on his suggestion. The TNT effect will be added.
     
    TheJeroen likes this.