Stop primed TNT from moving

Discussion in 'Plugin Development' started by Atoxz58, Jul 1, 2015.

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

    Atoxz58

    Is there any way to stop a primed TNT to not move when you spawn it in.
     
  2. Offline

    terturl890

    You could set the velocity and direction to 0. Try that out.

    @Atoxz58

    Code:
    TNTPrimed tnt = p.getWorld().spawn([I]location[/I], TNTPrimed.class);
    
    tnt.setVelocity(new Vector(0, 0, 0));
    tnt.setDirection(new Vector(0, 0, 0));
    
    
    But looking at the MC physics it might bounce off the ground which can cause it to bounce and get off-set.
     
    Last edited by a moderator: Jul 1, 2015
    CodePlaysMinecraft likes this.
Thread Status:
Not open for further replies.

Share This Page