Shooting Block

Discussion in 'Plugin Development' started by spacemoehre, Aug 19, 2014.

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

    spacemoehre

    I want that a Block b shoots on an Player p. but how can i make this?
     
  2. Offline

    Lactem

    Modify its velocity.
     
  3. Offline

    spacemoehre

    whats the velocity and how can i do that?

    sry I'm beginner
     
  4. Offline

    The Fancy Whale

    What do you mean a block shoots on a player? Why don't you post what you have tried?
     
  5. Offline

    Lactem

  6. Offline

    spacemoehre

    no i want a method like shootArrow() - LivingEntity but for a block. wished i have the code of craftbukkit
     
  7. you should be able to spawn sand or gravel and set its location. sand and gravel are able to not move whole blocks. because they can fall like Lactem told you. then you can make your own method shootBlock(Location loc, int speed);
     
  8. Offline

    Necrodoom

    spacemoehre you cannot shoot a Block object - that represents a certain block slot on the world.
    You need a FallingBlock, as stated above.
    Also remember that FallingBlock is not a projectile and thus you cannot set a shooter to it.
     
Thread Status:
Not open for further replies.

Share This Page