How i can make a stronger Explosion for a primed tnt?

Discussion in 'Plugin Development' started by Kopflos, Feb 23, 2021.

  1. Offline

    Kopflos

    Hello, want to make a plugin where I can spawn primed TNT. The default code is already done, but when I play with this it makes no fun because the TNT is not strong enough. But now I don't know I can do this.

    This is my code now for spawning the TNT:
    Location loc = new Location(w, -30.5, 8, 8.5);
    Entity tnt = w.spawnEntity(loc, EntityType.PRIMED_TNT);

    PS: with events, I disabled that the tent doesn't do damage and it doesn't destroy any blocks

    i need a plugin that can switch players from groups (from groupmanager) so if they complete a parkour they get moved to a different group

    for example
    they are default on spawn but when they finish the parkour they press a button/sign and get moved to the group fly so they can fly around spawn

    I cant describe it better

    [bump]

    i want this to work!
     

    Attached Files:

    Last edited by a moderator: Feb 27, 2021 at 11:19 AM
  2. Offline

    Newdel

    PrimedTNT is an Entity (obviously)
    Entity class has a method to set a cutom name
    Give the TNT a custom name
    When it explodes, react on this event, check for custom name, cancel the event and spawn a bigger explosion instead
     

Share This Page