Solved setType and drop

Discussion in 'Plugin Development' started by new-ewrs728, Oct 18, 2018.

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

    new-ewrs728

    Hey. I have a problem. With setType and using the BED, it disappears, leaving the second part of the drop. How can I destroy an entire bed without a drop? I understand that you need to check the next bed, but you can suffer a bed near, which is not involved in this.
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    new-ewrs728

  4. Offline

    timtower Administrator Administrator Moderator

    Follow the facing, it should get you the other side of the bed.
     
  5. Offline

    new-ewrs728

    Is there a way to get a face on which one to point out? Is there also isHeadofBed, but check every block? This is a trouble. Yes, and how do I do under the bed? A conventional unit does not have this capability.
    https://pastebin.com/1Y7F295F
     
  6. Offline

    timtower Administrator Administrator Moderator

  7. Offline

    new-ewrs728

  8. Offline

    timtower Administrator Administrator Moderator

    The question is about destorying, why not you need to make one?
     
  9. Offline

    new-ewrs728

    Can I get these BED functions on another block?
     
  10. Offline

    timtower Administrator Administrator Moderator

    Cast the block to a Bed.
     
  11. Offline

    new-ewrs728

    Throw?
     
  12. Offline

    timtower Administrator Administrator Moderator

    What do you mean with throw?
     
  13. Offline

    new-ewrs728

    https://pastebin.com/6nsbZHaD
    So, what is next?
    After all, it will be stupid to check each BlockFace block, the more it will be possible to hurt the other ...
     
  14. Offline

    timtower Administrator Administrator Moderator

    @new-ewrs728 Look to the methods in Block and Location.
    See which ones accept a BlockFace as parameter.
     
  15. Offline

    new-ewrs728

    I did not understand. And what should I do with the location and face of the block?
     
Thread Status:
Not open for further replies.

Share This Page