Making cobweb unpassable or damaging passing player

Discussion in 'Plugin Development' started by areqpl, Feb 19, 2014.

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

    areqpl

    Hi, how can I make cobwebs damage players when they try to pass through them?
    It's supposed to work as thorns on fences.
    Thanks!
     
  2. Offline

    Forseth11

    areqpl PlayerMoveEvent.
    if the eye or player location moving to is a block of cobweb then damage the player. You would want to make a delay so they don't get damaged every tick.
     
  3. Offline

    areqpl

    Forseth11
    Could you please explain this in a sample code? I'm a fast learner but I'm not sure how to do that.
    Thanks
     
Thread Status:
Not open for further replies.

Share This Page