Solved spawning lots of falling blocks...

Discussion in 'Plugin Development' started by welsar55, Feb 2, 2013.

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

    welsar55

    i need to spawn lots of falling blocks with vector up is there a faster way to do this then do player.getlocation + 1, + 2?
     
  2. welsar55
    Use a for loop.
    Code:java
    1.  
    2. for(int i = 1; i < 20; i++){
    3.  
    4. }
     
  3. Offline

    welsar55

    dont use for loops much but if im right i can get i and spawn a block at the player + i?
     
  4. welsar55
    Yes, so in this case i would go 1,2,3,4....,18,19,20 and stop. So you could spawn a block at the players location +i, just change the max limit from 20 to whatever you need.
     
  5. Offline

    welsar55

    thanks this ,ake it alot simpler ill put a for loop in a for loop and make a 20 by 20 platform thank you
     
Thread Status:
Not open for further replies.

Share This Page