One last thing.......

Discussion in 'Plugin Development' started by legostarwarszach, May 11, 2013.

Thread Status:
Not open for further replies.
  1. So one more question, when I strike lighting I want to make the lightning to strike at a spefic location. I was thinking of doing this:
    Code:
                int locationx = player.getLocation().getBlockX();
                int locationy = player.getLocation().getBlockY();
                int locationz = player.getLocation().getBlockZ();
                World world = player.getWorld();
                world.strikeLightning(locationx, 240, locationz);
    But I cant do that, I've looked thought the the JavaDocs on lighting strikes. How can I do this?
     
  2. Offline

    Polaris29

    Code:
    world.strikeLightning(new Location(world, locationx, locationy, locationz));
    
     
  3. Offline

    kumpelblase2

  4. Thx anyway Polaris29 I already got it :D

    And I did find it :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
Thread Status:
Not open for further replies.

Share This Page