@SubscribeEvent
public void RenderWorldLastEvent(RenderWorldLastEvent event) {
if (mc.isGameFocused()) {
mc.world.getAllEntities().forEach(entity -> {
if(entity!=null && entity instanceof ZombieEntity){
System.out.println(((ZombieEntity) entity).canPickUpLoot());
}
});
}
}
for some reason its always false.
I also tried with some other data from the entity like the health and that worked fine.
I checked to make sure of it is true by using the in game /data get entity command and of course tried by dropping items on the zombies.
I also tried by getting the data by doing this but that is also false...
entity.getEntityData().getBoolean("canPickUpItem");