About sitting and resting in a bed

Discussion in 'Nukkit discussions and help' started by JackboyPlay, 18/12/16.

  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice
We welcome you on our site. This site is devoted to the Nukkit project and all that is connected with him. Here you can communicate, download plugins, also many other things get acquainted! Register the account right now :3
  1. JackboyPlay

    JackboyPlay Пользователь

    Messages:
    19
    Likes Received:
    1
    Minecraft:
    JackboyPlay
    Hello, I've tried to make it possible that a Entity is sitting but it wont work code:
    PHP:
    public static void setSitting(Entity ent){
    if(
    ent.namedTag.contains("npc")){
    ent.setDataFlag(Entity.DATA_FLAG_SITTING1);
    }
    }
    PS: Whats the dataflag for resting in a bed?
     
  2. JackboyPlay

    JackboyPlay Пользователь

    Messages:
    19
    Likes Received:
    1
    Minecraft:
    JackboyPlay
    Fixed
     

Share This Page