About sitting and resting in a bed

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_SITTING, 1);
		}
	}
PS: Whats the dataflag for resting in a bed?
 
Top