Entity/Player Bypass wall

Discussion in 'Plugin Development' started by GODofCRAFTERS, Apr 1, 2015.

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

    GODofCRAFTERS

    I need to make a plugin which will set up an invisible wall which players can cross through but mobs can't. So essentially to keep mobs inside a room, but have the players be able to enter the room through an invisible wall, as in the wall would have to be see-thru. I need suggestions on how to set up the wall. Listing a few events and/or methods I could use would be helpful. Thanks.
     
  2. Offline

    EpicCraft21

    Don't know if this is classified as spoon feeding:p
    Check this thread: http://bukkit.org/threads/entity-collision-event.170299/
    And https://bukkit.org/threads/onentitycollision-event.35390/
    Check if entity is player, and cancel it or something
    Else, do something else.
     
  3. Offline

    nverdier

  4. Offline

    Code0

    I think you can use the very easy to use #.sendBlockChange(params) and set a block to air just for the player (not tested)
     
  5. Offline

    GODofCRAFTERS

    Well i don't know what your point is, but neither of those threads find the solution. They just discuss the problem... All their hypothesized solutions failed.

    I didn't think of that at all. Thanks. I'll see if it works out.
     
    Code0 likes this.
Thread Status:
Not open for further replies.

Share This Page