public static boolean isHuman(Entity pEntity) {
return pEntity.is(ModEntityTags.HUMANS);
}
im trying to use a custom tag i made for this method however the ‘is’ method from the Entity class can only be applied on entities and not tags, the error says ‘is(net.minecraft.world.entity.Entity)’ in ‘net.minecraft.world.entity.Entity’ cannot be applied to ‘(net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>>)’
i tried casting ModEntityTags.HUMANS to Entity hoping that could solve the problem but it didn’t work
among us is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.