Solved Set Block on Projectile?

Discussion in 'Plugin Development' started by BashyDaBest, Jan 23, 2015.

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

    BashyDaBest

    Hey guys, I've been doing a 3 hour research on how I can set a block when a projectile hits it and reverses it back to the normal block. If anyone knows the string, could I know?

    P.S.
    If you could, please put detail for what string means. I would love to know everything so I can use it in the future. (And I love learning :p)
     
  2. Offline

    Skionz

  3. Offline

    SuchSwegMuchWow

    @BashyDaBest

    I think its ProjectileHitEvent or something like that.

    Listen for the hit event and change to block to a random coloured wool/clay or anything you want. Then create a private void that will take a block and location that will replace the old block to the original block with a delayed task
     
    BashyDaBest likes this.
  4. Offline

    BashyDaBest

    @Skionz I thought strings were the stuff you type in :p (I'm a newb :p)
    @SuchSwegMuchWow Thanks dude! I think I get it now.

    EDIT:

    Do I write this a new class, or should I put it in the same one?
     
  5. Offline

    SuchSwegMuchWow

  6. Offline

    teej107

    method

    Do what ever you feel is necessary. Separating code among classes can help to make it easy to follow for bigger projects.
     
  7. Offline

    BashyDaBest

Thread Status:
Not open for further replies.

Share This Page