Make items fall from the sky every 1 minute

Discussion in 'Plugin Development' started by THESABERSLAYER, Jan 18, 2014.

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

    THESABERSLAYER

    Hey everyone so I am making a mini game and I was wondering how would I make it so once the game starts snow balls falls down from the sky and very minute it does it! Any help would be great thanks!
     
  2. Offline

    Dako

    Snoball as a thrown snowball? -> Projectile. Anyways, you could use a schdeuler.
     
  3. Offline

    THESABERSLAYER

    Yea I know I can do a scheduler but how would I make them fall down from the sky?
     
  4. Offline

    Dako

    Dropping Items:
    Bukkit.getWorld("YourWorldName").dropItem(Location, ItemStack);

    Shooting Projectiles:

    Arrow ar = (Arrow) Bukkit.getWorld("YourWorldName").spawnEntity(newLocation(Bukkit.getWorld("YourWorldName"), 0, 100, 0), EntityType.ARROW);
    ar.setVelocity(new Vector(0,-1,0));

    Replace the Entity type.
     
  5. Offline

    Niknea

    THESABERSLAYER possibly get the players location, go up on the y until you like the height, and spawn snowballs.
     
  6. Offline

    SacredWaste

    THESABERSLAYER Create a new Snowball, and change the velocity so it travels down? This can be easily repeated to randomize a snow storm.
     
  7. Offline

    THESABERSLAYER

    Thanks but I want it to be once the game starts and every so often it does it and it lands in the middle of the map
     
  8. Offline

    xTigerRebornx

    THESABERSLAYER Store the middle of the map's location, then use that to do the spawning methods mentioned above
     
Thread Status:
Not open for further replies.

Share This Page